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

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

Asked by 5 years ago

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.

0
You have to set a part in that model as a primary part. Then you can set that primary parts CFrame with :SetPrimaryPartCFrame() kevinliwu1 9 — 5y

2 answers

Log in to vote
0
Answered by 5 years ago

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)
0
nope Gameplayer365247v2 1055 — 5y
0
That is one way to set the PrimaryPart BlackOrange3343 2676 — 5y
0
Also that would work for the Rotation BlackOrange3343 2676 — 5y
Ad
Log in to vote
-3
Answered by 5 years ago

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

0
No, a model does not have the Orientation property. BlackOrange3343 2676 — 5y

Answer this question