When a player clicks a button on a GUI, he is supposed to be respawned and his camera is meant to go back to his character (I have an intro where it manipulates the camera).
The player being "respawned" (LoadCharacter()) works, however, the camera does not go back to the player's character?
script.Parent.MouseButton1Click:connect(function()
local plr = game.Players.LocalPlayer
plr:LoadCharacter()
plr.CharacterAdded:connect(function()
game.Workspace.CurrentCamera.CameraSubject = plr.Character.Humanoid
game.Workspace.CurrentCamera.CameraType = "Custom"
end)
end)

1 comment
Try to set the CameraType before CameraSubject ?