Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

camera manipulation script not working in server but is working in studio. can someone help me?

Asked by
VVired 28
7 years ago
local Player = game.Players.LocalPlayer
local Target = Player.Character.Torso
local Cam = workspace.CurrentCamera
Cam.CameraType = Enum.CameraType.Scriptable
Cam.CameraSubject = Player.Character.Torso

while true do
Cam.CoordinateFrame = CFrame.new(Target.Position) * CFrame.Angles(0,5,0) * CFrame.new(0,1,8)

    wait(0.1)
end

0
Is this on a LocalScript and do you have FE enabled? Also, on line 3, try local Cam = game.Workspace.CurrentCamera TheLuckyZ 24 — 7y
0
lol thanks. VVired 28 — 7y
0
Did it work? TheLuckyZ 24 — 7y
0
game.Workspace.CurrentCamera is more or less deprecated. Roblox wants you to just use 'workspace.CurrentCamera' User#9949 0 — 7y

Answer this question