I already made an emote gui now I actually need the emotes to work. But when I push the button like "dab" nothing happens. Can someone help me plz. [and make sure it can actually work in the real game and not just studio.]
COMMUNITY QUESTION
How to make an emote gui that actually works in the real game?
1 answer
Make sure the emotes are all TextButtons and the script is in the gui.
plr = game.Player.LocalPlayer
chr = plr.Character
hum = chr.Humanoid
dabAnim = "rbxassetid://[animation id]"
dabButton = script.Parent.DabButton
dabButton.Mouse1Click:connect(function()
anim = Instance.New(Animation)
anim.AnimationId = dabAnim
animPlay = hum.LoadAnimate(anim)
animPlay:PlayAnimation()
end)
My syntax may be incorrect, I maybe even purposely put incorrect syntax so you don't just copy and paste it and not learn anything. You should learn so you don't ask as much questions, so you can become a good programmer.(some purposeful syntax errors)
1 comment
0
SO will this work even tho the syntax is incorect
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
This is not a request site, you give us no script, this is script helper not request helper.
animations are local