Advertisement
jai1515hb

Pri

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