Animation won't play

Im trying to play my animation and it wont play. Even thought I own the animation. I get no error messages and I own the animation but it wont play no matter what I do. I’ve looked at dev forum posts and tried fixes but nothing has worked.

local player = game.Players.LocalPlayer
local char = player.Character
local mouse = player:GetMouse()
local remote = game.ReplicatedStorage.Remotes:WaitForChild("Replicate")
local animation = char.Humanoid:LoadAnimation(game.ReplicatedStorage.Assests.Animations.FireFist)
local UIS = game:GetService("UserInputService")
local G = require(game.ReplicatedStorage.Modules.GlobalFunctions)





UIS.InputBegan:Connect(function(input,gpe)
	if gpe then return end
	if input.KeyCode == Enum.KeyCode.F then
		animation:Play()
	end
end)

UIS.InputEnded:Connect(function(input,gpe)
	if gpe then return end
	if input.KeyCode == Enum.KeyCode.F then
		animation:Stop()
		remote:FireServer(mouse.Hit.Position)
	end
end)
2 Likes

If the animation is designed for an R6 character and you are currently using an R15 character, the animation will not be compatible and will not play correctly.

To resolve this issue, please follow these steps:

  1. Open Game Settings.
  2. Navigate to the Avatar tab.
  3. In the Avatar type section, select “R6” as your Avatar type.

By changing your Avatar type to R6, you should be able to play the intended animation!

2 Likes

I’ve made sure that the game is R6 since the animation is R6.

1 Like

Try checking if the animation is loading

local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://" .. game.ReplicatedStorage.Assests.Animations.FireFist
local loadedAnimation = char.Humanoid:LoadAnimation(animation)
1 Like

I fixed it finally thanks for the help.

2 Likes

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