This is my script, it works perfectly fine on studio but when I play in roblox, it doesn't work! Why? Here is my script
repeat
wait(0.05)
if script.Parent.Value == 1 then
script.Parent.Parent.MechName.Text = "Forest Camo Mech single gun"
Workspace.CurrentCamera.CameraSubject = Workspace.CameraFocus1
Workspace.CurrentCamera.CameraType = "Attach"
elseif script.Parent.Value == 2 then
script.Parent.Parent.MechName.Text = "Forest Camo Mech double guns"
Workspace.CurrentCamera.CameraSubject = Workspace.CameraFocus2
elseif script.Parent.Value == 3 then
script.Parent.Parent.MechName.Text = "Forest Camo Mech double guns w/ cannon"
Workspace.CurrentCamera.CameraSubject = Workspace.CameraFocus3
end
until script.Parent.Parent.CamValue.Value == 0
Please help!!! Thank you!!!

2 comments
Is this script in a localscript?
No