Yeah so my game I am currently working on has it's own loading screen (YES I DID GET RID OF THE DEFAULT LOADING SCREEN)But once i play it in the ROBLOX player.....It just doesn't play the loading screen?!?! Can someone help!
CODE:
local LBG = script.Parent.LoadingScreen local LB = script.Parent.LoadingScreen.LoadBar local LT = script.Parent.LoadingScreen.LOADING LBG.Visible = true wait(4) LT.Text = "Grab A Sandwhich while we load" wait(1) LB.Size = UDim2.new(0,100, 0,20) wait(2) LB.Size = UDim2.new(0,300, 0,20) wait(1) LB.Size = UDim2.new(0,600, 0,20) wait(4) LB.Size = UDim2.new(0,1200, 0,20) LT.Text = "ALMOST THERE" wait(9) LB.Size = UDim2.new(0,1500, 0,20) LT.Text = "FINISHED! Give us a second please..." wait(3) LBG.Visible = false
Use in a Local Script in your GUI You Have No trigger for your script so its doesnt know when to do it you need a
While wait(1) do
Also at the End of the script it will stop the script from function once finished by disabling it
Also i added in some WaitForChild as it will help the script
local LBG = script.Parent:WaitForChild("LoadingScreen") local LB = script.Parent.LoadingScreen:WaitForChild("LoadBar") --The WaitForChild will Make it wait for the loading screen local LT = script.Parent.LoadingScreen:WaitForChild("LOADING") while wait(1) do --Trigger LBG.Visible = true wait(4) LT.Text = "Grab A Sandwhich while we load" wait(1) LB.Size = UDim2.new(0,100, 0,20) wait(2) LB.Size = UDim2.new(0,300, 0,20) wait(1) LB.Size = UDim2.new(0,600, 0,20) wait(4) LB.Size = UDim2.new(0,1200, 0,20) LT.Text = "ALMOST THERE" wait(9) LB.Size = UDim2.new(0,1500, 0,20) LT.Text = "FINISHED! Give us a second please..." wait(3) LBG.Visible = false wait(2) script.Disabled = true --Stops Script For Player end