|
| 04 Oct 2017 11:16 AM |
How do I use a script to check if a player is selecting a tool, for example:
if nearest player is selecting tool1 then blah blah blah end
Btw when I say "selecting" I mean like when a player touches the tool in inventory before using it |
|
|
| Report Abuse |
|
|
| |
|
soutenu
|
  |
| Joined: 09 Dec 2011 |
| Total Posts: 1021 |
|
|
| 04 Oct 2017 11:24 AM |
game:GetService'Players'.LocalPlayer.CharacterAdded:Connect(function(char) char.ChildAdded:Connect(function(child) if(child.ClassName=='Tool')then print(child.Name..' was equipped!'); end; end); char.ChildRemoved:Connect(function(child) if(child.ClassName=='Tool')then print(child.Name..' was unequipped!'); end; end); end); |
|
|
| Report Abuse |
|
|