Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Testing emotes in studio makes the chat say "You can't use emotes here." How do I fix this?

Asked by 5 years ago

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:

prefix = "/e "
game.Players.PlayerAdded:connect(function(p)
p.Chatted:connect(function(m)
m = m:lower()
if m == prefix.."weirdspinning" then
local a = Instance.new("Animation",p.Character)
a.AnimationId = "rbxassetid://3336554633"
local h = p.Character:FindFirstChild'Humanoid'
local s = script.rotate
local t = h:LoadAnimation(a)
s:Play()
t:Play()

end
end)
end)

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.

0
You should edit the actual Chat code. hiimgoodpack 2009 — 5y
0
How do I do that? Hootstim2_IGotHacked 0 — 5y

2 answers

Log in to vote
0
Answered by 5 years ago

Change the prefix and then change it back if it works?? Maybe e.e

0
Changing the prefix makes it not work anymore Hootstim2_IGotHacked 0 — 5y
Ad
Log in to vote
0
Answered by 5 years ago

Copy the Animate script from your player and paste it to StarterCharacterScripts, add there your animation. To fix the chat problem do this after you add the animation in your Animate script. Chat>ClientChatModules>CommandModules>PlayAnimation , add the animation name to : LegacyDefaultEmotes. Should be line 42. It won't say that in chat anymore.

Answer this question