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

How can I make the player camera toggle between modes?

Asked by 7 years ago

I've tried this in a normal script inside workspace

local player game.Players:GetPlayers()

while true do
    if player.Playing.Value == 1 then
    player.CameraMode = "LockFirstPerson"
    elseif player.Playing.Value == 0 then
        player.CameraMode = "Classic"
    wait(.5)
end
    end

I tried to look it up but I couldn't find anything, so I hope you guys can help.

1 answer

Log in to vote
0
Answered by 7 years ago
local player = game.Players:GetPlayers()

not

local player game.Players:GetPlayers()
0
Ah, I see, Im dumb Activatted 47 — 7y
0
No, it's a common mistake. SmxkePurpp 50 — 7y
Ad

Answer this question