#Entity nil Doesn't respond when I say andrew

1 messages · Page 1 of 1 (latest)

runic knot
#

Local Script in StarterGui:

local Players = game:GetService("Players")

local function MessageAndrew()
    wait(3)
    game.TextChatService.TextChannels.RBXGeneral:DisplaySystemMessage("nil: Poor Soul.")
end

while true do
    for _, player in Players:GetPlayers() do
        player.Chatted:Connect(function(msg)
            if msg == "Andrew" then
                MessageAndrew()
            end
        end)
    end
    wait(0.001)
end

Output: Nothing from this script

Screenshot:

vale salmon
#

Do you still need help with this or did you get it to work

shut remnant
#

what is this monstrosity

#

ur make new connections everymilisecond

shut remnant
shut remnant
vale salmon
supple cometBOT
#

studio** You are now Level 1! **studio

shut remnant
#

so maybe a serversided script?

vale salmon
#

yeah for some reason .Chatted never fires on the client

vale salmon
shut remnant
vale salmon
#

that would work

runic knot
#

I even tried messaging nil in public roblox server inside my horror game

#

but he didnt respond

#

@shut remnant my friend sam made this kick script and it only worked in roblox server, not in roblox studio

local Players = game:GetService("Players")

local secretMsg = "nil"

for _, player in Players:GetPlayers() do
    player.Chatted:Connect(function(msg)
        if msg == secretMsg then
            player:Kick("NIL NIL NIL")
        end
    end)
end
#

i think the issue is because i put while true do which maybe breaks the script

#

i removed while true do now ill test in normal roblox server

#

what? he still doesnt respond

shut remnant
#

we posted the solution

#

read the code above