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

How can I make a GUI when I equip a tool?

Asked by
kofe_i 4
6 years ago

I am currently working on my non raycast gun with blowback animation, muzzle flash, and a reload system. However, the user will not know how much ammo is in their gun without a GUI, but I am unsure of how to make a GUI pop up when a tool is equipped. How can I do this?

1 answer

Log in to vote
0
Answered by 6 years ago

You first want to use the Tool.Equipped event. http://robloxdev.com/api-reference/event/Tool/Equipped Whenever it's equipped, it will then set a frame or textlabel or whatever Gui Object inside of a screengui you want to be visible. I'm fairly sure it's easy to understand how this works.

Ad

Answer this question