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

Tool's Handle looses it's touch interest?

Asked by 3 years ago
Edited by JesseSong 3 years ago

I am trying to make a dog leash with a dog on it and I want it so when you try to put it away (by clicking the number in the hotbar) it will just drop to the ground. I made this local script and put it in StarterPlayerScripts folder.

wait(3)
 while true do  
 wait()
 local SearchForLeash = script.Parent.Parent.Backpack:FindFirstChild("DogLeash") 
    if SearchForLeash then          
SearchForLeash.Parent = game.Workspace 
    end 
    end

The issue I am having is that when you try to put it away in your hotbar it just breaks it. The tool drops to the ground like it should but it no longer has a touchinterest and your character won't pick it up when you stand on it. If you hit the backspace key it will drop to the ground and you can still pick it up by stepping on it so I don't know what to think.

0
Just get rid of the while loop MarkedTomato 810 — 3y
0
Try to duplicate the handle, The duplicated place it in Workspace, The original, Delete, Then Rename the Duplicate to "Handle", Then try putting the duplicated one into the Tool RektwayYTB 123 — 3y

Answer this question