I wonder if there is a way to make the chat reply back once the certain message is said
player = game.Players.LocalPlayer.Character
function chat(text)
game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage",{
Text = text;
Color = Color3.new(255,255,255);
StrokeColor = Color3.new(0,0,0);
Font = Enum.Font.SourceSansItalic
})
end
for i =1,3 do
if i == 1 then
chat("Welcome")
elseif i == 2 then
chat(player.Name)
function onChatted(msg, recipient, speaker)
local source = string.lower(speaker.Name)
msg = string.lower(msg)
if i == 3 then
if (msg == "no") then -- Message said for the reply
chat("rude") -- The reply
end
end
end
end
end
No errors in output
