|
| 22 Jul 2016 02:20 PM |
Is there a way for a script to detect if a tool is equipped? I have been trying to make a script which detects if a player equips a weapon, it will change some text on the ScreenGUI.
Here is the script (Which is in StarterPack):
Tool = script.Parent
One = game:WaitForChild("StarterGUI")
Two = One:WaitForChild("GUIOne")
Three = Two:WaitForChild("GunGUI")
MagAmmo = Three:WaitForChild("MagAmmo")
StoredAmmo = Three:WaitForChild("StoredAmmo")
Tool.Equipped:connect(function() MagAmmo.Text = "30" StoredAmmo.Text = "270" end) |
|
|
| Report Abuse |
|