Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
|
| 26 Oct 2016 11:17 PM |
What's the best way of doing this? I've tried moving all their tools, looping unequip function, etc.
|
|
|
| Report Abuse |
|
|
Quebankus
|
  |
| Joined: 25 Aug 2011 |
| Total Posts: 846 |
|
|
| 26 Oct 2016 11:20 PM |
tool = script.Parent normalParent = tool.Parent
tool.AncestryChanged:connect(function(ancestor) if ancestor ~= normalParent then wait() tool.Parent = normalParent end end) |
|
|
| Report Abuse |
|
|
Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
|
| 26 Oct 2016 11:25 PM |
Theres going to be a 5 second period of time where i dont want players to equip items, and i want to know the best method of doing this. I don't like adding a function in each tool which will activate if the given state is true
|
|
|
| Report Abuse |
|
|
triode
|
  |
| Joined: 13 Aug 2011 |
| Total Posts: 5844 |
|
|
| 26 Oct 2016 11:30 PM |
Either add a restraint in the tools source to when theyre supposed to use it or find a way to only give them the tool when they need to have it.
Otherwise its the ugly loop, AncestryAdded crap |
|
|
| Report Abuse |
|
|
| |
|
|
| 27 Oct 2016 01:03 AM |
could make a custom backpack...
im a mlg |
|
|
| Report Abuse |
|
|
|
| 27 Oct 2016 01:45 AM |
| Probably just give the player the tools when you want them to instead of putting it in the starterpack? Or make a global timer that will make the tool force-unequip if it hasn't at 0. |
|
|
| Report Abuse |
|
|