Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How does this work?

1 answer

✓ Accepted answer

Make a part, then inside of it put a script like this.

local debris = game:service("Debris")
function onTouched(hit)
local F = Instance.new("BodyVelocity")
F.Parent = hit
F.velocity = script.Parent.CFrame.lookVector * 50
F.maxForce = Vector3.new(4e+006,3e+005,4e+006)
debris:AddItem(F,0.3)
wait(1)
end
script.Parent.Touched:connect(onTouched)

This discussion is preserved as it was. New answers, comments, and votes are closed.