My script detects if somebody said walter and prints their name.Later i'm going to teleport to them but for now its print.
for i,currentPlayersChatting in pairs(game:GetService("Players"):GetPlayers()) do
currentPlayersChatting.Chatted:connect(function(speaker, msg)
if string.lower(msg) == "walter" then
print(speaker.Name)
end
end)
end

1 comment
Please mark the answer as the solution so they can get points.