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: Making a tool unequippable?

Previous Thread :: Next Thread 
222304 is not online. 222304
Top 100 Poster
Joined: 26 May 2008
Total Posts: 24900
10 Feb 2016 05:30 PM
I've seen it done, and checked the roblox wiki

Nothing helpful so far
Report Abuse
EgoMoose is not online. EgoMoose
Joined: 04 Feb 2009
Total Posts: 2896
10 Feb 2016 05:34 PM
Can you give an example of where you've seen it done?

It's more likely that the "tools" were actually pseudo-tools meaning that they're welded to the player and they're scripted to be just like tools, but they aren't actually tools.

I believe if you disable the backpack UI with SetCorGuiEnabled you also take away the ability to unequip tools.

I have never tried this, and it may not be valid for what you want to use it for, but you might be able to re-equip with the EquipTool method when the unequipped event happens?
Report Abuse
222304 is not online. 222304
Top 100 Poster
Joined: 26 May 2008
Total Posts: 24900
10 Feb 2016 05:36 PM
"It's more likely that the "tools" were actually pseudo-tools meaning that they're welded to the player and they're scripted to be just like tools, but they aren't actually tools."

That might be the case
Report Abuse
Tynezz is not online. Tynezz
Joined: 28 Apr 2014
Total Posts: 4945
10 Feb 2016 05:37 PM
Use EquipTool

local currentTool;
local p=game.Players.LocalPlayer
local c=p.Character or p.CharacterAdded:wait()

c.ChildAdded:connect(function(tool)
if tool.className=='Tool' then
currentTool=tool
end
end)

game:GetService("RunService").RenderStepped:connect(function()
if currentTool then
if currentTool.Parent~=c then
c:EquipTool(currentTool)
end
end
end)


Report Abuse
222304 is not online. 222304
Top 100 Poster
Joined: 26 May 2008
Total Posts: 24900
10 Feb 2016 05:40 PM
Well, I'm a bit more concerned about players not being able to drop currently equipped weapons I suppose
Report Abuse
EgoMoose is not online. EgoMoose
Joined: 04 Feb 2009
Total Posts: 2896
10 Feb 2016 05:42 PM
I believe there's a property in tools that doesn't let players drop them.
Report Abuse
222304 is not online. 222304
Top 100 Poster
Joined: 26 May 2008
Total Posts: 24900
10 Feb 2016 07:52 PM
dang if that's the case i feel dumb
Report Abuse
222304 is not online. 222304
Top 100 Poster
Joined: 26 May 2008
Total Posts: 24900
10 Feb 2016 07:54 PM
dang what do you know, there is a property
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