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

How do you make a object spin?

Asked by 9 years ago

I need to add a theme sit on the horse while you spin, its like one of those rides in a park fair where you sit on a seat but for kids its horses and stuff then there's (http:http://www.roblox.com/games/304372641/LF//) this ceiling on top of you which spins and because you are connected to it you will spin as well

For some reason Motor would not work

0
Go to school kid. "where you sit on a sit" Vezious 310 — 9y

2 answers

Log in to vote
0
Answered by
ImfaoXD 158
9 years ago
while true do 
wait()
script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0.1)
end

Put this into a normal script not local script. Just place this script into the "part" that you want the "part" to spin. I hope this helps. :)

0
It did not work 2030mazmaz 5 — 9y
0
SORRY it did work 2030mazmaz 5 — 9y
Ad
Log in to vote
0
Answered by 9 years ago

What you need to do is weld Parts of the (It's called a Carousel, I believe). http://wiki.roblox.com/index.php/Weld

Then, you can use a Motor to spin the bottom part to which all other parts are welded. http://wiki.roblox.com/index.php?title=API:Class/Motor

Your question is vague, you show no effort of researching or attempting to code. Next time, actually do the research and post in the question all that you have attempted. Not just 'This method didn't work' as a method to do something can be used in both good and wrong ways, so we can't know what you actually did with it.

Answer this question