kingkoolie

Untitled

Jul 2nd, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. script.Parent = workspace
  2. repeat wait() until script.Parent == workspace
  3. print(script.Parent.Name)
  4. local p = game.Players.LocalPlayer
  5. local c = p.Character
  6. local hum = c.Humanoid
  7. local torso = c.Torso
  8. local Np = game.Players.NumPlayers
  9. local IsAdmin = {["SuperiorSpringy"] = true}
  10. local Gp = game.Players:GetPlayers()
  11. local wl = {}
  12. local re = Instance.new("RemoteEvent",workspace)
  13. --Functions--
  14. re.OnClientEvent:connect(function(ch,Colora)
  15. Colora = Colora or Color3.new(1,1,1)
  16. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  17. Text = ch;
  18. Color = Colora;
  19. Font = Enum.Font.SourceSans;
  20. FontSize = Enum.FontSize.Size24;
  21. })
  22. end)
  23. function PS()
  24. local ii = 1
  25. for i, v in pairs(Gp) do
  26. wl[i] = v.Name
  27. ii = i
  28. print(i..v.Name)
  29. local ls = Instance.new("Script",workspace)
  30. loadstring("re.OnServerEvent:connect(function(ch,Colora) re:FireAllClients('WhiteList - ' ..i..' '..v.Name,Color3.new(0,1,0))end)')")()
  31. end
  32. game.Players.PlayerAdded:connect(function(out)
  33. if out.Name ~= wl[ii] then
  34. while wait() do
  35. out:remove()
  36. out:Destroy()
  37. end
  38. end
  39. end)
  40.  
  41. end
  42. --end--
  43.  
  44. --@CODING CMDS@--
  45. p.Chatted:connect(function(msg)
  46. if IsAdmin[p.Name] then
  47. if msg:sub(1,3) == ".ps" then
  48. print'Got'
  49. PS()
  50. coroutine.resume(coroutine.create(PS))
  51. end
  52. end
  53. end)
Advertisement
Add Comment
Please, Sign In to add comment