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

How do you make bricks rotate through a script?

Asked by 9 years ago

Well I'm building this amusement park ride in which it rotates its self all around. How do I script it to do this?

0
What rotates it self around? iLegitus 130 — 9y
0
Part of the model which is the ride cabin and the giant rod which holds it to the standards. ChefBuckeye 0 — 9y

1 answer

Log in to vote
1
Answered by
Perci1 4988 Trusted Moderation Voter Community Moderator
9 years ago

To rotate a brick you have two options.

First, you can use the Rotation property, like so:

workspace.Part.Rotation = Vector3.new(5,5,5)

The second way is to use CFrame.Angles(). I prefer this method because it will not be affected by other blocks in it's way.

workspace.Part.CFrame = CFrame.Angles(5,5,5)
0
Also make sure that you remember to anchor it, this is a problem I see far to often. Ex: game.Workspace.Part.Anchored = true PropheticExtinction 75 — 9y
Ad

Answer this question