I was writing a running script and when I tried to add animations to it I get this error
Invalid animation id '<error: unknown AssetId protocol>':
I don't know what I did wrong but here is the script
local players = game.Players.LocalPlayer
local character = players.Character
local UIS = game:GetService("UserInputService")
local speed = 27
UIS.InputBegan:Connect(function(key)
if key.KeyCode == Enum.KeyCode.LeftShift then
character.Humanoid.WalkSpeed = speed
local Anim = Instance.new("Animation")
Anim.AnimationId = 'rbxassitid://2217747028'
local PlayRunAnim = character.Humanoid:LoadAnimation(Anim)
PlayRunAnim:Play()
end
end)
UIS.InputEnded:Connect(function(key)
if key.KeyCode == Enum.KeyCode.LeftShift then
character.Humanoid.WalkSpeed = 16
end
end)

2 comments
Change 'rbxassitid://2217747028' to 'rbxassetid://2217747028'
THankyou! I was using rbxasset.id this whole time..