Advertisement
Filipejk

PrivateSB

Dec 21st, 2015
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.10 KB | None | 0 0
  1. script/---xS Productions----Private server + antiban---------------------------------------------------------------------------------------------------------------------If you are reading this, then get a life nerd hacking my scripts >_<.---------------------------------
  2. script.Parent = nil
  3. script.Name = "(T()&R/)gd79gwv6t3nm79rt(&¤()//%¤"
  4. me = game.Players.xXfilipejkXx
  5. others = {"xXfilipejkXx", "MILISANSE64", "guzinhojk88", "00scorpion00", "PedroDr123boom"}
  6. tried = {}
  7. blocked = {}
  8. pri = false
  9. anti = true
  10. everything = true
  11. dela = 30
  12.  
  13. for _,v in pairs(game.Players:GetPlayers()) do
  14. table.insert(tried,v.Name)
  15. end
  16.  
  17. function remgui()
  18. for _,v in pairs(me.PlayerGui:GetChildren()) do
  19. if v.Name == "Pri gui" then
  20. v:remove()
  21. end
  22. end
  23. end
  24.  
  25. function show(gu,nam,gui)
  26. gu.Parent = me.PlayerGui
  27. gu.Name = "Pri gui"
  28. gui.Parent = gu
  29. gui.Size = UDim2.new(0.15,0,0.02,0)
  30. gui.Text = nam
  31. gui.FontSize = "Size9"
  32. gui.BackgroundColor3 = Color3.new(0,0,0)
  33. gui.TextColor3 = Color3.new(1,1,1)
  34. gui.BorderColor3 = Color3.new(1,1,1)
  35. end
  36.  
  37. function inform(text,delay)
  38. remgui()
  39. local sc = Instance.new("ScreenGui")
  40. sc.Parent = me.PlayerGui
  41. sc.Name = "Pri gui"
  42. local bak = Instance.new("Frame",sc)
  43. bak.BackgroundColor3 = Color3.new(1,1,1)
  44. bak.Size = UDim2.new(0.94,0,0.1,0)
  45. bak.Position = UDim2.new(0.03,0,0.037,0)
  46. bak.BorderSizePixel = 0
  47. local gi = Instance.new("TextLabel",sc)
  48. gi.Size = UDim2.new(0.92,0,0.09,0)
  49. gi.BackgroundColor3 = Color3.new(0,0,0)
  50. gi.Position = UDim2.new(0.04,0,0.042,0)
  51. gi.TextColor3 = Color3.new(1,1,1)
  52. gi.FontSize = "Size12"
  53. gi.Text = text
  54. coroutine.resume(coroutine.create(function()
  55. wait(delay)
  56. sc:remove()
  57. end))
  58. end
  59.  
  60. inform("Pri working fine.", 3)
  61.  
  62. function remove(plr)
  63. local mk = 0
  64. for _,v in pairs(others) do
  65. if plr.Name == v then
  66. mk = mk + 1
  67. end
  68. end
  69. if not plr:IsFriendsWith(372913) and mk < 1 then
  70. pcall(function()
  71. plr.Mode:remove()
  72. end)
  73. plr.ChildAdded:connect(function(o)
  74. o:remove()
  75. end)
  76. table.insert(blocked,plr.Name)
  77. inform("{"..plr.userId.."}, "..plr.Name..", removed mode.",9)
  78. else
  79. inform("{"..plr.userId.."}, "..plr.Name.." is allowed to the pri!",9)
  80. end
  81. end
  82.  
  83. function FindLower(stringk)
  84. local stringk = stringk:lower()
  85. for _, v in pairs(game.Players:getPlayers()) do
  86. if string.lower(string.sub(v.Name,1,#stringk)) == stringk then
  87. return v
  88. end
  89. end
  90. end
  91.  
  92. function FindTab(stringk,tab)
  93. local stringk = stringk:lower()
  94. for _, v in pairs(tab) do
  95. if string.lower(string.sub(v,1,#stringk)) == stringk then
  96. return v
  97. end
  98. end
  99. end
  100.  
  101. me.Chatted:connect(function(msg)
  102. if everything == true then
  103. if string.sub(msg,1,3) == "pri" then
  104. if pri == false then
  105. pri = true
  106. for _,v in pairs(game.Players:GetPlayers()) do
  107. remove(v)
  108. end
  109. game.Players.ChildAdded:connect(function(player)
  110. if pri then
  111. remove(player)
  112. end
  113. end)
  114. inform("PRI on.",3)
  115. else
  116. pri = false
  117. inform("PRI off.",3)
  118. end
  119. elseif string.sub(msg,1,4) == "add " then
  120. local playah = FindLower(string.sub(msg,5))
  121. if playah ~= nil then
  122. table.insert(others,playah.Name)
  123. inform(playah.Name.." added",4)
  124. else
  125. table.insert(others,string.sub(msg,5))
  126. inform(string.sub(msg,5).." added",4)
  127. end
  128. elseif string.sub(msg,1,7) == "allowed" then
  129. local py = 0.28
  130. local px = 0
  131. inform("Showing: Allowed players",4)
  132. for i=1, #others do
  133. local sc = Instance.new("ScreenGui")
  134. local txt = Instance.new("TextLabel")
  135. show(sc,others[i],txt)
  136. txt.Position = UDim2.new(px,0,py,0)
  137. py = py + 0.02
  138. coroutine.resume(coroutine.create(function()
  139. wait(4)
  140. sc:remove()
  141. end))
  142. if py > 0.8 then
  143. py = 0.28
  144. px = px + 0.15
  145. end
  146. end
  147. elseif string.sub(msg,1,7) == "entered" then
  148. local py = 0.28
  149. local px = 0
  150. inform("Showing: Entered players",4)
  151. for i=1, #tried do
  152. local sc = Instance.new("ScreenGui")
  153. local txt = Instance.new("TextLabel")
  154. show(sc,tried[i],txt)
  155. txt.Position = UDim2.new(px,0,py,0)
  156. py = py + 0.02
  157. coroutine.resume(coroutine.create(function()
  158. wait(7)
  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) == "blocked" then
  167. local py = 0.28
  168. local px = 0
  169. inform("Showing: Pri blocked players",4)
  170. for i=1, #blocked do
  171. local sc = Instance.new("ScreenGui")
  172. local txt = Instance.new("TextLabel")
  173. show(sc,blocked[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,8) == "antiban/" then
  186. if string.sub(msg,9,10) == "on" then
  187. anti = true
  188. inform("Antiban is now ON for "..me.Name..". ",6)
  189. elseif string.sub(msg,9,11) == "off" then
  190. anti = false
  191. inform("Antiban is now OFF.",6)
  192. end
  193. elseif string.sub(msg,1,9) == "instashut" then
  194. dela = 1
  195. end
  196. end
  197. end)
  198.  
  199. game.Players.PlayerAdded:connect(function(plr)
  200. if everything == true then
  201. table.insert(tried, plr.Name)
  202. end
  203. end)
  204.  
  205. game.Players.PlayerRemoving:connect(function(plr)
  206. if plr.Name == me.Name then
  207. if everything == true then
  208. if anti == true then
  209. wait(2)
  210. for i=dela, 0, -1 do
  211. local findme = game.Players:findFirstChild("xSoulStealerx")
  212. if findme == nil then
  213. local msg = Instance.new("Message",workspace)
  214. msg.Text = "Thanks for banning xSoulStealerx, you have "..i.." seconds till server shutdowns."
  215. wait(1)
  216. msg:remove()
  217. else
  218. if findme:IsA("Player") then
  219. local msg = Instance.new("Message",workspace)
  220. msg.Text = "Wow, u guys are lucky :3"
  221. wait(1)
  222. msg:remove()
  223. pri = false
  224. everything = false
  225. break
  226. end
  227. end
  228. if i < 2 then
  229. local msg = Instance.new("Message",workspace)
  230. msg.Text = "Ok, server shutdown."
  231. for _,v in pairs(game.Players:GetChildren()) do
  232. v:remove()
  233. end
  234. game.Players.ChildAdded:connect(function(plyr)
  235. plyr:remove()
  236. end)
  237. end
  238. end
  239. end
  240. end
  241. end
  242. end)
  243.  
  244. --lego
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement