You can write your topic however you want, but you need to answer these questions:
-
Trying to figure out why its only loading the first animation
-
The issue is its only loading the first animation when I fire my left mouse button
-
Tried fixing it but nothing will work
local player = game.Players.LocalPlayer
local Character = player.Character
local Mouse = player:GetMouse()
local UIS = game:GetService("UserInputService")
-----------------------------------------------
local CurrentTime = 0
local PastTime = 0
local Count = 0
UIS.InputBegan:Connect(function(Input,IsTypin)
if IsTypin then
return
end
if Input.UserInputType == Enum.UserInputType.MouseButton1 then
CurrentTime = tick()
PastTime = CurrentTime - PastTime
-----------------------------------
if PastTime < CurrentTime then
--------- Can still do the combo
Count = Count + 1
-------------------------------
if Count > 2 then
Count = 0
end
end
local Anims = {
game.ReplicatedStorage.RightPunch,
game.ReplicatedStorage.LeftPunch,
}
--------------------------------------------
for _,v in pairs(Anims) do
local humanoid = player.Character:WaitForChild("Humanoid")
local animator = humanoid:WaitForChild("Animator")
local LoadAnimation = animator:LoadAnimation(v,(Count))
LoadAnimation:Play()
end
end
end)