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

How to make velocity valid for model?

Asked by 5 years ago

--Parent is Model

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

1 answer

Log in to vote
0
Answered by
iTamago 18
5 years ago

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
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? AnimeGamingEmperor -1 — 5y
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. iTamago 18 — 5y
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? AnimeGamingEmperor -1 — 5y
0
You have to weld the parts together in order to move together. iTamago 18 — 5y
Ad

Answer this question