Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How do I make a tool un-dequippable?

Asked by 7 years ago

I have a tool that players start with and everything else is set up. Theres only one problem. I want the tool to be un-dequippable because when the player dequips it, the player dies. I have searched everywhere for this script and my scripting isn't good enough to write a script like that. Can you guys help me with it?

The Tool is in the StarterGear if it helps game.StarterGear.Tool

0
Can you please post the code in a code block so I can revise it for you and figure out the problem? TickTockTheory 106 — 7y
0
Why the Player dies when you unequip the tool? You need that? Or you just want to be unequip because they die? JohnnyS_Sinns 27 — 7y
0
There isn't a code, thats what i was talking about. My scripting skills arent good enough for a script like that and the player dies when the tool is dequipped because im using it as a temporary solution araltan2002 47 — 7y
0
So you just want to make it so the tool can't be dropped by a player? Mayk728 855 — 7y

2 answers

Log in to vote
1
Answered by 7 years ago

Disable the backpack, and then force-equip the tool.

EquipTool()

Disabling default interface

0
game.Workspace.Player1.Humanoid:EquipTool(game.Workspace.TestTool) araltan2002 47 — 7y
0
I used this script and disabled backpack but it seems like it doesn't work araltan2002 47 — 7y
Ad
Log in to vote
-1
Answered by 7 years ago
Edited 7 years ago

Ok , I think I made a script that works. Thanks for the help!

Answer this question