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 8 years ago

I've tried this in a normal script inside workspace

01local player game.Players:GetPlayers()
02 
03while true do
04    if player.Playing.Value == 1 then
05    player.CameraMode = "LockFirstPerson"
06    elseif player.Playing.Value == 0 then
07        player.CameraMode = "Classic"
08    wait(.5)
09end
10    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 8 years ago
1local player = game.Players:GetPlayers()

not

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

Answer this question