So basically I wanted to make a first person script, and I wanted the first person script to be non-active when the gui is showing. So it works for that, but when its time to make it first person its still not active. I've tried to fix it the lazy way, but still didn't work.
game.StarterPlayer.CameraMaxZoomDistance = 0 else if
game.StarterGui.ScreenGui.Frame.Visible = true then
game.StarterPlayer.CameraMaxZoomDistance = 2 else if
game.StarterGui.ScreenGui.Frame.Visible = false then
game.StarterPlayer.CameraMaxZoomDistance = 0
end
end
game.StarterPlayer.CameraMinZoomDistance = 0 else if
game.StarterGui.ScreenGui.Frame.Visible = true then
game.StarterPlayer.CameraMinZoomDistance = 2 else if
game.StarterGui.ScreenGui.Frame.Visible = false then
game.StarterPlayer.CameraMinZoomDistance = 0
end
end
wait(.1) then
game.StarterPlayer.CameraMinZoomDistance = 0
game.StarterPlayer.CameraMaxZoomDistance = 0
So that's the script, can anybody tell me whats wrong with it...

3 comments
yea im pretty new to scripting, so I kinda thought I knew what I was doing then I didn't work. So I get it now, thx
On line 3, you spaced elseif. This will cause Lua to interpret it as a new line, thus needing another end
fixed. thanks incap