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

How to use motors to make an object continuously spin?

Asked by
mc3334 649 Moderation Voter
5 years ago

Hello. I am trying to have a part spin continuously with motors without having to constantly change the "goal" value. Does anyone have any ideas on how I could do that? I have tried using motors, I have tried motor6D, nothing is working. If anyone could help I would greatly appreciate it.

0
why not use a bodygyro The_Pr0fessor 595 — 5y
0
Idk, I thought rotation would be easier. It also needs to be able to stay unanchored because it will be weilded to a moving object mc3334 649 — 5y
0
well then u would need to rotate the weld wouldnt you? The_Pr0fessor 595 — 5y
0
Nope. Thats what constraints are for mc3334 649 — 5y

1 answer

Log in to vote
-3
Answered by 5 years ago

Don't question the script, just put it in a part (or union) that you want to spin, the part (or union) must be anchored (obviously), ;)

sphere = script.Parent
a = 0
repeat
sphere.Rotation = Vector3.new( 0, a, 0)
wait(.01)
a = a+3
until pigs == 1

0
That would not work to the tiniest bit mc3334 649 — 5y
0
Pigs is undefined mc3334 649 — 5y
0
I also need it to be using a motor mc3334 649 — 5y
0
pigs is undefined that means it will go forever User#28169 0 — 5y
View all comments (3 more)
0
that was a dumb answer The_Pr0fessor 595 — 5y
0
no offense The_Pr0fessor 595 — 5y
0
Facts mc3334 649 — 5y
Ad

Answer this question