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

Animation Not working help?

Asked by 8 years ago
local BP = Instance.new("BodyPosition")
Char = script.Parent.Parent.Character
function FloatEnable(obj)
    BP.Parent = obj:WaitForChild("Torso")
    BP.Position = Vector3.new(0,11.36,0)
    BP.MaxForce = Vector3.new(0,11000,0)
end

workspace.PART.Touched:connect(function(obj_hit)
    if obj_hit.Parent:WaitForChild("Humanoid") then
        RS = Char.Torso["Right Shoulder"]
         RS.C0 = RS.C0 *CFrame.Angles(0.16,0,0)
    LS = Char.Torso["Left Shoulder"]
         LS.C0 = LS.C0 *CFrame.Angles(0.16,0,0)
        FloatEnable(obj_hit.Parent)
    else
        print("Not Humanoid")
    end
end)

workspace.PART.TouchEnded:connect(function()
        RS = Char.Torso["Right Shoulder"]
         RS.C0 = RS.C0 *CFrame.Angles(0.16,0,0)
    LS = Char.Torso["Left Shoulder"]
         LS.C0 = LS.C0 *CFrame.Angles(0.16,0,0)
    BP:remove()
end)
--It works when I stop touching the part but the thing is my arms don't go back to normal when it gets to the "touchended" part is there a way when I stop touching the part my arms go back to normal?
1
Why on lines 23 and 25, look identical to lines 12 and 14 rexbit 707 — 8y
0
LOL No wonder why xD FlaminSparrow 65 — 8y
0
o3o Clakker200 5 — 8y

1 answer

Log in to vote
0
Answered by 7 years ago

https://www.roblox.com/library/144373835/Animation-Editor

Just Use This.

Ad

Answer this question