I am making a T-Pose animation in my game. If you press a button in starter GUI you "buy" the T-Pose animation. It is not working. Please tell me what is the problem and how can I fix it.
Here are the scripts:
This is a local script inside a button of starter gui:
local repstorage = game:GetService("ReplicatedStorage") local emote = repstorage:WaitForChild("Animation", 100) local serverstorage = game:GetService("ServerStorage") local price = serverstorage.Animations.TPose local TPose = serverstorage.Animations:WaitForChild("TPose", 100) script.Parent.MouseButton1Down:Connect(function() local player = game.Players.LocalPlayer if player.leaderstats.Cash.Value >= price then player.leaderstats.Cash.Value = player.leaderstats.Cash.Value - price local anim = player.Character.Humanoid:LoadAnimation(emote) anim:Play() print("Success!") end end)
Please tell me what is the problem and how can I fix it. Thanks!