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

How to fix camera after changing plr.Character twice?

Asked by 5 years ago

So i have this place where i disable character autoLoad... Then i give player a character plr.Character = serverstorage...:clone() okay and then i parent=workspace and Cframe=spawn.CFrame.... All fine until after the character dies i destroy the model or parent=nil or not destroy at all but either way when i repeat the process of the player choosing a character and then I give it a character in the same way, as soon as he selects and the plr.Chracter = serverstorage...:Clone() is called the camera breaks and stays still forever. I notice there's always a local script in PlayerGui called FreeCamera and it only disappears when the camera breaks so i mean it stays there okay even before i give a character or after i destroy the character and also while the player's manipulating the camera to choose a character a second time. only when he selects it disappears.... help?

1 answer

Log in to vote
0
Answered by 5 years ago

just set the CameraSubject of workspace.CurrentCamera from the client, to the player's humanoid.

ex

--client

workspace.CurrentCamera.CameraSubject = character.Humanoid -- define the hierarchy of the humanoid 
0
Seems i just had to do that but before i had to change the camera type to custom Kiriyato 15 — 5y
Ad

Answer this question