Animations look different in editor to in game

local UserInputService = game:GetService("UserInputService")
local Animation = script.Animation


UserInputService.InputBegan:Connect(function(Input)
	if Input.KeyCode == Enum.KeyCode.Z then
		local character = game.Players.LocalPlayer.Character
		local Humanoid = character:WaitForChild("Humanoid")
		local Anim = Humanoid:LoadAnimation(Animation)
		local character = game.Players.LocalPlayer.Character
		local Humanoid = character.Humanoid
		local Anim = Humanoid:LoadAnimation(Animation)
		
		Anim:Play()
	end
end)

That is my script.

This is what it looks like in the animation editor

This is it in game

Thanks!

is animation priority set to Action ?

try doing it like this:

local UserInputService = game:GetService("UserInputService")
local Animation = script.Animation


UserInputService.InputBegan:Connect(function(Input)
	if Input.KeyCode == Enum.KeyCode.Z then
		local character = game.Players.LocalPlayer.Character
		local Humanoid = character:WaitForChild("Humanoid")
		local Anim = Humanoid:LoadAnimation(Animation)
		Anim.Priority = Enum.AnimationPriority.Action4 --Action4 is highest priority
		Anim:Play()
	end
end)
2 Likes

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