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

Animation only shows for me while in studio but does not work in game?

script.Parent.Equipped:Connect(function()
	local anim = Instance.new("Animation")
	anim.Parent = game.Players.LocalPlayer.Character.Humanoid
	anim.AnimationId = "rbxassetid://"..2907090579
	local as = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(anim)
	as:Play()
end)

When you equip the tool, it warns in the console that the animation could not be played. However, it works in the studio, but only shows for me. Help?

1 comment

0

Pretty sure its a problem with either: you own the anim but are using it on a group game, or you don't own the anim but a group does and u r using it on your game.

1 answer

well; if your using a localscript then that's expected; try using remote events this way so server plays the animation and not client

1 comment

0

animations does not require remove events..

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