I'm trying to make an FPS game. And I wanted to make a GUI that gives tools when clicked then disappear. I've gone through many problems like getting the LocalPlayer 's name so I won't put any script. Can anyone help?
✓ ANSWER ACCEPTED
How to make a Button GUI that gives a tool to the LocalPlayer?
1 answer
✓ Accepted answer
Remote Events. Since you posted no script, I also won't. Make an event that gives the player the tool and one that removes the tool. Have the gui check if the player currently has or doesn't have the tool and use the events as you should. (should add a boolvalue for a sanity check though it may be unnecessary)
Edit: Misread your post, to remove your gui on click you should run the give tool event then use :Destroy() on the screengui (You should put a GUI copy into the ReplicatedStorage and copy it back if you need it again)
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Show any code that you have attempted this with.
no requests pls..