I don’t have access to #bug-reports so I had to post here.
I tried to achieve a birds-eye view of the character with a fixed Y coordinate, so before lerping I started small, this is the LocalScript I used in StarterCharacterScripts:
local Camera = workspace:WaitForChild( "Camera" )
local Head = script.Parent:WaitForChild( "Head" )
local headPosition
Camera.CameraType = Enum.CameraType.Scriptable
game:GetService("RunService").Heartbeat:Connect( function()
headPosition = Head.Position
Camera.CFrame = CFrame.new( Vector3.new( headPosition.X, 24, headPosition.Z ), headPosition )
end )
This repeatedly kills the Character, instantly ( sometimes after a split-second ) after spawning, and not just that - it also makes it vanish. If I switch to server-view the Character stays alive and well, but as soon as I switch back to the client it goes back into the endless death loop.
A couple more things to note: doing print( Head )
finds the object all the way through, however doing print( Head.Position )
goes to NAN, NAN, NAN
after just a few prints, and setting the Camera’s CFrame to Head.Position + Vector3.new( 0, 24, 0 )
doesn’t kill the Character - however this is not what I want to achieve.
No wait
helped, like waiting for the Character to become a descendant of workspace
or waiting for Camera.CameraType
to register as Scriptable
.
Tested and confirmed by multiple people, we’re all puzzled.