Why won't this work????
wait(1)
Char = script.Parent.Parent
function onTouch(hit)
b = Instance.new("BodyPosition")
b.Parent = Char.Character.Torso
b.Position = Vector3.new(0,11.36,0)
b.MaxForce = Vector3.new(0,9000,0)
game.Workspace.Part.TouchEnded:connect(function()
b.Position = Vector3.new(0,11.36,0)
b.MaxForce = Vector3.new(0,0,0)
end)
end
game.Workspace.Part.Touched:connect(onTouch)
-- when I touch the part in workspace It makes like 10 bodypositions and puts it in my torso how do I only make it put 1 in my torso?