Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would this work?

Asked by 8 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
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 ;_;

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? Redbullusa 1580 — 8y
0
Whole character. Kobertum -2 — 8y
0
You're not dumb.. JasonTheOwner 391 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

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


0
I took this out of a small project I did for someone recently. JasonTheOwner 391 — 8y
2
The tabbing in this is....... unexplainable. unmiss 337 — 8y
Ad

Answer this question