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

Why doesnt it change my CameraMode when this local script runs?

Asked by
Nozazxe 107
3 years ago

Hi. so when you press a button, it makes your camera first person. That works. But, this local script is supposed to make it so it undos that. it doesnt work, though. its in StarterGui.

game.Players.PlayerAdded:Connect(function()
    local plr = game.Players.LocalPlayer
    plr.CharacterAdded:Connect(function(character)
        local hum = character:WaitForChild("Humanoid")
        hum.Died:Connect(function()
            plr.CameraMode = Enum.CameraMode.Classic
        end)
    end)
end)

Answer this question