This gives the part a direction. How would I make it where I could do this with a model?
1 | local b = Instance.new( 'BodyVelocity' ) |
2 | b.maxForce = Vector 3. new( math.huge , math.huge , math.huge ) |
3 | b.velocity = Vector 3. new( 0 , 10 , 0 ) |
4 | b.Parent = Workspace.Part |
Okay, I'm not that good with "Body" objects, but I'll try.
Here, we will use a thing called "model:SetPrimaryPartCFrame".
What it does is when you set a primary part, all the model will move to the direction of that single part.
For example:
1 | model = script.Parent.Parent |
2 | model.PrimaryPart = script.Parent |
3 |
4 | while true do |
5 | model:SetPrimaryPartCFrame(model.PrimaryPart.CFrame * CFrame.Angles( 0 , 0.1 , 0 )) |
6 | wait() |
7 | end |
Try it, it should work!
:o)