I have more GIFs to show lol. I tried to add in a debounce, but it never worked the way I wanted to.
Script:
local tool = script.Parent
local handle = tool:WaitForChild("Handle")
print("Loaded")
handle.Touched:connect(function(hit)
if hit.Parent ~= nil then -- if what you hit still exists
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player and player.Character then
local char = player.Character
local torso = char:findFirstChild("Torso")
local hum = char:findFirstChild("Humanoid")
if torso and hum and hum.Health > 0 then -- make sure they aren't dead
local dist = (torso.Position - handle.Position).magnitude
if dist < 5 then
tool.Parent = char
end
end
end
end
end)
Script Above GIF
How I Want It to Work
Thanks,
LukeGabrieI aka EnergyBrickz

1 comment
First, I don't see where your debounce is, I also have a question on where this script is place and what script is it and how did you get GIF #2 if it never worked the way you wanted it to?