Advertisement
kanewutt

dewdewd

May 21st, 2016
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.08 KB | None | 0 0
  1. -- THIS SCRIPT GOES IN STARTERGUI --
  2.  
  3. local CrashPlayer = true
  4. -- When set to true, it crashs the player's game and bans them.
  5. -- When set to false, it only bans them
  6.  
  7. local ReadingTime = 10
  8. -- Number of seconds before their ban/crash takes effect (If set too low,
  9. -- They won't see the GUI)
  10.  
  11. local Banned_Players = {"palkia989","mark1023","BLOCKE26","dudedoug","IlllthespammerIlll","ithatguylol123","baylen11","lthatguylawl","GODSVGAMES","X545X545X","CopiedGamesX","StalkingStalkerXDl","5861948","ryansasuke619","Coolperson400","theman98223","al0517","Robloxdestroyer9000","TurboAlin13","legendaryZeus","kennyisme1234","xzcfe","yourbro12","tkymasters","Ithatgirllawl","whitedragon506","jenee","14ninj4","ItaliaDave","tkymasters2","INVEIGLEMENT","EDOUY12345","KIKIX11230","TINVU","12duckie1234","iloveparis1","JamesLynn","coolmacandcheese","vinnie757","obetoguy1","walky565","epicninja0214","sammy507605","sonic53803","damienfu","litlerobert","waterstarter123","zardmasterr","HtmlCoder","dawd","trev4321","Jaffie23","Isis1coco2"}
  12. -- Players in this table will be banned/crashed and banned from the game
  13.  
  14. local Banned_Groups = {}
  15. -- Group IDs in this table will be banned/crashed and banned from the game
  16.  
  17. local Description = "You have been banned from this game please do not return!"
  18. -- The message shown under the "B L A C K O U T" title
  19.  
  20. local BannedPlayersMessage = "You are on a list of people who are denied access to this game"
  21. -- The ban reason if a person is on the Banned List
  22.  
  23. local GroupBanMessage = "The group ID [GROUPID] is denied access to this game for breaking set rules"
  24. -- The ban reason if a person is in a banned group. GROUPID will change into the
  25. -- banned groups's ID
  26.  
  27. -----------------------------------------------------------------------------------
  28. function CheckBan(player)
  29. for i,v in pairs(Banned_Players) do
  30. if v:lower() == player.Name:lower() then
  31. return true, 0
  32. end
  33. end
  34.  
  35. for i,v in pairs(Banned_Groups) do
  36. if player:IsInGroup(v) then
  37. return true, v
  38. end
  39. end
  40.  
  41. return false, nil
  42. end
  43. -----------------------------------------------------------------------------------
  44. repeat
  45. wait(3 + math.random() / 2)
  46. until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:FindFirstChild("Head")
  47. -- The reason behind all these repeat checks, is to let the player have a chance to
  48. -- load the game, instead of just instantly banning.
  49.  
  50. local Player = game.Players.LocalPlayer
  51.  
  52. if workspace:FindFirstChild("GUIBANLIST") then
  53. if workspace.GUIBANLIST:FindFirstChild(Player.Name) then
  54. Player:Destroy()
  55. end
  56. end
  57.  
  58. -- Player.Character = nil
  59. -- Prevent them from being killed/kill others
  60.  
  61. local ScreenGui = Instance.new("ScreenGui")
  62. ScreenGui.Name = "Banned"
  63.  
  64. local MainFrame = Instance.new("Frame", ScreenGui)
  65. MainFrame.BackgroundColor3 = BrickColor.new("Really black").Color
  66. MainFrame.BorderSizePixel = 0
  67. MainFrame.Position = UDim2.new(0, 0, -.004, 0)
  68. MainFrame.Size = UDim2.new(1, 0, 1, 0)
  69.  
  70. local Title = Instance.new("TextLabel", MainFrame)
  71. Title.BackgroundColor3 = BrickColor.White().Color
  72. Title.BackgroundTransparency = 0.95
  73. Title.BorderColor3 = BrickColor.new("Really black").Color
  74. Title.BorderSizePixel = 0
  75. Title.Name = "Title"
  76. Title.Size = UDim2.new(1, 0, 0.3, 0)
  77. Title.Font = "ArialBold"
  78. Title.Text = "YOUR BANNED"
  79. Title.TextColor3 = BrickColor.White().Color
  80. Title.TextScaled = true
  81.  
  82. local Minordesc = Instance.new("TextLabel", MainFrame)
  83. Minordesc.BackgroundColor3 = BrickColor.White().Color
  84. Minordesc.BackgroundTransparency = 0.95
  85. Minordesc.BorderColor3 = BrickColor.new("Really black").Color
  86. Minordesc.BorderSizePixel = 0
  87. Minordesc.Name = "Minordesc"
  88. Minordesc.Position = UDim2.new(0, 0, 0.3, 0)
  89. Minordesc.Size = UDim2.new(1, 0, 0.05, 0)
  90. Minordesc.Font = "ArialBold"
  91. Minordesc.Text = Description
  92. Minordesc.TextColor3 = BrickColor.White().Color
  93. Minordesc.TextScaled = true
  94.  
  95. local BaninfoFrame = Instance.new("Frame", MainFrame)
  96. BaninfoFrame.Name = "Baninfo"
  97. BaninfoFrame.BackgroundColor3 = BrickColor.White().Color
  98. BaninfoFrame.BackgroundTransparency = 0.95
  99. BaninfoFrame.BorderSizePixel = 0
  100. BaninfoFrame.Position = UDim2.new(0.2, 0, 0.5, 0)
  101. BaninfoFrame.Size = UDim2.new(0.6, 0, 0.2, 0)
  102.  
  103. local BanReasonTitle = Instance.new("TextLabel", BaninfoFrame)
  104. BanReasonTitle.Name = "BanReasonTitle"
  105. BanReasonTitle.BackgroundTransparency = 1
  106. BanReasonTitle.BorderSizePixel = 0
  107. BanReasonTitle.Size = UDim2.new(1, 0, 0.2, 0)
  108. BanReasonTitle.Font = "ArialBold"
  109. BanReasonTitle.Text = "Ban Reason"
  110. BanReasonTitle.TextColor3 = BrickColor.White().Color
  111. BanReasonTitle.TextScaled = true
  112. BanReasonTitle.TextYAlignment = "Bottom"
  113.  
  114. local Minordesc = Instance.new("TextLabel", BaninfoFrame)
  115. Minordesc.Name = "Minordesc"
  116. Minordesc.BackgroundTransparency = 1
  117. Minordesc.BorderSizePixel = 0
  118. Minordesc.Position = UDim2.new(0, 0, 0.3, 0)
  119. Minordesc.Size = UDim2.new(1, 0, 0.125, 0)
  120. Minordesc.Font = "ArialBold"
  121. Minordesc.Text = " YOU HAVE BEEN REPORTED "
  122. Minordesc.TextColor3 = BrickColor.White().Color
  123. Minordesc.TextScaled = true
  124. Minordesc.TextXAlignment = "Left"
  125. Minordesc.TextYAlignment = "Center"
  126.  
  127. local BanReason = Instance.new("TextLabel", BaninfoFrame)
  128. BanReason.Name = "BanReason"
  129. BanReason.BackgroundTransparency = .98
  130. BanReason.BorderSizePixel = 1
  131. BanReason.Position = UDim2.new(0.4, 0, 0.4, 0)
  132. BanReason.Size = UDim2.new(0.6, 0, 0.6, 0)
  133. BanReason.Font = "ArialBold"
  134. BanReason.Text = ""
  135. BanReason.TextColor3 = BrickColor.White().Color
  136. BanReason.TextScaled = true
  137. BanReason.TextYAlignment = "Center"
  138.  
  139. local IsPlayerBanned, ExtraInformation = CheckBan(Player)
  140. if IsPlayerBanned == true then
  141. if ExtraInformation == 0 then
  142. BanReason.Text = BannedPlayersMessage
  143. else
  144. BanReason.Text = string.gsub(GroupBanMessage, "GROUPID", ExtraInformation)
  145. end
  146.  
  147. ScreenGui.Parent = Player.PlayerGui
  148. wait(ReadingTime)
  149. if CrashPlayer then
  150. print("Crashing")
  151.  
  152. for i = 1, 10000, 1 do
  153. local Spam = Instance.new("Frame", ScreenGui)
  154. Spam.Size = UDim2.new(1, 1, 1, 1)
  155. wait()
  156. end
  157.  
  158. if workspace:FindFirstChild("GUIBANLIST") then
  159. local BannedPlayerTag = Instance.new("BoolValue", workspace.GUIBANLIST)
  160. BannedPlayerTag.Name = Player.Name
  161. BannedPlayerTag.Value = true
  162. else
  163. local GuiBanList = Instance.new("BoolValue", workspace)
  164. GuiBanList.Name = "GUIBANLIST"
  165. GuiBanList.Value = true
  166.  
  167. local BannedPlayerTag = Instance.new("BoolValue", workspace.GUIBANLIST)
  168. BannedPlayerTag.Name = Player.Name
  169. BannedPlayerTag.Value = true
  170. end
  171.  
  172. Instance.new("ManualSurfaceJointInstance", ScreenGui)
  173. Player:Destroy()
  174. else
  175. print("Banning")
  176.  
  177. if workspace:FindFirstChild("GUIBANLIST") then
  178. local BannedPlayerTag = Instance.new("BoolValue", workspace.GUIBANLIST)
  179. BannedPlayerTag.Name = Player.Name
  180. BannedPlayerTag.Value = true
  181. else
  182. local GuiBanList = Instance.new("BoolValue", workspace)
  183. GuiBanList.Name = "GUIBANLIST"
  184. GuiBanList.Value = true
  185.  
  186. local BannedPlayerTag = Instance.new("BoolValue", workspace.GUIBANLIST)
  187. BannedPlayerTag.Name = Player.Name
  188. BannedPlayerTag.Value = true
  189. end
  190.  
  191. Player:Destroy()
  192. end
  193. else
  194. ScreenGui:Destroy()
  195. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement