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

How to Make a Model Spin with Script and how to Set Up The Model for it to Work?

I've searched for the tutorial on Youtube and I couldn't find one that is working. All I saw was a Script on making the Part rotate. I've been having this problem for a long time now and couldn't make what I wanted to make on Roblox Studios.

1 comment

0

You have to set a part in that model as a primary part. Then you can set that primary parts CFrame with :SetPrimaryPartCFrame()

2 answers

You have to set a part in that model as the primary part with:

script.Parent.PrimaryPart = script.Parent.Your_Part

then you can set that primary parts cframe with:

script.Parent:SetPrimaryPart(script.Parent.PrimaryPart.CFrame * CFrame.fromEulerAnglesXYZ(x,y,z)

3 comments

0

nope

0

That is one way to set the PrimaryPart

0

Also that would work for the Rotation

well its a pretty easy thing to do, if u only want one part to rotate then u make that part and insert a script with it, inside that script u simply just type

script.Parent.Orientation = script.Parent.Orientation + Vector3.new(numbers in here)

and put that into a loop for it to rotate all the time

1 comment

0

No, a model does not have the Orientation property.

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