Failed to load animation with sanitized ID?

My friend and I were creating a little game until we tried to play the animations and we got this:

I’ve looked this error up, and I’m not exactly sure what the cause is, nor do I know how to fix it.

Both the animation and the game are under the ownership of my friend. My sole job was to provide the scripts. I don’t really know how to fix this at all.

I’ll provide the script as well. No other errors occur besides the one I displayed in the screenshot.

local plr = game.Players.LocalPlayer
local char = script.Parent
local hum = char:WaitForChild("Humanoid")
local animator = hum:WaitForChild("Animator")

local cam = workspace.CurrentCamera

local id = "https://www.roblox.com/asset/?id=132969515881166"

local animating = false

local e = Instance.new("Animation")
e.AnimationId = id
local f = animator:LoadAnimation(e)

game.ReplicatedStorage.startanim.OnClientEvent:Connect(function()
	task.wait(3)
	plr.PlayerGui:FindFirstChild("blackscreen"):Destroy()
	cam.CameraType = Enum.CameraType.Scriptable
	animating = true
	f:Play()
	f.Stopped:Wait()
	animating = false
	hum.WalkSpeed = 16
end)

game["Run Service"].RenderStepped:Connect(function()
	if animating then
		cam.CFrame = char.Head.CFrame
	end
end)
1 Like

is the game made by him or a group? cause if its a group it needs to be ownership under the group im pretty sure. you should also check if the

animationid.IsLoaded

or not

The game is made by him, and so is the animation. Neither are under ownership of a group, they are both under his account.

The animation also appears to never load.

hmmmm try making the animations made by group by publishing animation and select your group option (don’t do your account) it works for me

if it his game and his anim, then thats not a problem the anims will play in roblox they dont appear to u only in roblox studio, but if u both got it, then idk

Strange. When I tested it in game and not in Studio, the animations worked. At least I know they work now, but this is sure gonna make playtesting way more difficult lol. Thank you, nonetheless!

local _assetIdNumber = 132969515881166

local RunService = game:GetService("RunService")

local KeyFrameService = game:GetService("KeyframeSequenceProvider")

local id = "rbxassetid://".._assetIdNumber

if RunService:IsStudio() then
	local _keyFrame = KeyFrameService:GetKeyframeSequenceAsync(id)
	id = KeyFrameService:RegisterKeyframeSequence(_keyFrame)
end

Would be lovely if that worked, but:
image

It’ll be alright though, I guess a more appropriate word than difficult would be “tedious”.

replace the id with the one i showed

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