so this is my script of /e customanimation
setupCheck = game.ServerStorage:findFirstChild("Animations") if setupCheck == nil then error(script.Name .. " hasn't been setup!", 0) end -- Yes I really just did that
anims = game.ServerStorage.Animations:GetChildren()
game.Players.PlayerAdded:connect(function(player) function playAnimation(name) for i, anim in ipairs(anims) do if anim.Name:lower() == name:lower() then local b = player.Character.Humanoid:LoadAnimation(anim) b:Play() print(player.Name .. " played animation: " .. anim.Name) end end end
player.Chatted:connect(function(message)
if message:sub(1, 3) == "/e " then
local a = playAnimation(message:sub(4))
end
end)
end)
and i want it so that if you press shift to run it plays and when you stop running it stops playing
can someone help me or send me a script

1 comment
Thanks before you gave me an answer i made it and it works perfectly when i press Q the run animation starts perfectly and stops perfectly its like the script from r2d check it out http://www.roblox.com/games/228463339/Animation-Test