Animation doesnt play

i have animation gamepass gui and for some reason the animation play when i test it on studio but when i publish it and get into the game the animation doesnt play.

animation script(local script):

local anims = script:WaitForChild("Animations"):GetChildren()

local templateBtn = script:WaitForChild("AnimButton")


local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local humanoid = char:WaitForChild("Humanoid")


local currentAnim = nil


for i, anim in pairs(anims) do
	
	
	local loadedAnim = humanoid:LoadAnimation(anim)
	loadedAnim.Looped = true
	loadedAnim.Priority = Enum.AnimationPriority.Action
	
	
	local templateClone = templateBtn:Clone()
	templateClone.Text = anim.Name
	
	templateClone.Parent = script.Parent.AnimationsScroll
	
	
	templateClone.MouseButton1Click:Connect(function()
		
		if currentAnim ~= loadedAnim then 
			
			if currentAnim then currentAnim:Stop() end
			
			currentAnim = loadedAnim
			currentAnim:Play()
			
			
		elseif currentAnim == loadedAnim then
			
			currentAnim:Stop()
			currentAnim = nil
		end
	end)
end

model: Animation Gui - Roblox

Overwrite the game with the current version of the one you wish to have, or use Publish to roblox to.