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

How would this work?

plr.Character.Torso.CFrame=Torso.CFrame*CFrame.Angles(math.deg(), math.deg(), math.deg())

One of the guys suggested me try this method to rotate a player's body parts, so like they're tilted, however I don't know how it works.

Tried looking on Wiki, nothing helps me out, sorry for being so dumb by the way ;_;

3 comments

0

What the script is doing is tilting the character as a whole. Do you really mean "rotate a player's body parts" as in individual limbs pointing in a certain direction, or the whole character?

0

Whole character.

0

You're not dumb..

1 answer

Try putting a script in your NPC with this:

local primary = script.Parent.Torso
local workspace_part = primary:Clone()
workspace_part.CanCollide=false
workspace_part.Transparency = 1
local model = script.Parent
local rotation = 64


	local Amount = 2
while wait(.005) do
	
	
	
	
	target = workspace_part
	target.CFrame = target.CFrame * CFrame.new(Vector3.new(0.001,0,0))
				target.CFrame = target.CFrame * CFrame.fromAxisAngle(Vector3.new(0,.001,0),math.pi/(rotation/Amount))
	--wait(.001)
	model:SetPrimaryPartCFrame(workspace_part.CFrame+Vector3.new(0,0,0))
	
	
	
	

end


2 comments

0

I took this out of a small project I did for someone recently.

2

The tabbing in this is....... unexplainable.

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