Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Animation having trouble loading into me but loads into my friend why?

12:52:14.025 - Animation "https://assetdelivery.roblox.com/v1/asset?id=5558694864&serverplaceid=0" failed to load in "Players.BobTheBuilderRik.PlayerGui.floor loop.AnimationId": Animation failed to load. Why doesnt it work for me but it works for my friend? Im trying to say like the animation doesnt want to load, this is a script

Im not sure why doesnt it run as i want it to run.

script.Parent.BeansEatEvent.OnServerEvent:Connect(function()
	local anim = game.Workspace.Char.Humanoid:LoadAnimation(script.Parent.BeansEat)
	anim:Play()
end)

1 comment

0

The animation isn't copyable.

2 answers

The reason why it doesn’t work is because Char is not a valid member of workspace and the animation is set to a specific Rig type. Here is a script that might help you out, and be sure to set everyone’s Rig Type in game settings to the Rig Type that your friend uses (the working one):

game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
script.Parent.BeansEatEvent.OnServerEvent:Connect(function()
local anim = char.Humanoid:LoadAnimation(script.Parent.BeansEat)
anim:Play()
end)
end)
end)

Edit: I apologize for not formatting as I am typing on mobile.

The problem isn't in the script, it is in the Rig. Which can be a cause because your friend's RigType is different than yours. You can set all the players to one Rigtype by:

1.Click Game Settings from the upper side of the screen 2.Click Avatar from the popup window's left side 3.Set Rigtype on R6 or R15, depending on what the animation have been created. Test the two Rigtypes to see what works for the animation.

I hope that helps :D

1 comment

0

Shounak both didnt work

This discussion is preserved as it was. New answers, comments, and votes are closed.