hrere is the "script" I have in ServerScript.Service and when I test it in studio it works but in the real game, its not...
this camra intro is supposed to happen to every player who joins the game PlayerAdded
help
game.Players.PlayerAdded:Connect(function(player)
wait(5)
print("Booted Camera Opeining!")
local char = player.Character or player.CharacterAdded:wait()
local curcam = game.Workspace:WaitForChild("Camera")
local blackr = game.Workspace:WaitForChild("Blackhouse")
local t40cam1 = blackr:WaitForChild("t40campart1")
curcam.CameraSubject = t40cam1
curcam.CameraType = Enum.CameraType.Scriptable
curcam.CFrame = t40cam1.CFrame
for i = 1,90 do
wait()
curcam.CFrame = curcam.CFrame + Vector3.new(.5,0,0)
end
wait(.5)
curcam.CameraSubject = blackr.t40campart2
curcam.CFrame = blackr.t40campart2.CFrame * CFrame.new(.1,0,0)
for i = 1,55 do
wait()
curcam.CFrame = curcam.CFrame + Vector3.new(0,0,.50)
end
wait(3)
curcam.CameraSubject = char.Humanoid
curcam.CameraType = Enum.CameraType.Custom
curcam.CFrame = char.Head.CFrame
end)

6 comments
That is because a serverscript doesn't have access to the players camera because it's a local object. You would have to run this on a localscript.
PlayerAdded can be ran in a local script?
Yes.
ok so i pasted this code into a local script.where should i put it?
use starterGui i guess?
I'd recommend placing it in StarterGui or StarterPlayerScripts.