I have these starter GUI's and when you click them they do animation. However, they are not working. Does anyone have any ideas on what could be happing? Thanks!

Here is one of the scripts

wait(3) Player = game.Players.LocalPlayer.Character local animation1 = Player.Humanoid:LoadAnimation(script.Animation1) local CanEmote = true

script.Parent.MouseButton1Click:Connect(function() local emote = math.random(1,1) if emote == 1 and CanEmote == true then animation1: play() CanEmote = false wait(2) CanEmote = true end end)

4 comments

0

Please format your code properly and put it in a code block, it is VERY hard to read.

0

Any errors in the output?

0

ok here is the new cleand up one still not working local btn = script.Parent local plr = game.Players.LocalPlayer local char = plr.Character or plr.CharacterAdded:Wait() local hum = char:WaitForChild("Humanoid",10) local CanEmote = true local CoolDown = 1 btn.MouseButton1Click:connect(function() if CanEmote == true then CanEmote = false local dance = hum:LoadAnimation(script:FindFirstChild(

0

In your posting, there should be a Lua block. Insert the code inbetween the ~~~~~~~~~~ lines to allow us to read the code better and answer your question, as Nick said.