Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Onchatted script not working?

Asked by 8 years ago
local isAdmin = {["JonathanW123"] = true, ["CorruptBullet"] = true, ["Player"] = true}

function onChatted(message, player)
    if message == "Hi" and isAdmin[player.Name] then
     local m = Instance.new("Message")
m.Parent =  game.Workspace
m.Text = " is here"
    end
end

Answer this question