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

Is there any way to help with my morph pad animation script?

Asked by
Dax4244 20
7 years ago

trying to put an animation to the player it when u touch it.

Heres the script:

local debounce = false 

function onTouch(part) 

local human = part.Parent:findFirstChild("Humanoid") 
if (human ~= nil) and debounce == false then 

debounce = true 

human.WalkSpeed = 25-- or whatever number 
human.JumpPower = 150
game.Players.PlayerAdded:connect(function(Player)
    Player.CharacterAdded:connect(function(Character)
        wait()
        print("Animations Changing")
        if Character:findFirstChild("Animate") then
                Character.Animate.idle.Animation1.AnimationId = "http://www.roblox.com/asset/?id=295233235"
                Character.Animate.idle.Animation2.AnimationId = "http://www.roblox.com/asset/?id=295233235"


        end
    end)
end)


wait(2) 
debounce = false 
end 
end 


script.Parent.Touched:connect(onTouch) 

Answer this question