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 Models?

I have no idea how to rotate a model with a script? Is it done the same way as a brick or not? I have little time let until I ave to release a game, and need to finish. All help appreciated.

1 answer

Well, it's not exactly the same as a brick.

a = game.Workspace.Model:GetChildren()

for i,v in pairs(a) do
	z = 0
	repeat
	v.Rotation = v.Rotation + Vector3.new(0.1, 0, 0)
	wait(0.01)
	z = z+1
	until z == 40 --Smooth rotation
end

2 comments

0

Yeah, but that will rotate the parts, not the group.

0

Rotating the model is the same thing as rotating each part the same amount each time. This will rotate everything at once

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