Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How can I make the player camera toggle between modes?

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

✓ Accepted answer
local player = game.Players:GetPlayers()

not

local player game.Players:GetPlayers()

2 comments

0

Ah, I see, Im dumb

0

No, it's a common mistake.

This discussion is preserved as it was. New answers, comments, and votes are closed.