Hello, I’m currently making an animated ragdoll using PS_LOL’s free “Euphoria Ragdoll” asset. I have been working on modifying these scripts, but now the Roblox animations (walking, running, climbing, jumping etc, etc…) are not working. I have 2 scripts (1 plays an animation when the player is falling and the other plays an animation when player hits the ground) and when both scripts are removed/disabled, the roblox animations work perfectly fine. Both custom animation types are Action. (and they are both created by me) Please help, I can’t figure this out at all.
Local Script A (falling anim)
local character = game.Players.LocalPlayer.Character
local humanoid = character:WaitForChild(“Humanoid”)
local humanoidRP = character:WaitForChild(“HumanoidRootPart”)
local stateType = Enum.HumanoidStateType
local anim = Instance.new(“Animation”)
anim.AnimationId = “http://www.roblox.com/asset/?id=7051623100”–4647022596
while wait(0.1) do
if character.UpperTorso.Velocity.Y < -90 then
if script.AnimationA.Value == true then
character.LimbsJoint.LeftArmSpring.Enabled = true
character.LimbsJoint.RightArmSpring.Enabled = true
character.LimbsJoint.LeftLegSpring.Enabled = true
character.LimbsJoint.RightLegSpring.Enabled = true
script.AnimationA.Value = false
script.Parent.AnimationRagdollB.AnimationB.Value = true
local playAnim = humanoid:LoadAnimation(anim)
playAnim:Play()
character.LimbsJoint.LeftArmSpring.Stiffness = 3000
character.LimbsJoint.RightArmSpring.Stiffness = 3000
character.LimbsJoint.LeftLegSpring.Stiffness = 3000
character.LimbsJoint.RightLegSpring.Stiffness = 3000
end
end
end
Local Script B (hitting ground anim)
local character = game.Players.LocalPlayer.Character
local humanoid = character:WaitForChild(“Humanoid”)
local humanoidRP = character:WaitForChild(“HumanoidRootPart”)
local stateType = Enum.HumanoidStateType
local anim = Instance.new(“Animation”)
anim.AnimationId = “http://www.roblox.com/asset/?id=7048658676”
character.Humanoid.Touched:Connect(function(hit)
if hit.Velocity == Vector3.new(0,0,0) then
if character.UpperTorso.Velocity.Magnitude > 6 then
if script.AnimationB.Value == true then
character.LimbsJoint.LeftArmSpring.Enabled = true
character.LimbsJoint.RightArmSpring.Enabled = true
character.LimbsJoint.LeftLegSpring.Enabled = true
character.LimbsJoint.RightLegSpring.Enabled = true
local playAnim = humanoid:LoadAnimation(anim)
playAnim:Play()
character.LimbsJoint.LeftArmSpring.Stiffness = 5000
character.LimbsJoint.RightArmSpring.Stiffness = 5000
character.LimbsJoint.LeftLegSpring.Stiffness = 3000
character.LimbsJoint.RightLegSpring.Stiffness = 3000
wait(3)
script.AnimationB.Value = false
script.Parent.AnimationRagdollA.AnimationA.Value = true
end
end
end
end)
Video: