Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How does this work? [closed]

Asked by 8 years ago

https://gyazo.com/4e62156592322c258d7976e24458d66e (How does the thing push the ball?)

0
I'm not sure what you're asking? UniversalDreams 205 — 8y

Closed as Not Constructive by AmericanStripes

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by
k1nq 30
8 years ago

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)
Ad