Animations playing in Studio but not in game

1.) What do you want to achieve? Keep it simple and clear!

I want to figure out why my animations are playing in studio, but not in the actual game.

2.) What is the issue? Include screenshots / videos if possible!

It works in roblox studio, but when I hop in a game it just acts like a normal seat.

The animations are in Server Storage as seen in the screenshot below: image

local seat = script.Parent
local ss = game:GetService("ServerStorage")
local f = ss:WaitForChild("ANIMATIONS"):WaitForChild("LogCabin")
function added(child)
	if (child.className=="Weld") then
		local human = child.part1.Parent:FindFirstChild("Humanoid")
		if human ~= nil then
			anim = human:LoadAnimation(f:WaitForChild("RightArmAroundCouch"))
			anim:Play()
		end
	end
end

function removed(child2)
	if anim ~= nil then
		anim:Stop()
		anim:Remove()
	end
end

seat.ChildAdded:connect(added)
seat.ChildRemoved:connect(removed)

This code is the same for both seats. (Obviously different animations)

In studio:

In game:

I really don’t know what to do, all help is appreciated <3

1 Like

Can you check for any errors in the game? (Press F9).

No errors pop up except for another script that’s irrelevant to this topic.

If it’s playing in studio only, it’s likely that the animation belongs to the wrong person. If it’s a game you own, you must own the animation, if it’s a group game, the group must own the animation

Remember to change the id to the one given when uploading to the group

4 Likes

Okay, let me upload the animations to the group.

1 Like

Is that always the case? I changed my game’s default run, walk, idle and climb animations with an animation pack that I didn’t own.

I uploaded them to the group that is holding the game and nothing has changed

Did you remember to switch the id in your Animation to the id given when you had uploaded to the group?

@AAD232007 I’m not sure if it doesn’t applies to Roblox uploaded animations

1 Like

Yes I did, I can double check real quick

Ohhh, ok, that makes sense. Thanks!

1 Like

Try changing the Priority to see if it works
also make sure to commit all of your scripts

3 Likes

You have to make the animations to the correct owner.

Solved the issue, thank you all for your help ^,…,^

3 Likes