This commit is contained in:
2024-04-20 16:46:10 -04:00
parent b82606d64c
commit 36625162a1
3 changed files with 36 additions and 36 deletions

View File

@@ -19,8 +19,6 @@ type Scalar = {
Rotation: number
}
type Stepped = RBXScriptConnection
type GuiDependencies = {
IntroGui: ScreenGui,
Frame: Frame,
@@ -52,14 +50,14 @@ local function GuiDependencies(IntroGui: ScreenGui): GuiDependencies
local Frame = IntroGui:WaitForChild("Frame") :: Frame
local FrameGradient = Frame:WaitForChild("UIGradient") :: UIGradient
local TextShadow = Frame:WaitForChild("TextShadow") :: TextLabel
local FrameworkText = Frame:WaitForChild("Framework") :: TextLabel
local SandboxText = Frame:WaitForChild("Sandbox") :: TextLabel
local DeveloperText = Frame:WaitForChild("Developer") :: TextLabel
local FrameGradient = Frame:WaitForChild("UIGradient") :: UIGradient
local TextShadow = Frame:WaitForChild("TextShadow") :: TextLabel
local FrameworkText = Frame:WaitForChild("Framework") :: TextLabel
local SandboxText = Frame:WaitForChild("Sandbox") :: TextLabel
local DeveloperText = Frame:WaitForChild("Developer") :: TextLabel
local ShadowGradient = TextShadow:WaitForChild("UIGradient") :: UIGradient
local Quaternions = Frame:WaitForChild("Quaternions") :: ImageLabel
local TaylorSeries = Frame:WaitForChild("TaylorSeries") :: ImageLabel
local Quaternions = Frame:WaitForChild("Quaternions") :: ImageLabel
local TaylorSeries = Frame:WaitForChild("TaylorSeries") :: ImageLabel
local Xframe = Frame:WaitForChild("X") :: Frame
local Yframe = Frame:WaitForChild("Y") :: Frame
@@ -92,7 +90,7 @@ end
local Size = 300
local WorldSize = 3
local function GUI_LoadFinish(Stepped: Stepped, Gui: GuiDependencies) --We can now access the framework
local function GUI_LoadFinish(Gui: GuiDependencies) --We can now access the framework
--Image if we had HTML and CSS...
local Tween = require(Storage:WaitForChild("Tween"))
@@ -141,7 +139,6 @@ local function GUI_LoadFinish(Stepped: Stepped, Gui: GuiDependencies) --We can n
end)
FrameTween.Completed:Wait()
Stepped:Disconnect()
Gui.IntroGui:Destroy() --We dont need the intro gui anymore
script.Parent:Destroy()
end
@@ -206,7 +203,7 @@ end
return function(IntroGui: ScreenGui, load_elapse_start: number)
local Gui = GuiDependencies(IntroGui)
local Stepped = RS.Stepped:Connect(function(Delta: number, _dt: number)
RS.Stepped:Connect(function(Delta: number, _dt: number)
UI_3D_Rotation(Gui, Delta)
end)
@@ -224,6 +221,6 @@ return function(IntroGui: ScreenGui, load_elapse_start: number)
TS:Message("Load elapse: "..tostring(load_elapse), game)
GUI_LoadFinish(Stepped, Gui)
GUI_LoadFinish(Gui)
end)
end