Testing emotes in studio makes the chat say "You can't use emotes here." How do I fix this?
I scripted an emote, which basically is supposed to work perfectly, but when trying to test it, in the chat it says, "You can't use emotes here." In red text. Can anybody help me? This is annoying. The code used for the script looks like this:
02 | game.Players.PlayerAdded:connect( function (p) |
03 | p.Chatted:connect( function (m) |
05 | if m = = prefix.. "weirdspinning" then |
06 | local a = Instance.new( "Animation" ,p.Character) |
08 | local h = p.Character:FindFirstChild 'Humanoid' |
09 | local s = script.rotate |
10 | local t = h:LoadAnimation(a) |
I also added a sound named "rotate" which is why there's the "local s = script.rotate" and the "s:Play()" thing. The sound plays perfectly fine, but the animation is the problem. Because, obviously, it says "You can't use emotes here." In red text, in the chat.