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

How do i make the lockfirstperson script work everytime?

Asked by 10 years ago

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

Log in to vote
1
Answered by 10 years ago
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.

0
thanks mikeinator3214 0 — 10y
0
Could you please accept this answer (press the green check)? :) TheGuyWithAShortName 673 — 10y
Ad

Answer this question