Part not spinning together with other parts

So right now I have a script that spins a part vertically with the origin being in the middle, however, I have other parts that I want sticked to the rotating part so it spins together.

Idle

What I have

What I want

Here’s the script that I’m using, it only works when it’s placed in the part itself

sphere = script.Parent --This means that you have to have the script in the sphere part
a = 0
repeat
sphere.Rotation = Vector3.new( 0, a, 0) --The second value of vector3 is a,
wait(.01) -- we wait .01 seconds,
a = a+3 --a's value increases
until pigs == 1 --Just make sure you never have pigs' value to 1, and it'll spin forever
1 Like

I think this will give you the solution

Altough there are several ways…
Personally I would use a moter underneath and make a weld for all parts.
But I think the answer inside this link will help you better. (Did not test that myself)

1 Like

Sorry hadn’t had the time to check, but it worked the very least. Thanks for the help!

1 Like