|
| 26 Mar 2016 10:27 AM |
| I have a script that isn't working, and I'm assuming it's because I don't know the correct function to trigger a script by the player using a tool. |
|
|
| Report Abuse |
|
|
cgjnm
|
  |
| Joined: 22 Dec 2011 |
| Total Posts: 2347 |
|
| |
|
zaniac10
|
  |
| Joined: 18 Aug 2009 |
| Total Posts: 10000 |
|
|
| 26 Mar 2016 10:47 AM |
assuming the script is inside of the tool:
script.Parent.Equipped:connect(function() script.Parent.Activated:connect(function() -- your code here end) end)
|
|
|
| Report Abuse |
|
|