Still have questions? Join our Discord server and get real time help.
Log in to vote

My script does chats for a player automatically but is not working with no errors?

Asked by 7 days ago

Basically I'm attempting to make a script that chats every so often, I have it at 2 seconds for testing purposes.

Messages = {"Message1", "Message2", "Message3", "Message4", "Message5", "Message6", "Message7", "Message8"}
Chatter = require(game:GetService("ServerScriptService"):WaitForChild("ChatServiceRunner"):WaitForChild("ChatService")):AddSpeaker("MyChatter")
while wait(2) do
    game:GetService("Chat"):Chat(game.Workspace.coolmama382.Head, Messages[math.random(1, #Messages)])
    Chatter:SayMessage(Messages[math.random(1, #Messages)])

Basically it doesn't give any errors, nor does message appear in chat. Heres the resource I used to make this script: DevForums, I used Method 2.

Answer this question