A while back I created a script when the player said "bill nye" a message instance would be created saying "the science guy!" which would then delete after 3 seconds. It was for practice then, and today I learned how to use RemoteEvents in Filtering Enabled, so I decided to use it to practice again. When I scripted it, I noticed that it did not work at all. No output, no signs of working in any way. How can I fix this without using RemoteFunctions?
Where everything is located: BillEvent (LocalScript) - StarterPack BillEvent (RemoteEvent) - ReplicatedStorage BillEvent (Script) - Workspace Yes, I am aware it is not very smart to have all of them under the same name, it is my preference however. Apologies for any inconveniences.
What the scripts have in them: BillEvent (LocalScript) - Starterpack:
script.Parent.Parent.Chatted:Connect(function()
game.ReplicatedStorage.BillEvent:FireServer()
end)
BillEvent (Script) - Workspace:
game.ReplicatedStorage.BillEvent.OnServerEvent:Connect(function(player, msg)
if msg == "bill nye" then
local m = Instance.new("Message")
m.Parent = game.Workspace
m.Text = "the science guy!"
wait(3)
m:Destroy()
end
end)
How can I fix this issue without using RemoteFunctions? (Preferably using any kind of script [excluding module] and RemoteEvents.) Thank you for your time and interest in advance!

1 comment
Do not handle the chatted event on the client!