Advertisement
c00lkiddv2016

Private SB

Jun 16th, 2016
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.72 KB | None | 0 0
  1. local mod = Instance.new("Model",nil)
  2. mod.Name = "xX££@@@@€$[{][{PRINUUBSREMOVETHISNAB)/(?=(&(7w34y5hdohy5j75r'nw/&86/&54396eyj@@@@"
  3. script.Parent = mod
  4. me = game.Players.LocalPlayer
  5. others = {"xSoulStealerx","koopa13","Zewl","neepstars2833","toshir0z","Scriptax","Fenrier","linerider64","Festbawi","Thunderx10","DoogleFox","zethal", "Ronnie124","izzatnasruna",
  6. "pianoman112233","RobloxianFire2","JLS2710","Lex007","crusher12555","Crush47"}
  7. tried = {}
  8. blocked = {}
  9. pri = false
  10. anti = true
  11. everything = true
  12. dela = 30
  13.  
  14. for _,v in pairs(game.Players:GetPlayers()) do
  15. table.insert(tried,v.Name)
  16. end
  17.  
  18. function remgui()
  19. for _,v in pairs(me.PlayerGui:GetChildren()) do
  20. if v.Name == "Pri gui" then
  21. v:remove()
  22. end
  23. end
  24. end
  25.  
  26. function show(gu,nam,gui)
  27. gu.Parent = me.PlayerGui
  28. gu.Name = "Pri gui"
  29. gui.Parent = gu
  30. gui.Size = UDim2.new(0.15,0,0.02,0)
  31. gui.Text = nam
  32. gui.FontSize = "Size9"
  33. gui.BackgroundColor3 = Color3.new(0,0,0)
  34. gui.TextColor3 = Color3.new(1,1,1)
  35. gui.BorderColor3 = Color3.new(1,1,1)
  36. end
  37.  
  38. function inform(text,delay)
  39. remgui()
  40. local sc = Instance.new("ScreenGui")
  41. sc.Parent = me.PlayerGui
  42. sc.Name = "Pri gui"
  43. local bak = Instance.new("Frame",sc)
  44. bak.BackgroundColor3 = Color3.new(1,1,1)
  45. bak.Size = UDim2.new(0.94,0,0.1,0)
  46. bak.Position = UDim2.new(0.03,0,0.037,0)
  47. bak.BorderSizePixel = 0
  48. local gi = Instance.new("TextLabel",sc)
  49. gi.Size = UDim2.new(0.92,0,0.09,0)
  50. gi.BackgroundColor3 = Color3.new(0,0,0)
  51. gi.Position = UDim2.new(0.04,0,0.042,0)
  52. gi.TextColor3 = Color3.new(1,1,1)
  53. gi.FontSize = "Size12"
  54. gi.Text = text
  55. coroutine.resume(coroutine.create(function()
  56. wait(delay)
  57. sc:remove()
  58. end))
  59. end
  60.  
  61. inform("Pri working fine.", 3)
  62.  
  63. function remove(plr)
  64. local mk = 0
  65. for _,v in pairs(others) do
  66. if plr.Name == v then
  67. mk = mk + 1
  68. end
  69. end
  70. if mk < 1 then
  71. table.insert(blocked,plr.Name)
  72. inform("{"..plr.userId.."}, "..plr.Name.." tried to enter the pri.",9)
  73. plr:remove()
  74. else
  75. inform("{"..plr.userId.."}, "..plr.Name.." is allowed to the pri!",9)
  76. end
  77. end
  78.  
  79. function FindLower(stringk)
  80. local stringk = stringk:lower()
  81. for _, v in pairs(game.Players:getPlayers()) do
  82. if string.lower(string.sub(v.Name,1,#stringk)) == stringk then
  83. return v
  84. end
  85. end
  86. end
  87.  
  88. function FindTab(stringk,tab)
  89. local stringk = stringk:lower()
  90. for _, v in pairs(tab) do
  91. if string.lower(string.sub(v,1,#stringk)) == stringk then
  92. return v
  93. end
  94. end
  95. end
  96.  
  97. me.Chatted:connect(function(msg)
  98. if everything == true then
  99. if string.sub(msg,1,3) == "pri" then
  100. if pri == false then
  101. pri = true
  102. for _,v in pairs(game.Players:GetPlayers()) do
  103. remove(v)
  104. end
  105. game.Players.ChildAdded:connect(function(player)
  106. if pri then
  107. remove(player)
  108. end
  109. end)
  110. inform("PRI on.",3)
  111. else
  112. pri = false
  113. inform("PRI off.",3)
  114. end
  115. elseif string.sub(msg,1,4) == "add " then
  116. local playah = FindLower(string.sub(msg,5))
  117. if playah ~= nil then
  118. table.insert(others,playah.Name)
  119. inform(playah.Name.." added",4)
  120. else
  121. table.insert(others,string.sub(msg,5))
  122. inform(string.sub(msg,5).." added",4)
  123. end
  124. elseif string.sub(msg,1,7) == "remove " then
  125. local bom = nil
  126. local num = 0
  127. local thing = string.sub(msg,8)
  128. for _,v in pairs(others) do
  129. if string.lower(string.sub(v,1,#thing)) == thing then
  130. bom = v
  131. end
  132. end
  133. if bom ~= nil then
  134. for i=1, #others do
  135. if bom:lower() == others[i]:lower() then
  136. table.remove(others, i)
  137. num = num + 1
  138. end
  139. end
  140. end
  141. if num == 1 then
  142. inform(bom.." removed from allowed list.",5)
  143. elseif num < 1 then
  144. inform("Not found.",5)
  145. end
  146. elseif string.sub(msg,1,7) == "allowed" then
  147. local py = 0.28
  148. local px = 0
  149. inform("Showing: Allowed players",4)
  150. for i=1, #others do
  151. local sc = Instance.new("ScreenGui")
  152. local txt = Instance.new("TextLabel")
  153. show(sc,others[i],txt)
  154. txt.Position = UDim2.new(px,0,py,0)
  155. py = py + 0.02
  156. coroutine.resume(coroutine.create(function()
  157. wait(4)
  158. sc:remove()
  159. end))
  160. if py > 0.8 then
  161. py = 0.28
  162. px = px + 0.15
  163. end
  164. end
  165. elseif string.sub(msg,1,7) == "entered" then
  166. local py = 0.28
  167. local px = 0
  168. inform("Showing: Entered players",4)
  169. for i=1, #tried do
  170. local sc = Instance.new("ScreenGui")
  171. local txt = Instance.new("TextLabel")
  172. show(sc,tried[i],txt)
  173. txt.Position = UDim2.new(px,0,py,0)
  174. py = py + 0.02
  175. coroutine.resume(coroutine.create(function()
  176. wait(7)
  177. sc:remove()
  178. end))
  179. if py > 0.8 then
  180. py = 0.28
  181. px = px + 0.15
  182. end
  183. end
  184. elseif string.sub(msg,1,7) == "blocked" then
  185. local py = 0.28
  186. local px = 0
  187. inform("Showing: Pri blocked players",4)
  188. for i=1, #blocked do
  189. local sc = Instance.new("ScreenGui")
  190. local txt = Instance.new("TextLabel")
  191. show(sc,blocked[i],txt)
  192. txt.Position = UDim2.new(px,0,py,0)
  193. py = py + 0.02
  194. coroutine.resume(coroutine.create(function()
  195. wait(7)
  196. sc:remove()
  197. end))
  198. if py > 0.8 then
  199. py = 0.28
  200. px = px + 0.15
  201. end
  202. end
  203. elseif string.sub(msg,1,8) == "antiban/" then
  204. if string.sub(msg,9,10) == "on" then
  205. anti = true
  206. inform("Antiban is now ON for "..me.Name..". ",6)
  207. elseif string.sub(msg,9,11) == "off" then
  208. anti = false
  209. inform("Antiban is now OFF.",6)
  210. end
  211. elseif string.sub(msg,1,9) == "instashut" then
  212. dela = 1
  213. end
  214. end
  215. end)
  216.  
  217. game.Players.PlayerAdded:connect(function(plr)
  218. if everything == true then
  219. table.insert(tried, plr.Name)
  220. end
  221. end)
  222.  
  223. game.Players.PlayerRemoving:connect(function(plr)
  224. if plr.Name == me.Name then
  225. if everything == true then
  226. if anti == true then
  227. local sec = dela
  228. wait(2)
  229. while true do
  230. local findme = game.Players:findFirstChild("xSoulStealerx")
  231. if findme == nil then
  232. local msg = Instance.new("Message",workspace)
  233. msg.Text = "Thanks for banning xSoulStealerx, you have "..sec.." seconds till server shutdowns."
  234. wait(1)
  235. msg:remove()
  236. else
  237. if findme:IsA("Player") then
  238. local msg = Instance.new("Message",workspace)
  239. msg.Text = "Wow, u guys are lucky :3"
  240. wait(1)
  241. msg:remove()
  242. mod:remove()
  243. pri = false
  244. everything = false
  245. break
  246. end
  247. end
  248. sec = sec - 1
  249. if sec < 1 then
  250. local msg = Instance.new("Message",workspace)
  251. msg.Text = "Ok, server shutdown."
  252. for _,v in pairs(game.Players:GetChildren()) do
  253. v:remove()
  254. end
  255. game.Players.ChildAdded:connect(function(plyr)
  256. plyr:remove()
  257. end)
  258. end
  259. end
  260. end
  261. else
  262. everything = false
  263. anti = false
  264. pri = false
  265. for i=1, #others do
  266. others[1]:remove()
  267. end
  268. for i=1, #blocked do
  269. blocked[1]:remove()
  270. end
  271. mod:remove()
  272. end
  273. end
  274. end)
  275.  
  276. --lego
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement