Hey There!Im Sorry If Im getting Too Many Errors Lately But Im Just New So When The Script Gets 2 The Line Of script Containing My "PlayerAdded" Script The Whole script Stops Like When I play The Game And I Press The Button Nothing Works Tried Even printing After The PlayerAdded Here Is The Portion Of The Code: (keep In mind I Dont Have Any Variables Cointaning "Plr" So Yea)
Players.PlayerAdded:Connect(function(player)
print("PlayerJoined")
button.MouseButton1Click:Connect(function()--when a player presses the button in left click
script.Parent.Parent.Visible = false-- should invis the frame
print("Pressed")-- when a player presses the button then it will print out "Pressed"
end)
end)
Thanks!

5 comments
First of all, you need game.Players.PlayerAdded instead of just Players. I also recommend you do MouseButton1Clicks on the Local Side, not the Server.
Oh ok tnx
But i have a pproblem if i do it on another script then it wont work beaacuse i need the player in the playeradded
Another thing is i have alreeady defined player so i dont need Game
I provided The Full script So You dont get More Confused, Btw Its A Normal Script