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: how do I make a tool not equip

Previous Thread :: Next Thread 
HegoDamaskJr is not online. HegoDamaskJr
Joined: 05 Oct 2016
Total Posts: 42
10 Oct 2016 09:50 AM
Tool.Unequipped:connect(function(mouse)
while wait do
if script.Parent.Selected == true then
script.Parent.Selected = false
end
wait(3)
break
end
end)

So when you unequip the tool, you should have to wait 1 second before being able to re-equip. That was my best attempt, any help?


Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
10 Oct 2016 09:52 AM
Tool.Unequipped:connect(function()
human:EquipTool(Tool)
end)


Report Abuse
HegoDamaskJr is not online. HegoDamaskJr
Joined: 05 Oct 2016
Total Posts: 42
10 Oct 2016 10:02 AM
Tool = script.Parent
human = game.Players.LocalPlayer.Character.Humanoid

Tool.Unequipped:connect(function()
human:EquipTool(Tool)
end)

10:01:16.644 - Something unexpectedly tried to set the parent of Tool to Player1 while trying to set the parent of Tool. Current parent is Backpack.



Shouldn't there be a wait somewhere?


Report Abuse
HegoDamaskJr is not online. HegoDamaskJr
Joined: 05 Oct 2016
Total Posts: 42
10 Oct 2016 10:06 AM
Tool = script.Parent
human = game.Players.LocalPlayer.Character.Humanoid

Tool.Unequipped:connect(function()
human:EquipTool(function()
human:UnequipTools()
end)
end)



10:04:29.754 - Unable to cast value to Object


Report Abuse
HegoDamaskJr is not online. HegoDamaskJr
Joined: 05 Oct 2016
Total Posts: 42
10 Oct 2016 10:20 AM
b please help, this is very important to me


Report Abuse
CodeBreadpudding is not online. CodeBreadpudding
Joined: 24 Aug 2016
Total Posts: 1286
10 Oct 2016 10:22 AM
Why does it need to be a tool in the first place?
Report Abuse
HegoDamaskJr is not online. HegoDamaskJr
Joined: 05 Oct 2016
Total Posts: 42
10 Oct 2016 10:27 AM
cause it is like a sword and I don't want people to be able to re-equip or else it's not fair.


Report Abuse
CodeBreadpudding is not online. CodeBreadpudding
Joined: 24 Aug 2016
Total Posts: 1286
10 Oct 2016 10:28 AM
How is re-equipping a sword not fair?
Report Abuse
HegoDamaskJr is not online. HegoDamaskJr
Joined: 05 Oct 2016
Total Posts: 42
10 Oct 2016 10:33 AM
One that blocks, if you re-equip it gets through the block and messes with the block script.


Report Abuse
CodeBreadpudding is not online. CodeBreadpudding
Joined: 24 Aug 2016
Total Posts: 1286
10 Oct 2016 10:35 AM
Well I have no idea.
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