mirror of
https://github.com/unixtensor/Roblox-Elevator-Game.git
synced 2025-12-15 21:41:53 +00:00
optimize native scripts
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
--!optimize 2
|
||||
--!native
|
||||
--!strict
|
||||
|
||||
--Not a good idea to call modules from other services here
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
--!optimize 2
|
||||
--!native
|
||||
--!strict
|
||||
|
||||
local load_elapse_start = os.clock()
|
||||
@@ -22,10 +21,10 @@ local function LoadingIntroGUI()
|
||||
task.wait()
|
||||
until Player
|
||||
end
|
||||
|
||||
|
||||
local PlayerGui = Player:WaitForChild("PlayerGui")
|
||||
IntroGui = PlayerGui:WaitForChild("rhpidframework_intro", 10)
|
||||
|
||||
|
||||
if IntroGui then
|
||||
--Let the magic begin
|
||||
RunIntroGui(IntroGui, load_elapse_start)
|
||||
|
||||
Reference in New Issue
Block a user