script.Parent.MouseButton1Down:connect(function()
bin = script.Parent
function Clicked()
bin.Parent.Visible = false
end
bin.MouseButton1Down:connect(Clicked)
game.Players.LocalPlayer.CameraMaxZoomDistance = .5
end)
bin = script.Parent
function Clicked()
bin.Parent.Visible = false
end
bin.MouseButton1Down:connect(Clicked)
game.Players.LocalPlayer.Character.Humanoid.Died:connect(function()
game.Players.LocalPlayer.CameraMaxZoomDistance = 20
end)
It's supposed to lock the player in first person when he clicks the "Play" button and make the menu disappear. The menu disappears, but the player is not locked in first person. Is there anything I can do to fix this script?

2 comments
Read this. I'm 90% the solution to your problem is in it. https://scriptinghelpers.org/blog/it-works-in-studio-but-not-online
I read it. What would you recommend me to change in my script?