Removing Tool Breaks Cursor

Hey there,

I am encountering this behavior where if a player is given/has a tool from a seat or anything and that tool is removed from their inventory while they have it selected without them first deselecting it; their cursor does not revert to default and they can’t interact with other clickable things.

How can I stop this behavior from happening? Is there a method to reset the players cursor when they have a tool force-removed from their backpack?

I have not been able to find any other posts that describe fixing my problem; at least not in the way that I’m describing it. I hope any solutions to this post can help other people easily find it as well.

2 Likes

Can you provide a video of whats happening?

2 Likes

robloxapp-20240314-2358410.wmv (2.6 MB)

As you can see in this video I’m able to interact with the object and click it, but the moment that I get in the vehicle and then I select the tool but jump out and the tool is removed from my backpack that I can no longer click anything.

2 Likes

Sorry im not able to view the file because im on mac

2 Likes

Like I mentioned before, I’m experiencing the behavior of when you have a tool equipped and then a script or whatever forcefully removes it from you; your cursor breaks and you can’t click other things unless you get the same tool or another tool and reselect and deselect to reset your cursor so you can click things again when you don’t have a tool.

2 Likes

Sorry im acting stupid lol, but try looking for any script that edits the cursor or tool behavior.

2 Likes

My script intentionally removes the players tool by destroying it when they get up from the seat.

2 Likes

Oh okay thank you now i get it can you list the script?

2 Likes

Hello? man? You there??? ???

2 Likes

I need to sleep but I will come back to this problem tomorrow and I’ll keep you updated.

1 Like

Ok ill wait for the script or smt i have notifications on watching

1 Like

Here’s how I fixed it; and I actually ran into two problems.

First problem, Cursor breaking from the tool being removed:

– I fixed this issue by using Humanoid: UnequipTools(), calling it on my character before removing their tool. Works great.

Second problem, UnequipTools() executing but NOT working:

–The reason this was happening for me was because I was using deprecated “tools”, aka the Hopperbin(s). So what I did is replaced my Hopperbin with a tool, switched events from Selected:Connect and Deselected:Connect to Tool’s Equiped and Unequipped; and ALSO don’t forget to uncheck the tool’s “Require handle” if your tool doesn’t have a handle or these events won’t fire.

Ok, happy developing of your game!

Also im currently responding fast because im trying to get promoted and im at 9 hours of read time i meet everything else i just need 7 more read hours.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.