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

Help with BodyVelocity?

Asked by
FiredDusk 1466 Moderation Voter
8 years ago

When I touch the part, BodyVelocity does not change.

script.Parent.Touched:connect(function()
    while true do
        wait(.1)
        if script.Parent.BodyVelocity.Velocity == Vector3.new(0,2,0) then

            script.Parent.BodyVelocity.Velocity = Vector3.new(0,20,0)
        else
            script.Parent.BodyVelocity.Velocity = Vector3.new(0,10,0)
        end
    end
end)
0
This actually does work (I tested it). you're probably not noticing a difference because the loop is going too fast to notice. Everything works fine! minikitkat 687 — 8y

Answer this question