So i have made a loading screen were when you press play, a black loading screen will come up for 3 seconds as it is loading in.
For some reason, my script doesnt work. I am quite new to scripting so can someone please help!
local Camera = game.Workspace.CurrentCamera
script.Parent.MouseButton1Click:Connect(function()
Camera.CameraType = "Custom"
script.Parent.Parent.Donate.Visible = false
script.Parent.Parent.Logo.Visible = false
script.Parent.Visible = false
game.StarterGui.RobloxBlackScreen.Frame.Visible = true
wait(3)
game.StarterGui.RobloxBlackScreen.Frame.Visible = false
end)
anything will help
RobloxBlack screen is my black loading screen and it is in a different screen gui to my other buttons

3 comments
Dev forum link?
Wheres the dev forum for this.
I didn't use the Dev Forums, but here's an article I found https://developer.roblox.com/en-us/articles/Custom-Loading-Screens