This is a common error I'm seeing, but I can't seem to find a conclusive answer. I made an animation for a train door opening. It works for me in Studio, but in-game, it doesn't seem to work. Here's the script:

local clickdetect = script.Parent.ClickDetector
local anim = script.Parent.Parent.OpenClose
local controller = script.Parent.Parent.AnimationController
local db = false

local track = controller:LoadAnimation(anim)

clickdetect.MouseClick:Connect(function()
	if db == false then
		db = true
		track:Play()
		wait(9)
		db = false
	end
end)

This is activated using a ClickDetector, and the object has an AnimationController and an Animation.

Any help would be appreciated!

2 comments

0

Make sure the place has same owner as the animation, if place is group owned, the animation must be too!

0

So to clarify, if the game and the animation is group owned, can everyone use the animation if the game is public?