Advertisement
DrawingJhon

Get Player

Jun 15th, 2020
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. for i, v in pairs(Players:GetChildren()) do
  3.     v.Chatted:connect(function(msg)
  4.         if msg:sub(1,1) == "/" then
  5.             for i, plr in pairs(Players:GetChildren()) do
  6.                 local lel = msg:sub(2)
  7.                 local low = lel:lower()
  8.                 local len = string.len(low)
  9.                 local ple = plr.Name:sub(1,len)
  10.                 if low == ple:lower() then
  11.                     print(plr.Name)
  12.                 end
  13.             end
  14.         end
  15.     end)
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement