Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do you make bricks rotate through a script?

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

2 comments

0

What rotates it self around?

0

Part of the model which is the ride cabin and the giant rod which holds it to the standards.

1 answer

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)

1 comment

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

This discussion is preserved as it was. New answers, comments, and votes are closed.