Problem with animation

I want to play the animation

Problem is some how I can’t find a animation

local tool = script.Parent

local maxcount = 5
local count = 0
local db = false

local Currtik = 0
local Prevtick = nil
local RS = game:GetService("ReplicatedStorage")

local animation = {
	RS.Stuff.Animation.Fist[1],
	RS.Stuff.Animation.Fist[2]
}
tool.Activated:Connect(function()
	local player = game:GetService("Players").LocalPlayer
	local char = player.Character
	local hum = char:FindFirstChild("Humanoid")
	local Animator = hum:FindFirstChild("Animator")
	
	local aa = Animator:LoadAnimation(animation[count])
	aa:Play()
	
	if tick() - Currtik <= 0.5 then
		if count >= 2 then
			count = 0
		end
		count += 1
	else
		count = 0
	end
	Currtik = tick()
end)

image

local function onKeyDown(key)
if key.KeyCode == Enum.KeyCode.Q then
db = true
end
end

local function onKeyUp(key)
if key.KeyCode == Enum.KeyCode.Q then
db = false
end
end

game:GetService(“UserInputService”).InputBegan:Connect(onKeyDown)
game:GetService(“UserInputService”).InputEnded:Connect(onKeyUp)

while wait(0.03) do
if db == true then
tool.Handle.Transparency = 1
elseif db == false then
tool.Handle.Transparency = 0
end
end

never mind I fixed it
it’s so easy how did I not know it

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.