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

How would I edit a blocks rotation instead of position?

Asked by 10 years ago

What the title says!

2 answers

Log in to vote
0
Answered by
Perci1 4988 Trusted Moderation Voter Community Moderator
10 years ago

You have two options. First is to edit a part's Rotation property.

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

The second way to to use CFrame.Angles(). This is basically the same as Rotation, except it's a CFrame, not Vector3. This will also make the part ignore other parts - it will just go through them.

workspace.Part.CFrame = CFrame.Angles(50,50,50)
Ad
Log in to vote
1
Answered by 10 years ago

while true do wait() workspace.BrickName.Rotation = Vector3.new(0,0,0) wait(1) workspace.BrickName.Rotation = Vector3.new(0,90,0) end

Try this :)

Answer this question