Added Player.onChat event & Player:kick()

This commit is contained in:
2021-04-17 02:55:11 -05:00
committed by gsemaj
parent 80f0ff7479
commit cb85f7b7c9
4 changed files with 78 additions and 14 deletions

View File

@@ -2,6 +2,13 @@ print("Hello world!")
World.onPlayerAdded:listen(function(plr)
print(plr.type .. " " .. plr.name .. " joined from LUA!!")
plr.onChat:listen(function(msg)
print(plr.name .. " said : " .. msg)
if msg == "kickme" then
plr:kick()
end
end)
end)
wait(2)