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

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

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

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.

1 comment

0

How is it impossible, i've seen games rotate things before...

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