playbutton = script.Parent
mainmenu = script.Parent.Parent
loadingscreen = script.Parent.Parent.Parent.loading
playbutton.Text = "Play"
local cam = workspace.CurrentCamera
function onClicked()
while true do
loadingscreen.Position = loadingscreen.Position-UDim2.new(0.03,0,0,0)
wait()
end
end
if loadingscreen.Postion(0,0,0,0) == true then
cam.CameraType = "Custom"
end
playbutton.MouseButton1Down:connect(onClicked)
Is there something wrong in this script, it doesnt works.

2 comments
Thank you it works :D, i appreciate it
:D