I have an intro in my game, it attaches to a block, where you click on the "Play" GUI and then the camera switches to first person! It works fine when I test it in studio, but as soon as I play the actual game online, the camera doesn't attach to the block, it goes straight to first person! Why is that?
wait(1)
repeat
--player = workspace:findFirstChild(script.Parent.Parent.Parent.Parent)
wait(1)
if workspace:findFirstChild(script.Parent.Parent.Parent.Parent.Name) then
print (workspace:findFirstChild(script.Parent.Parent.Parent.Parent.Name))
if script.Parent.Value == 1 and script.Parent.Parent.CamValue.Value == 1 then
Workspace.CurrentCamera.CameraSubject = Workspace.CameraFocus1
Workspace.CurrentCamera.CameraType = "Attach"
wait(0.75)
script.Parent.Parent.Parent.Parent.Character.Torso.CFrame = CFrame.new(Workspace.Spawners.WhiteSpawn.Position + Vector3.new(0, 2, 0))
elseif script.Parent.Value == 2 and script.Parent.Parent.CamValue.Value == 1 then
Workspace.CurrentCamera.CameraSubject = Workspace.CameraFocus2
wait(0.75)
script.Parent.Parent.Parent.Parent.Character.Torso.CFrame = CFrame.new(Workspace.Spawners.GraySpawn.Position + Vector3.new(0, 2, 0))
elseif script.Parent.Value == 3 and script.Parent.Parent.CamValue.Value == 1 then
Workspace.CurrentCamera.CameraSubject = Workspace.CameraFocus3
wait(0.75)
script.Parent.Parent.Parent.Parent.Character.Torso.CFrame = CFrame.new(Workspace.Spawners.BlackSpawn.Position + Vector3.new(0, 2, 0))
end
end
until script.Parent.Parent.CamValue.Value == 0
---P.S This is in a local script, inside a GUI--- Please help! Thank you!!!
