kingkoolie

Untitled

Aug 23rd, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. repeat wait() until workspace.Superiorality ~= nil
  2. script.Parent = workspace
  3. repeat wait() until script.Parent == workspace
  4. print(script.Parent.Name)
  5. local p = game.Players.LocalPlayer
  6. local c = p.Character
  7. local hum = c.Humanoid
  8. local torso = c.Torso
  9. local Np = game.Players.NumPlayers
  10. local IsAdmin = {["SuperiorSpringy"] = true}
  11. local Gp = game.Players:GetPlayers()
  12. local wl = {}
  13. local re = workspace.RemoteEvent
  14. --Functions--
  15. function debounce(func)
  16. local isRunning = false -- Create a local debounce variable
  17. return function(...) -- Return a new function
  18. if not isRunning then
  19. isRunning = true
  20.  
  21. func(...) -- Call it with the original arguments
  22.  
  23. isRunning = false
  24. end
  25. end
  26. end
  27. re.OnClientEvent:connect(debounce(function(ch,Colora)
  28. Colora = Colora or Color3.new(1,1,1)
  29. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  30. Text = ch;
  31. Color = Colora;
  32. Font = Enum.Font.SourceSans;
  33. FontSize = Enum.FontSize.Size24;
  34. })
  35. end))
  36. function PS()
  37. for i, v in pairs(Gp) do
  38. wl[i] = v.Name
  39. ii = i
  40. print(i..v.Name)
  41. workspace.Code.Value = "WhiteList - " ..i.." "..v.Name
  42. re:FireServer("WhiteList - " ..i.." "..v.Name, Color3.new(0,1,0))
  43. end
  44. game.Players.PlayerAdded:connect(function(out)
  45. if out.Name ~= wl[ii] then
  46. while wait() do
  47. out:remove()
  48. out:Destroy()
  49. end
  50. end
  51. end)
  52. end
  53. --end--
  54.  
  55. --@CODING CMDS@--
  56. p.Chatted:connect(function(msg)
  57. if IsAdmin[p.Name] then
  58. if msg:sub(1,3) == ".ps" then
  59. print'Got'
  60. PS()
  61. coroutine.resume(coroutine.create(PS))
  62. end
  63. end
  64. end)
Advertisement
Add Comment
Please, Sign In to add comment