local ball = script.Parent
local debounce = false
function grab(hit)
if debounce == false then
debounce = true
local x = hit.Parent:FindFirstChild("Torso")
if x then
local weld = Instance.new("Weld", hit.Parent)
weld.Part0 = x
weld.Part1 = ball
weld.C1 = CFrame.new(0, 1, 0)
wait(2)
debounce = false
end
end
end
ball.Touched:connect(grab)
COMMUNITY QUESTION
why isnt this welding...?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.
