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)

1 comment
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!