#Camera resets on spawn

5 messages · Page 1 of 1 (latest)

simple perch
#

To fix this, you need to make the camera follow the player's character instead. You do this by using a simple line of code that tells the camera to look at the character:

local player = Players.LocalPlayer
local character = player.Character
local camera = game.Workspace.CurrentCamera

camera.CameraSubject = character

This code sets the camera to follow the character, so when the character resets, the camera will stay with it and not go back to the menu.

daring onyx
#

local cam = workspace.CurrentCamera

cam.CameraType = Enum.CameraType.Scriptable
cam.CFrame = workspace.StarterCamPart.CFrame

game.Players.LocalPlayer.Character:FindFirstChildOfClass("Humanoid").Died:Connect(function()
cam.CameraType = Enum.CameraType.Custom

end)

#

This is the script, do u think u can modify it by any chance? @simple perch

frozen abyss
#

put the script in a gui and set the gui's reset on spawn to false

deep vault
#

or just do a repeat until
then connect that to player died function that will reset it back to the Menu