Can someone please help explain why my animation gui is only working in studio? is it something with my script or a game setting?
local player = game.Players.LocalPlayer local character = player.Character local humanoid = character:WaitForChild("Humanoid") local Dance = humanoid:LoadAnimation(script.Parent.Dance) script.Parent.MouseButton1Click:connect(function() Dance:Play() end)
Try changing the character variable to
local Character = player.Character or player.CharacterAdded:Wait() --if the character doesnt exist itll wait untill the character is added
Also, make sure its YOUR animation, or if its a group game, make sure that the animation is made by the group