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

how to animate a dummy with my animation script?

Asked by 2 years ago
Edited 2 years ago
local unanchoredparts = {}
        local la = Character:WaitForChild("LeftArm")
        local ra = Character:WaitForChild("RightArm")
        local to = Character:WaitForChild("Torso")
        local rl = Character.WaitForChild("RightLeg")
        local ll = Character:WaitForChild("LeftLeg")
        local head = Character.WaitForChild("Head")
        local movers = {}
        local tog = true
        local move = false
        local Player = game:GetService("Players").LocalPlayer
        local Character = Player.Character
        local mov = {};
        local mov2 = {};
        local player = game.Players.LocalPlayer
        local character = player.Character or player.CharacterAdded:Wait()
        local humanoid = character:WaitForChild("Humanoid")

while wait(1) do
  if not (humanoid.MoveDirection.Magnitude <= 0) then
        wait(0.125)
                    to.CFrame = CFrame.Angles(math.rad(44.977), 0, 0),
                    ll.CFrame = CFrame.Angles(math.rad(-0.859), math.rad(9.969), math.rad(-119.92)),
                    ra.CFrame = CFrame.Angles(math.rad(-10.027), 0, math.rad(-50.019)),
                    la.CFrame = CFrame.Angles(math.rad(5.787), math.rad(-8.193), math.rad(45.436)),
                    rl.CFrame = CFrame.Angles(math.rad(-9.969), math.rad(0.859), math.rad(-34.95)),
                    head.CFrame = CFrame.Angles(math.rad(-39.992), 0, 0),
        wait(0.125)
                    to.CFrame = CFrame.Angles(math.rad(30.023), 0, 0),
                    ll.CFrame = CFrame.Angles(math.rad(-0.859), math.rad(9.969), math.rad(26.127)),
                    ra.CFrame = CFrame.Angles(math.rad(4.526), math.rad(3.724), math.rad(-50.879)),
                    la.CFrame = CFrame.Angles(math.rad(5.787), math.rad(-8.193), math.rad(73.109)),
                    rl.CFrame = CFrame.Angles(math.rad(-9.969), math.rad(0.859), math.rad(-15.069)),
        wait(0.2)
                    ll.CFrame = CFrame.Angles(math.rad(-0.859), math.rad(9.969), math.rad(40.05)),
                    ra.CFrame = CFrame.Angles(math.rad(-10.027), 0, math.rad(-55.004)),
                    la.CFrame = CFrame.Angles(math.rad(5.787), math.rad(-8.193), math.rad(45.436)),
                    rl.CFrame = CFrame.Angles(math.rad(-9.969), math.rad(0.859), math.rad(95.054)),
                    head.CFrame = CFrame.Angles(math.rad(-39.992), 0, math.rad(-10.027)),
        wait(0.4)
                    to.CFrame = CFrame.Angles(math.rad(44.977), 0, 0),
                    ll.CFrame = CFrame.Angles(math.rad(-0.859), math.rad(9.969), math.rad(-109.951)),
                    ra.CFrame = CFrame.Angles(math.rad(-10.027), 0, math.rad(-50.019)),
                    la.CFrame = CFrame.Angles(math.rad(5.787), math.rad(-8.193), math.rad(50.42)),
                    rl.CFrame = CFrame.Angles(math.rad(-9.969), math.rad(0.859), math.rad(-29.908)),
                    head.CFrame = CFrame.Angles(math.rad(-39.992), 0, 0),
        wait(0.267)
                    la.CFrame = CFrame.Angles(math.rad(5.787), math.rad(-8.193), math.rad(72.078)),
                    head.CFrame = CFrame.Angles(math.rad(-39.992), 0, math.rad(15.011)),
  end
end

i don't know how to make it work on a dummy, any help please?

0
Did you write the script? What it does simply animate each part base on angles and position, it's better to write a new script that runs an animation not like that. AltairCelestia 47 — 2y

1 answer

Log in to vote
0
Answered by
Puppynniko 1059 Moderation Voter
2 years ago

you have to rotate the Motor6d's of the arms and torso https://create.roblox.com/docs/reference/engine/classes/Motor6D

Ad

Answer this question