function onTouched(hit)
h = hit.Parent:findFirstChild("Torso")
local b = Instance.new("BodyForce")
d.Parent = h
d.force = Vector3.new(1000, 1000, 0)
game.Workspace.chao50["Right Arm"]:Remove()
wait(3)
d.force = Vector3.new(0, 0, 0)
game.Workspace.chao50["Right Arm"].Touched:connect(onTouched)
end
What is firing the function in the first place? :)
function onTouched(hit)
h = hit.Parent:findFirstChild("Torso")
if h==nil then return end
local b = Instance.new("BodyForce")
d.Parent = h
d.force = Vector3.new(1000, 1000, 0)
game.Workspace.chao50["Right Arm"]:Remove()
wait(3)
d.force = Vector3.new(0, 0, 0)
end
game.Workspace.chao50["Right Arm"].Touched:connect(onTouched) |