generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Prevent player from equipping tool?

Previous Thread :: Next Thread 
Wowgnomes is online. 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 is not online. 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 is online. 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 is not online. 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
foreverpower is not online. foreverpower
Joined: 05 Feb 2011
Total Posts: 5578
27 Oct 2016 12:54 AM
Disable their backpack?
Report Abuse
Weirdraidercs35 is online. Weirdraidercs35
Joined: 14 May 2015
Total Posts: 2275
27 Oct 2016 01:03 AM
could make a custom backpack...


im a mlg
Report Abuse
ArmaVictorem is not online. ArmaVictorem
Joined: 18 Mar 2015
Total Posts: 1332
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image