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

How to make velocity valid for model?

--Parent is Model

script.Parent.ClickDetector.MouseClick:connect(function() script.Parent.Velocity = Vector3.new(8,0,0) end)

1 answer

✓ Accepted answer

Hello,

Velocity will not work for models, because it does not have the velocity property. To fix this, try using a part as the parent instead.

As for the velocity, try this...

script.Parent.ClickDetector.MouseClick:Connect(function()
	script.Parent.Velocity = script.Parent.Velocity + Vector3.new(8,0,0)
end)

To make the velocity more powerful, you can try multiplying the incremental vector values.

Vector3.new(8,0,0) * 10

4 comments

0

If we will set primary part as the main part of model.. Still it won't move because parts surrounding the main part are anchored..So have any other solution?

0

Well if the other parts surrounding the main part are anchored, then velocity will not work at all. You have to unanchor everything attached to the main part.

0

Um..I am not on pc right now..So,If I will unanchor the parts..Will upper parts fall or stay at upper side?

0

You have to weld the parts together in order to move together.

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