Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make a Button GUI that gives a tool to the LocalPlayer? [closed]

Asked by 5 years ago

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?

0
Show any code that you have attempted this with. DeceptiveCaster 3761 — 5y
0
no requests pls.. starmaq 1290 — 5y

Closed as Non-Descriptive by DeceptiveCaster, starmaq, WideSteal321, and User#24403

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

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)

Ad