Hey
Trying to rotate a character
Here is the code I have so far which sucessfully rotates the player 45 degrees on the y axis
game.Players.PlayerAdded:connect(function(ply)
game.Workspace:WaitForChild(ply.Name)
local character = game.Workspace[ply.Name]
character.Humanoid.AutoRotate = false
while wait() do
character.Torso.CFrame = CFrame.Angles(0,math.rad(45),0) + character.Torso.CFrame.p
end
end)
However, when rotating 45 degrees on the x axis the character is always trying to rotate itself back to standing up
game.Players.PlayerAdded:connect(function(ply)
game.Workspace:WaitForChild(ply.Name)
local character = game.Workspace[ply.Name]
character.Humanoid.AutoRotate = false
while wait() do
character.Torso.CFrame = CFrame.Angles(math.rad(45),0,0) + character.Torso.CFrame.p
end
end)
If there were some way to stop the character from trying to auto flip itself back to normal orientation then that would fix the problem. I have tried turning off autorotate but this only fixed the problem on the y axis. I have also tried using bodygyro, but you can't set a particular rotation with that so that is not ideal.
Any help will be greatly appreciated

4 comments
Well you could use BodyGyro, but you'd have to update it's velocity constantly. You could anchor the character temporarily as well. Personally, I've also been looking for a way to make characters walk an angle, haven't found it yet though, so I wish you luck.
http://wiki.roblox.com/index.php?title=API:Class/Humanoid/AutoRotate , hope that helps?
I've already turned off auto rotate in the script and it only fixes rotations on the y axis. I will keep posted if I find an answer.
try this http://wiki.roblox.com/index.php?title=API:Class/Humanoid/AutoRotate