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

How to disable mouselock when Humanoid Dies?

Asked by 3 years ago

I have this code in a localscript in StarterCharacterScripts

local player = game.Players.LocalPlayer
local character = script.Parent
character.Humanoid.Died:Connect(function()
    player.CameraMode = Enum.CameraMode.Classic
end)

My intention for this script is to stop the players camera from being in mouselock, but it doesn't seem to work.

Answer this question