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

cameramode change button isn't working?

Asked by 8 years ago

Here's my code, it's in a localscript. I tried again (last time, I only got one reply and it didn't solve it) and yet again doesn't work. Since I'm just starting out scripting, any tips on where I went wrong would be great, thanks.

function click()
    if player..CameraMode = Enum.CameraMode.Classic
        then player.CameraMode = Enum.CameraMode.LockFirstPerson
    elseif player.CameraMode = Enum.CameraMode.LockFirstPerson
        then player.CameraMode = Enum.Cameramode.LockClassic

    end

Answer this question