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

How to repair that punch script? (I've added the script on desc)

Asked by 6 years ago
Edited 6 years ago

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)~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~

0
Please, get the script inside a code block! It's very ugly this way. Aimarekin 345 — 6y
0
oh sorry i'm new with it, The problem is on animation, didn't working TsunaTheFireUser 0 — 6y

Answer this question