i want that when a player dies, they can't move the camera until they respawn again thanks
insert a localscript in startergui and do like:
local plr = game.Players.LocalPlayer local char = plr.Character or plr.CharacterAdded:Wait() local cam = workspace.CurrentCamera -- Gets the camera char.Humanoid.Died:Connect(function() --Locks camera when everytime character dies cam.CameraType = Enum.CameraType.Scriptable end) plr.CharacterAdded:Connect(function() --Unlocks camera everytime when character spawns cam.CameraType = Enum.CameraType.Custom end)