It’s a small thing, but I want the camera to start behind the players’ characters when they spawn. It seems like this would be default behavior, but for some reason in RoCitizens the camera starts in the -Z direction regardless of the direction of the SpawnLocation.
Is there an easy way to accomplish this? Ideally without editing the CameraScript?
2 Likes
local localPlayer = game.Players.LocalPlayer
localPlayer.CharacterAdded:Connect(function(char)
wait(0.2)
game.Workspace.CurrentCamera.CFrame = char.Head.CFrame:toWorldSpace() + Vector3.new(0,2,-5) --Offset
game.Workspace.CurrentCamera.Focus = char.Head.CFrame
end)
this seems to do the trick
I aint the best at camera things but this seems to work
Note: the wait(0.2) is there because it seemed that this script ran before roblox set the camera so it would replace this new position
4 Likes