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

Tool is nearly impossible to drop.Any advise?

Asked by 5 years ago

So I made a tool myself with Handle etc. but the problem is that if I want to drop it that it will drop it kinda like in my hand and it will equipp it instantly again. So its super hard to drop. Any Idea what to do? Change the size of the Handle or move it abit? idk.

0
That occurs when the CanBeDropped is unchcked from the tool's properties. Check the box and you should be able to drop it hellmatic 1523 — 5y

1 answer

Log in to vote
1
Answered by 5 years ago

I am assuming that you want the tool to be dropped, if not: you can use CanBeDropped property from Tool. I am also assuming that you aren't asking for a script and only for an advice.

Tools, when touched automatically move to the player's backpack. The only way to avoid it being equipped again is to create a debounce. After being dropped you need to set the contents of the tool to be parented by the workspace and not parented to the Tool, this disables the automatic equip, after awhile you probably want it to be picked back up again, then you can create a new tool and set it's contents to be the one that you removed it from.

Basically: Check if the tool is not parented to the player anymore, if yes, set the parent of the contents to workspace, after some time parent those contents to the tool again.

0
Thats a pretty smart Idea, Thanks. Just weird how sometimes the Player drops tools perfectly, a distance away from the player and sometimes just drops it in his own hands and reqeqquipps it instantly Paintertable 171 — 5y
Ad

Answer this question