Answered by
8 years ago Edited 8 years ago
You likely have the Button in StarterGui, which always is sent to the player after a reset, but nothing else. I suggest you create a BoolValue in the Player called something like "ButtonSeen". Then, once the button is clicked, you can set this value to true. Then in this script, you can add something at the top like:
1 | if game.Players.LocalPlayer.ButtonSeen.Value = = true then |
2 | script.Parent:Destroy() |
If you are unsure how to create a BoolValue in the player, you can:
Create a new script in the ServerScriptService
Set the script's content to the following:
1 | game.Players.PlayerAdded:connect( function (Player) |
2 | Instance.new( "BoolValue" , Player).Name = "ButtonSeen" |
- Now the value should have been created and you may now manipulate it. It will not disappear unless the player leaves.
Also, it is worth noting I am using :Destroy() instead of :Remove() as :Remove() has been deprecated. I suggest you change that in your code as well.