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

How to move a model?

This gives the part a direction. How would I make it where I could do this with a model?

local b = Instance.new('BodyVelocity')
b.maxForce = Vector3.new(math.huge, math.huge, math.huge)
b.velocity = Vector3.new(0, 10, 0)
b.Parent = Workspace.Part

1 answer

✓ Accepted answer

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:

model = script.Parent.Parent
model.PrimaryPart = script.Parent

while true do
	model:SetPrimaryPartCFrame(model.PrimaryPart.CFrame * CFrame.Angles(0, 0.1, 0))
	wait()
end

Try it, it should work!

:o)

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