--Parent is Model
script.Parent.ClickDetector.MouseClick:connect(function() script.Parent.Velocity = Vector3.new(8,0,0) end)
--Parent is Model
script.Parent.ClickDetector.MouseClick:connect(function() script.Parent.Velocity = Vector3.new(8,0,0) end)
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
This discussion is preserved as it was. New answers, comments, and votes are closed.
4 comments
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?
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.
Um..I am not on pc right now..So,If I will unanchor the parts..Will upper parts fall or stay at upper side?
You have to weld the parts together in order to move together.