#setting camera cframe not working
1 messages · Page 1 of 1 (latest)
The server doesn't really have a camera, what do you mean?
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
Where's the script placed?
startergui
It could be happening before the character loads. The character loading in will reset the camera back to its original state.
shouldnt it not change because the cameratype is set to scriptable?
When the player spawns, though, it does reset it
`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
Well you gotta put setting the camera type in CharacterAdded too