#setting camera cframe not working

1 messages · Page 1 of 1 (latest)

mossy tide
#

camera.CameraType = Enum.CameraType.Scriptable

camera.CFrame = CFrame.new(Vector3.new(3.03, 5.417, -5.409), Vector3.new(-19.083, -140.635, 0))
camera.Focus = CFrame.new(Vector3.new(4.229, 4.763, -3.948), Vector3.new())```

its in a local script but the cframe is only being set on the server and not the client
raw hamlet
mossy tide
#

like

#

i run the game and switch to the server and the camera is set to how i want it

#

but in client view it didnt work

raw hamlet
#

Where's the script placed?

mossy tide
#

startergui

raw hamlet
# mossy tide startergui

It could be happening before the character loads. The character loading in will reset the camera back to its original state.

mossy tide
#

shouldnt it not change because the cameratype is set to scriptable?

raw hamlet
mossy tide
#

`local camera = workspace.CurrentCamera
local players = game:GetService("Players")
camera.CameraType = Enum.CameraType.Scriptable

players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function()
task.wait()
camera.CFrame = CFrame.new(Vector3.new(3.03, 5.417, -5.409), Vector3.new(-19.083, -140.635, 0))
camera.Focus = CFrame.new(Vector3.new(4.229, 4.763, -3.948), Vector3.new())
end)
end)`

#

nothing changed

raw hamlet