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

Animation Not working help?

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?

3 comments

1

Why on lines 23 and 25, look identical to lines 12 and 14

0

LOL No wonder why xD

0

o3o

1 answer

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