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

How do I change Body Velocity?

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

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)

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