this is the script i wrote

local User = game:GetService("UserInputService")

local back = Enum.KeyCode.E
local space = Enum.KeyCode.Q
local combo = print("true")
local function IsKeyDown() 
	return User:IsKeyDown(space) or User:IsKeyDown(back)
end
local function Input()
if not IsKeyDown() then 
	
else
	print (combo)
	wait (2)
	combo:Remove()
end
	end

	

User.InputBegan:Connect(Input)
local anim = Instance.new("Animation")
anim.AnimationId = "57caf63abf6c93b113c03b212978f42f"
local anima = anim:LoadAnimation(anim)

anim:Play()
	

and when i press E or Q this pops up:
18:32:13.010 - Animation "57caf63abf6c93b113c03b212978f42f" failed to load in "Workspace.eze123456.Animation.AnimationId": Animation failed to load

6 comments

0

"57caf63abf6c93b113c03b212978f42f" that's not a roblox asset dude

0

You need to upload animation to roblox. and put: " 'rbxassetid://' .. ANIMATION_ID "

0

and for the :LoadAnimation you need the humanoid not the animation.

0

I tried but the output is still showing the same thing

0

the animation broke?

0

how do i fix it?