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

How do i rotate an object without it moving it's position?

Asked by
rexpex 45
7 years ago

I've been trying to make a brick rotate without it moving its position how do i do that?

game.Workspace.Part.CFrame =
game.Workspace.Part.CFrame*CFrame.fromAxisAngle(Vector3.new(game.Workspace.Part),math.rad(.1))

1 answer

Log in to vote
0
Answered by 7 years ago
Edited 7 years ago

Unless the brick, viewed from the top, is a square, it is not possible to rotate a part without moving it's position. All I can say is that you simply have to account for this when writing a script that rotates bricks. What I would suggest doing is moving the brick to where you want in Studio, and then recording the rotation and position values, and move those in the script.

0
How is it impossible, i've seen games rotate things before... rexpex 45 — 7y
Ad

Answer this question