Add Player.instance & Player:teleport()

This commit is contained in:
2021-04-17 19:40:37 -05:00
committed by gsemaj
parent c2853d9271
commit b25b229eb2
2 changed files with 63 additions and 4 deletions

View File

@@ -1,15 +1,23 @@
print("Hello world!")
print("Hello wtf!")
World.onPlayerAdded:listen(function(plr)
function onJoin(plr)
print(plr.type .. " " .. plr.name .. " joined from LUA!!")
plr.onChat:listen(function(msg)
print(plr.name .. " said : " .. msg)
print(plr.name .. " said : \'" .. msg .. "\'")
if msg == "kickme" then
plr:kick()
elseif msg == "hi" then
print("hello " .. plr.name)
end
end)
end)
end
World.onPlayerAdded:listen(onJoin)
for i, plr in ipairs(World.players) do
onJoin(plr)
end
wait(2)
print("Hello world ~2 seconds later! running protcol version " .. World.version)