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

Why doesn't the wheel move?

Asked by 9 years ago

Trying to animate a part with a velocity script but it's not working. Help?

gear = game.Workspace.Wheel

function GearUp()
    wait(3)
    gear.Velocity = Vector3.new(5,0,0)
    wait(3)
    gear.Velocity = Vector3.new(0,0,0)
    wait(3)
    gear.Velocity = Vector3.new(5,0,0)
    wait(3)
end 

1 answer

Log in to vote
0
Answered by
Fubl 15
9 years ago

Well, there's a few unknowns here that need explanation before further analysis.

One, are you calling GearUp()? It doesn't appear to be called in your provided code.

Two, are you trying to make object move rotate or move in a direction? The script you've provided makes it move in a direction, not rotate.

Three, assuming you do want it to move in a direction, are there any objects blocking the gear from moving along it's desired path?

Four, is it anchored?

Five, directly setting Velocity is ugly and makes roblox's online play very sad. You should use one of the BodyObjects to interact with physics.

Ad

Answer this question