New: Nitro Boost our Discord server and receive full donation perks here on the website! Join the Scripting Helpers Discord Server to learn more! You can also Support on Patreon as always.
Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

How do I change Body Velocity?

Asked by
NecoBoss 194
6 years ago

I've been trying to change the body velocity and I thought I may have find the solution but this, unfortunately, doesn't work.

function onTouched(part)
Touch.Parent.BodyVelocity.velocity(0,10,0)
wait(2)
end

script.Parent.Touched:connect(onTouched)

Please help me.

1 answer

Log in to vote
2
Answered by 6 years ago

You need to set the value with Vector3.

function onTouched(part)
Touch.Parent.BodyVelocity.velocity = Vector3.new(0,10,0)
wait(2)
end

script.Parent.Touched:connect(onTouched)
Ad

Answer this question