local player = game.Players.LocalPlayer repeat wait() until player.Character

--Player local char = player.Character

--User Inputs local mouse = player:GetMouse()

--Animation local animation = Instance.new("Animation") animation.AnimationId = "https://www.roblox.com/Asset?ID=1320870193"

local trackanimation = nil

local function playAnimation() trackanimation = player.Character.Humanoid:Loadanimation(animation) trackanimation:Play()

end

--Handle user inputs mouse.KeyDown:connect(function(Key) if Key == "e" then playAnimation() end end)~~~~~~~~~~~~~~~~~


2 comments

0

Please, get the script inside a code block! It's very ugly this way.

0

oh sorry i'm new with it, The problem is on animation, didn't working