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

How would I combine this with a for loop?

game.Workspace.Player.Torso.CFrame = game.Workspace.Player.Torso.CFrame*CFrame.Angles(math.rad(0),0.1,0)

I want to make it so the player spins every second by 0.01. Sorry for the unclear explanation, anyway the script I posted is working, but I cannot figure out how to make it work with a for loop.

1 answer

local a = 200 -- loops

for num, a do -- num is the current loop number it's on and then a is the number of loops
	game.Workspace.Player.Torso.CFrame = game.Workspace.Player.Torso.CFrame*CFrame.Angles(math.rad(0),0.1,0)--your code
	wait(.01)
end --ends it all

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