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

How do i make the lockfirstperson script work everytime?

i used this script:

script.Parent.MouseButton1Click:connect(function(GUI)
while true do
	wait(0)
game.Players.LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson
if script.Parent.Parent.Visible == false then
	game.Players.LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson
	end
	end
	end)

but it won't work for me an ideas on how i can make it work every time i click the gui button?

1 answer

Game.Players.LocalPlayer.CameraMode = Enum.CameraMode.Classic
wait()
Game.Players.LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson

You have to change it back to Classic and then back to LockFirstPerson for it to work the second time.

2 comments

0

thanks

0

Could you please accept this answer (press the green check)? :)

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