Camera script works in studio but not on roblox player?
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
03 | if script.Parent.Value = = 1 then |
04 | script.Parent.Parent.MechName.Text = "Forest Camo Mech single gun" |
05 | Workspace.CurrentCamera.CameraSubject = Workspace.CameraFocus 1 |
06 | Workspace.CurrentCamera.CameraType = "Attach" |
08 | elseif script.Parent.Value = = 2 then |
09 | script.Parent.Parent.MechName.Text = "Forest Camo Mech double guns" |
10 | Workspace.CurrentCamera.CameraSubject = Workspace.CameraFocus 2 |
12 | elseif script.Parent.Value = = 3 then |
13 | script.Parent.Parent.MechName.Text = "Forest Camo Mech double guns w/ cannon" |
14 | Workspace.CurrentCamera.CameraSubject = Workspace.CameraFocus 3 |
16 | until script.Parent.Parent.CamValue.Value = = 0 |
Please help!!!
Thank you!!!