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

How can I make a model it's self move using Cframe?

Asked by 10 years ago

I am trying to make a Video throughout Roblox and scripting each part insted of having a cast of players. how would I make it so a Part(s) in a Model or a Model it's self move using Cframeable scripting methods?

Say if there was a Model with models inside of it like(Left leg, Right Leg, Torso, Right arm, Left arm). How could I make one of the Body parts Rotate if you know what I mean. Or say if I needed a part to move inside the models how would I make that part move?

1 answer

Log in to vote
1
Answered by 10 years ago

You would have to use the MoveTo method in Lua. For example:

Workspace.Model:MoveTo(Vector3.new(0, 0, 0)) -- Whatever position you want.

As for the rotating, since I never experienced that, I'm guessing:

Workspace.Model:MoveTo(Vector3.new(0, math.pi 0, 0)) -- I'm not highly 100% sure this code will work
Ad

Answer this question