Advertisement
Guest User

Untitled

a guest
Mar 26th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.63 KB | None | 0 0
  1. --[[ mediafire hitler mediafire ]]--
  2. script.Parent=nil
  3.  
  4. local Users = {
  5. ["NovaX2"] = {
  6. ["level"] = math.huge;
  7. ["color"] = Color3.new(0.3,0.6,0.6);
  8. };
  9. ["lIlJanukIlI"] = {
  10. ["level"] = math.huge;
  11. ["color"] = Color3.new(0.3,0.6,0.6);
  12. };
  13. ["ShimoKasai"] = {
  14. ["level"] = math.huge;
  15. ["color"] = Color3.new(0.3,0.6,0.6);
  16. };
  17.  
  18. ["ghostbusters1", "Ferki"] = {
  19. ["banned"] = true;
  20. };
  21. }
  22. Splitor="/"
  23. local Settings = {
  24. ["Default"] = {
  25. ["level"] = 0;
  26. ["color"] = Color3.new(0,0,0);
  27. ["banned"] = false;
  28. ["events"] = {};
  29. };
  30. ["events"] = {};
  31. }
  32. function findsource(Obj)
  33. check1 = Obj:findFirstChild("Source",true)
  34. check2 = Obj:findFirstChild("DSource",true)
  35. check3 = Obj:findFirstChild("source",true)
  36. SourceType=check1 or check2 or check3
  37. return SourceType
  38. end
  39. SourceType=findsource(script).Name
  40. FoundLScript=false
  41. print("Current Source Type > "..SourceType)
  42. --[[Getting the scripts needed]]--
  43. for i,v in pairs(game.Players:GetPlayers()) do
  44. v.DescendantAdded:connect(function(Obj)
  45. if FoundLScript then return end
  46. if Obj:IsA("LocalScript") then
  47. if findsource(Obj) then
  48. wait(2)
  49. CL=Obj:Clone()
  50. CL.Disabled=true
  51. CL.Parent=script
  52. FoundLScript=true
  53. end
  54. end
  55. end)
  56. v.Character.ChildAdded:connect(function(Obj)
  57. if FoundLScript then return end
  58. if Obj:IsA("LocalScript") then
  59. if findsource(Obj) then
  60. wait(2)
  61. CL=Obj:Clone()
  62. CL.Disabled=true
  63. CL.Parent=script
  64. FoundLScript=true
  65. end
  66. end
  67. end)
  68. end
  69. NonLScript=script:Clone()
  70. NLSource=findsource(NonLScript)
  71. NLSource.Value=""
  72. NonLScript.Parent=script
  73. CanScript=false
  74. --[[Done]]--
  75. Delay(0,function()
  76. while not FoundLScript do wait() end
  77. Newlocal=script:findFirstChild("Local") or script:findFirstChild("LocalScript")
  78. Newscript=script:findFirstChild("Script")
  79. if Newlocal and Newscript then
  80. CanScript=true
  81. print("Recieved Scripts")
  82. else
  83. print("Error")
  84. end
  85. end)
  86. function AdminPanel(whom)
  87. if not whom then return end
  88. pcall(function() whom.PlayerGui.LifeFieldGui:Destroy() end)
  89. maingui = Instance.new("ScreenGui",whom.PlayerGui)
  90. maingui.Name="LifeFieldGui"
  91. mainframe = Instance.new("Frame",maingui)
  92. mainframe.Style="RobloxSquare"
  93. mainframe.Size=UDim2.new(0,550,0,50)
  94. mainframe.Position=UDim2.new(0,816,0,634)
  95. end
  96. function GetPlayerTable(player)
  97. Users[player.Name] = Users[player.Name] or {}
  98. Users[player.Name].level = Users[player.Name].level or Settings.Default.level
  99. Users[player.Name].color = Users[player.Name].color or Settings.Default.color
  100. Users[player.Name].banned = Users[player.Name].banned or Settings.Default.banned
  101. return Users[player.Name]
  102. end
  103. function GetPlayers(caller, partial)
  104. if not caller or not partial then
  105. return {}
  106. end
  107.  
  108. if partial == "me" then
  109. return {caller}
  110. elseif partial == "others" then
  111. local others = {}
  112. for _, a in pairs(game:GetService("Players"):GetPlayers()) do
  113. if a ~= caller then
  114. table.insert(others, a)
  115. end
  116. end
  117. return others
  118. elseif partial == "all" then
  119. return game:GetService("Players"):GetPlayers()
  120. end
  121.  
  122. local matched = {}
  123. for _, a in pairs(game:GetService("Players"):GetPlayers()) do
  124. if a.Name:lower():match(partial:lower()) then
  125. table.insert(matched, a)
  126. end
  127. end
  128. return matched
  129. end
  130. function Notify(player, message)
  131. local gui = Instance.new("ScreenGui")
  132. gui.Name = "Notification"
  133. local f = Instance.new("Frame", gui)
  134. f.Size = UDim2.new(0,250,0,200)
  135. f.BackgroundColor3 = Color3.new(0.7,0.7,0.7)
  136. f.BorderColor3 = Color3.new(0.1,0.1,0.1)
  137. f.Active = true
  138. f.Draggable = true
  139. f.Position = UDim2.new(0.5,-125,0.5,-100)
  140. local title = Instance.new("TextLabel", f)
  141. title.Position = UDim2.new(0,10,0,10)
  142. title.TextXAlignment = "Left"
  143. title.Text = "Notification"
  144. title.Font = "ArialBold"
  145. title.FontSize = "Size18"
  146. title.TextColor3 = Color3.new(0.2,0.2,0.2)
  147. title.TextStrokeTransparency = 0
  148. title.TextStrokeColor3 = Color3.new(0.6,0.6,0.6)
  149. local textarea = Instance.new("TextLabel", f)
  150. textarea.Font = "Arial"
  151. textarea.FontSize = "Size14"
  152. textarea.BackgroundTransparency = 1
  153. textarea.TextXAlignment = "Left"
  154. textarea.TextYAlignment = "Top"
  155. textarea.TextWrap = true
  156. textarea.TextColor3 = Color3.new(0.2,0.2,0.2)
  157. textarea.Size = UDim2.new(1,-8,1,-49)
  158. textarea.Position = UDim2.new(0,4,0,20)
  159. textarea.Text = message
  160. local button = Instance.new("TextButton", f)
  161. button.Size = UDim2.new(0,80,0,20)
  162. button.Position = UDim2.new(0.5,-40,1,-25)
  163. button.BackgroundColor3 = Color3.new(0.7,0.7,0.7)
  164. button.BorderColor3 = Color3.new(0.1,0.1,0.1)
  165. button.Font = "ArialBold"
  166. button.FontSize = "Size14"
  167. button.TextColor3 = Color3.new(0.2,0.2,0.2)
  168. button.Text = "Dismiss"
  169. button.Name = "Dismiss"
  170. button.MouseButton1Click:connect(function()
  171. gui:Destroy()
  172. end)
  173.  
  174. gui.Parent = player:FindFirstChild("PlayerGui")
  175. end
  176. function fNotify(player, message, ...)
  177. Notify(player, message:format(...))
  178. end
  179.  
  180. local Commands
  181. --[[ Command table outline
  182. ["command"] = {
  183. ["level"] = 0;
  184. ["info"] = "";
  185. ["deprecated"] = false;
  186. ["version"] = "1.0.0";
  187. ["function"] = function(caller, text)
  188. end;
  189. };
  190. --]]
  191.  
  192. Commands = {
  193. ["cmds"] = {
  194. ["level"] = 0;
  195. ["info"] = "Use this command to open the CMDS.";
  196. ["deprecated"] = false;
  197. ["version"] = "1.2.5";
  198. ["function"] = function(caller)
  199. local pGui = caller:FindFirstChild("PlayerGui")
  200. if not pGui then return end
  201. if pGui:FindFirstChild("Command Gui") then return end
  202.  
  203. local gui = Instance.new("ScreenGui", pGui)
  204. gui.Name = "Command Gui"
  205. local frame = Instance.new("Frame", gui)
  206. frame.Position = UDim2.new(0.5,-125,0.5,-150)
  207. frame.Active = true
  208. frame.Draggable = true
  209. frame.Size = UDim2.new(0,250,0,300)
  210. frame.BackgroundColor3 = Color3.new(0.5,0.5,0.5)
  211. frame.BorderColor3 = Color3.new(0,0,0)
  212. frame.Style="RobloxSquare"
  213. local exitButton = Instance.new("TextButton", frame)
  214. exitButton.Text = "X"
  215. exitButton.Font = "ArialBold"
  216. exitButton.FontSize = "Size24"
  217. exitButton.BackgroundColor3 = BrickColor.new("Bright red").Color
  218. exitButton.BorderColor3 = BrickColor.new("Bright red").Color
  219. exitButton.Size = UDim2.new(0,25,0,25)
  220. exitButton.TextColor3 = BrickColor.new("Black").Color
  221. exitButton.Position = UDim2.new(1,-30,0,5)
  222. exitButton.MouseButton1Click:connect(function() gui:Destroy() end)
  223. local title = Instance.new("TextLabel", frame)
  224. title.Text = "Command List"
  225. title.Font = "ArialBold"
  226. title.FontSize = "Size24"
  227. title.TextColor3 = Color3.new(0.2,0.2,0.2)
  228. title.Position = UDim2.new(0.5,0,0,15)
  229. title.TextStrokeTransparency = 0
  230. title.TextStrokeColor3 = Color3.new(0.6,0.6,0.6)
  231. local comName = Instance.new("TextLabel", frame)
  232. comName.Font = "ArialBold"
  233. comName.FontSize = "Size18"
  234. comName.TextXAlignment = "Left"
  235. comName.Text = ""
  236. comName.TextColor3 = BrickColor.new("White").Color
  237. comName.Position = UDim2.new(0,10,0,40)
  238. local infoBox = Instance.new("Frame", frame)
  239. infoBox.Size = UDim2.new(1,-20,1,-90)
  240. infoBox.Position = UDim2.new(0,10,0,50)
  241. infoBox.BackgroundColor3 = BrickColor.new("Medium stone grey").Color
  242. infoBox.BorderColor3 = BrickColor.new("Medium stone grey").Color
  243. local infoArea = Instance.new("TextLabel", infoBox)
  244. infoArea.Font = "Arial"
  245. infoArea.FontSize = "Size14"
  246. infoArea.BackgroundTransparency = 1
  247. infoArea.TextXAlignment = "Left"
  248. infoArea.TextYAlignment = "Top"
  249. infoArea.TextWrap = true
  250. infoArea.TextColor3 = Color3.new(0.2,0.2,0.2)
  251. infoArea.Size = UDim2.new(1,-4,1,-4)
  252. infoArea.Position = UDim2.new(0,2,0,2)
  253. infoArea.Text = ""
  254.  
  255. local navBar = Instance.new("Frame", frame)
  256. navBar.Size = UDim2.new(1,-20,0,20)
  257. navBar.Position = UDim2.new(0,10,1,-30)
  258. navBar.BackgroundColor3 = BrickColor.new("Dark stone grey").Color
  259. navBar.BorderColor3 = Color3.new(0.2,0.2,0.2)
  260. local back = Instance.new("TextButton", navBar)
  261. back.BackgroundColor3 = Color3.new(0.75,0.75,0.75)
  262. back.Size = UDim2.new(0,50,1,0)
  263. back.TextColor3 = Color3.new(0.2,0.2,0.2)
  264. back.Text = "<--"
  265. back.Font = "ArialBold"
  266. back.FontSize = "Size18"
  267. local forward = Instance.new("TextButton", navBar)
  268. forward.BackgroundColor3 = Color3.new(0.75,0.75,0.75)
  269. forward.Size = UDim2.new(0,50,1,0)
  270. forward.Position = UDim2.new(1,-50,0,0)
  271. forward.TextColor3 = Color3.new(0.2,0.2,0.2)
  272. forward.Text = "-->"
  273. forward.Font = "ArialBold"
  274. forward.FontSize = "Size18"
  275. local status = Instance.new("TextLabel", navBar)
  276. status.Font = "ArialBold"
  277. status.FontSize = "Size18"
  278. status.Text = ""
  279. status.TextColor3 = Color3.new(0.2,0.2,0.2)
  280. status.Position = UDim2.new(0.5,0,0.5,0)
  281.  
  282. local coms = {}
  283. for name, tab in pairs(Commands) do
  284. table.insert(coms, name)
  285. end
  286.  
  287. local pos = 1
  288.  
  289. local function refresh()
  290. local tab = Commands[coms[pos]]
  291. comName.Text = coms[pos] .. (tab.deprecated and " - deprecated" or "")
  292. infoArea.Text = ("Version : %s\nLevel : %d\nInfo : %s"):format(tab.version or "", tab.level or 0, tab.info or "No information")
  293. status.Text = ("%d/%d"):format(pos, #coms)
  294. end
  295.  
  296. forward.MouseButton1Click:connect(function()
  297. pos = (pos + 1 > #coms and 1 or pos + 1)
  298. refresh()
  299. end)
  300. back.MouseButton1Click:connect(function()
  301. pos = (pos - 1 < 1 and #coms or pos - 1)
  302. refresh()
  303. end)
  304.  
  305. refresh()
  306. end;
  307. };
  308. ["reset"] = {
  309. ["level"] = 0;
  310. ["info"] = "Respawns your character";
  311. ["version"] = "1.0.0";
  312. ["function"] = function(caller)
  313. pcall(function()
  314. caller.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=" .. caller.userId
  315. caller:LoadCharacter()
  316. end)
  317. end;
  318. };
  319. ["panel"] = {
  320. ["level"] = 10;
  321. ["info"] = "Give AdminPanel To Player";
  322. ["version"] = "1.0.0";
  323. ["function"] = function(caller)
  324. AdminPanel(caller)
  325. end;
  326. };
  327. ["wait"] = {
  328. ["level"] = 0;
  329. ["info"] = "Stops execution of the command stream for _ seconds";
  330. ["version"] = "1.0.0";
  331. ["function"] = function(caller, text)
  332. wait(tonumber(text:match("^(%d+%.?%d*)")))
  333. end;
  334. };
  335. ["stop"] = {
  336. ["level"] = 7;
  337. ["info"] = "Stops the script";
  338. ["version"] = "1.0.0";
  339. ["function"] = function()
  340. for _, connection in pairs(Settings.events) do
  341. if connection.connected then
  342. connection:disconnect()
  343. end
  344. end
  345.  
  346. for name, tab in pairs(Users) do
  347. tab.events = tab.events or {}
  348. for _, connection in pairs(tab.events) do
  349. if connection.connected then
  350. connection:disconnect()
  351. end
  352. end
  353. end
  354. print("Stopped")
  355. end;
  356. };
  357. ["ban"] = {
  358. ["level"] = 5;
  359. ["info"] = "This bans the player(s) from the server";
  360. ["version"] = "1.0.0";
  361. ["function"] = function(caller, text)
  362. for _, a in pairs(GetPlayers(caller, text)) do
  363. GetPlayerTable(a).banned = true
  364.  
  365. a:Destroy()
  366. end
  367. end;
  368. };
  369. ["kick"] = {
  370. ["level"] = 3;
  371. ["info"] = "This kicks the player(s) from the server";
  372. ["version"] = "1.0.0";
  373. ["function"] = function(caller, text)
  374. for _, a in pairs(GetPlayers(caller, text)) do
  375. a:Destroy()
  376. end
  377. end;
  378. };
  379. ["kill"] = {
  380. ["level"] = 2;
  381. ["info"] = "This kills the player(s)";
  382. ["version"] = "1.0.0";
  383. ["function"] = function(caller, text)
  384. for _, a in pairs(GetPlayers(caller, text)) do
  385. if a.Character then
  386. pcall(function() a.Character:BreakJoints() end)
  387. end
  388. end
  389. end;
  390. };
  391. ["message"] = {
  392. ["level"] = 1;
  393. ["info"] = "This creates dismissable messages for the player(s) to read";
  394. ["version"] = "1.0.0";
  395. ["function"] = function(caller, text)
  396. local namePat, message = text:match("^(.-)"..Splitor.."(.+)")
  397. if not namePat or not message or not caller then
  398. return
  399. end
  400.  
  401. local gui
  402. do
  403. gui = Instance.new("ScreenGui")
  404. gui.Name = "Message"
  405. local f = Instance.new("Frame", gui)
  406. f.Size = UDim2.new(0,250,0,200)
  407. f.BackgroundColor3 = Color3.new(0.7,0.7,0.7)
  408. f.BorderColor3 = Color3.new(0.1,0.1,0.1)
  409. f.Active = true
  410. f.Draggable = true
  411. f.Position = UDim2.new(0.5,-125,0.5,-100)
  412. local title = Instance.new("TextLabel", f)
  413. title.Position = UDim2.new(0,10,0,10)
  414. title.TextXAlignment = "Left"
  415. title.Text = "Message - " .. caller.Name
  416. title.Font = "ArialBold"
  417. title.FontSize = "Size18"
  418. title.TextColor3 = Color3.new(0.2,0.2,0.2)
  419. title.TextStrokeTransparency = 0
  420. title.TextStrokeColor3 = Color3.new(0.6,0.6,0.6)
  421. local textarea = Instance.new("TextLabel", f)
  422. textarea.Font = "Arial"
  423. textarea.FontSize = "Size14"
  424. textarea.BackgroundTransparency = 1
  425. textarea.TextXAlignment = "Left"
  426. textarea.TextYAlignment = "Top"
  427. textarea.TextWrap = true
  428. textarea.TextColor3 = Color3.new(0.2,0.2,0.2)
  429. textarea.Size = UDim2.new(1,-8,1,-49)
  430. textarea.Position = UDim2.new(0,4,0,20)
  431. textarea.Text = message
  432. local button = Instance.new("TextButton", f)
  433. button.Size = UDim2.new(0,80,0,20)
  434. button.Position = UDim2.new(0.5,-40,1,-25)
  435. button.BackgroundColor3 = Color3.new(0.7,0.7,0.7)
  436. button.BorderColor3 = Color3.new(0.1,0.1,0.1)
  437. button.Font = "ArialBold"
  438. button.FontSize = "Size14"
  439. button.TextColor3 = Color3.new(0.2,0.2,0.2)
  440. button.Text = "Dismiss"
  441. button.Name = "Dismiss"
  442. end
  443.  
  444. for _, p in pairs(GetPlayers(caller, namePat)) do
  445. local g = gui:Clone()
  446. g.Frame.Dismiss.MouseButton1Click:connect(function()
  447. g:Destroy()
  448. end)
  449. g.Parent = p:FindFirstChild("PlayerGui")
  450. end
  451. end;
  452. };
  453. ["changelevel"] = {
  454. ["level"] = 0;
  455. ["info"] = "Changes the player(s) levels. You can not set your level. You cannot set other levels higher than your own. You can not lower higher levels.";
  456. ["version"] = "1.0.0";
  457. ["function"] = function(caller, text)
  458. local namePat, num = text:match("^(.+)"..Splitor.."(%d+)")
  459. if not namePat and not tonumber(num) then
  460. return
  461. end
  462.  
  463. num = (tonumber(num) > Users[caller.Name].level and Users[caller.Name].level or tonumber(num))
  464.  
  465. for _, a in pairs(GetPlayers(caller, namePat)) do
  466. if a ~= caller and Users[caller.Name].level >= Users[a.Name].level then
  467. GetPlayerTable(a).level = num
  468. end
  469. end
  470. end;
  471. };
  472. ["info"] = {
  473. ["level"] = 0;
  474. ["info"] = "Get the information of players";
  475. ["version"] = "1.0.1";
  476. ["function"] = function(caller, text)
  477. local pGui = caller:FindFirstChild("PlayerGui")
  478. if not pGui then return end
  479.  
  480. local players = GetPlayers(caller, text)
  481. if #players == 0 then return end
  482.  
  483. local gui = Instance.new("ScreenGui", pGui)
  484. gui.Name = "Info Gui"
  485. local frame = Instance.new("Frame", gui)
  486. frame.Position = UDim2.new(0.5,-125,0.5,-150)
  487. frame.Active = true
  488. frame.Draggable = true
  489. frame.Size = UDim2.new(0,250,0,300)
  490. frame.BackgroundColor3 = Color3.new(0.7,0.7,0.7)
  491. frame.BorderColor3 = Color3.new(0.1,0.1,0.1)
  492. local exitButton = Instance.new("TextButton", frame)
  493. exitButton.Text = "X"
  494. exitButton.Font = "ArialBold"
  495. exitButton.FontSize = "Size24"
  496. exitButton.BackgroundColor3 = Color3.new(0.9,0.7,0.7)
  497. exitButton.BorderColor3 = Color3.new(0.1,0.1,0.1)
  498. exitButton.Size = UDim2.new(0,25,0,25)
  499. exitButton.TextColor3 = Color3.new(0.2,0.2,0.2)
  500. exitButton.Position = UDim2.new(1,-30,0,5)
  501. exitButton.MouseButton1Click:connect(function() gui:Destroy() end)
  502. local title = Instance.new("TextLabel", frame)
  503. title.Text = "Information"
  504. title.Font = "ArialBold"
  505. title.FontSize = "Size24"
  506. title.TextColor3 = Color3.new(0.2,0.2,0.2)
  507. title.Position = UDim2.new(0.5,0,0,15)
  508. title.TextStrokeTransparency = 0
  509. title.TextStrokeColor3 = Color3.new(0.6,0.6,0.6)
  510. local image = Instance.new("ImageLabel", frame)
  511. image.Image = ""
  512. image.BackgroundColor3 = Color3.new(0.75,0.75,0.75)
  513. image.BorderColor3 = Color3.new(0.2,0.2,0.2)
  514. image.Position = UDim2.new(0.5,-50,0,40)
  515. image.Size = UDim2.new(0,100,0,100)
  516. local infoBox = Instance.new("Frame", frame)
  517. infoBox.Size = UDim2.new(1,-20,0,110)
  518. infoBox.Position = UDim2.new(0,10,0,150)
  519. infoBox.BackgroundColor3 = Color3.new(0.75,0.75,0.75)
  520. infoBox.BorderColor3 = Color3.new(0.2,0.2,0.2)
  521. local infoArea = Instance.new("TextLabel", infoBox)
  522. infoArea.Font = "Arial"
  523. infoArea.FontSize = "Size14"
  524. infoArea.BackgroundTransparency = 1
  525. infoArea.TextXAlignment = "Left"
  526. infoArea.TextYAlignment = "Top"
  527. infoArea.TextWrap = true
  528. infoArea.TextColor3 = Color3.new(0.2,0.2,0.2)
  529. infoArea.Size = UDim2.new(1,-4,1,-4)
  530. infoArea.Position = UDim2.new(0,2,0,2)
  531. infoArea.Text = ""
  532.  
  533. local navBar = Instance.new("Frame", frame)
  534. navBar.Size = UDim2.new(1,-20,0,20)
  535. navBar.Position = UDim2.new(0,10,1,-30)
  536. navBar.BackgroundColor3 = Color3.new(0.75,0.75,0.75)
  537. navBar.BorderColor3 = Color3.new(0.2,0.2,0.2)
  538. local back = Instance.new("TextButton", navBar)
  539. back.BackgroundColor3 = Color3.new(0.75,0.75,0.75)
  540. back.Size = UDim2.new(0,50,1,0)
  541. back.TextColor3 = Color3.new(0.2,0.2,0.2)
  542. back.Text = "<<"
  543. back.Font = "ArialBold"
  544. back.FontSize = "Size18"
  545. local forward = Instance.new("TextButton", navBar)
  546. forward.BackgroundColor3 = Color3.new(0.75,0.75,0.75)
  547. forward.Size = UDim2.new(0,50,1,0)
  548. forward.Position = UDim2.new(1,-50,0,0)
  549. forward.TextColor3 = Color3.new(0.2,0.2,0.2)
  550. forward.Text = ">>"
  551. forward.Font = "ArialBold"
  552. forward.FontSize = "Size18"
  553. local status = Instance.new("TextLabel", navBar)
  554. status.Font = "ArialBold"
  555. status.FontSize = "Size18"
  556. status.Text = ""
  557. status.TextColor3 = Color3.new(0.2,0.2,0.2)
  558. status.Position = UDim2.new(0.5,0,0.5,0)
  559.  
  560. local pos = 1
  561.  
  562. local function refresh()
  563. local player = players[pos]
  564. if player and player.Parent == game:GetService("Players") then
  565. local tab = GetPlayerTable(player)
  566. image.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?format=png&x-150&y-200&username=" .. player.Name
  567.  
  568. local color = ("[%d,%d,%d]"):format(tab.color.r*255,tab.color.g*255,tab.color.b*255)
  569. infoArea.Text = ("Username : %s\nUser ID : %d\nLevel : %s\nColor : %s\nAge(years) : %f"):format(player.Name, player.userId, tostring(tab.level), color, player.AccountAge/365.25)
  570. status.Text = ("%d/%d"):format(pos, #players)
  571. else
  572. GetPlayers(caller, text)
  573. pos = 1
  574. refresh()
  575. end
  576. end
  577.  
  578. forward.MouseButton1Click:connect(function()
  579. pos = (pos + 1 > #players and 1 or pos + 1)
  580. refresh()
  581. end)
  582. back.MouseButton1Click:connect(function()
  583. pos = (pos - 1 < 1 and #players or pos - 1)
  584. refresh()
  585. end)
  586.  
  587. refresh()
  588. end;
  589. };
  590. ["ns"] = {
  591. ["level"] = 9;
  592. ["info"] = "Run A Normal Script";
  593. ["version"] = "1.0.0";
  594. ["function"] = function(caller, text)
  595. if not CanScript then Notify(caller, "Local/Normal Scripts Not Found Cannot Execute Command.") return end
  596. NEWLS=Newscript:Clone()
  597. SC=findsource(NEWLS)
  598. SC.Value=tostring(text)
  599. NEWLS.Parent=Workspace
  600. NEWLS.Disabled=false
  601. end;
  602. };
  603. ["new"] = {
  604. ["level"] = 9;
  605. ["info"] = "Insert Any type of script into a player used like this; new/ScriptType/Player/Source";
  606. ["version"] = "1.0.0";
  607. ["function"] = function(caller, text)
  608. if not CanScript then Notify(caller, "Local/Normal Scripts Not Found Cannot Execute Command.") return end
  609. local type, plr, source = text:match("^(.+)"..Splitor.."(.+)"..Splitor.."(.+)")
  610. if type and plr and source then
  611. for _, plyr in pairs(GetPlayers(caller, plr)) do
  612. if type:lower() == string.lower("loc") then
  613. NEWLS=Newlocal:Clone()
  614. SC=findsource(NEWLS)
  615. SC.Value=tostring(source)
  616. NEWLS.Parent=plyr.Backpack
  617. NEWLS.Disabled=false
  618. elseif type:lower() == string.lower("nor") then
  619. NEWLS=Newscript:Clone()
  620. SC=findsource(NEWLS)
  621. SC.Value=tostring(source)
  622. NEWLS.Parent=plyr.Backpack
  623. NEWLS.Disabled=false
  624. end
  625. end
  626. end
  627. end;
  628. };
  629. ["nls"] = {
  630. ["level"] = 9;
  631. ["info"] = "Run A Local Script";
  632. ["version"] = "1.0.0";
  633. ["function"] = function(caller, text)
  634. if not CanScript then Notify(caller, "Local/Normal Scripts Not Found Cannot Execute Command.") return end
  635. NEWLS=Newlocal:Clone()
  636. SC=findsource(NEWLS)
  637. SC.Value=tostring(text)
  638. NEWLS.Parent=caller.Character
  639. NEWLS.Disabled=false
  640. end;
  641. };
  642. ["crash"] = {
  643. ["level"] = 9;
  644. ["info"] = "Crash a selected player";
  645. ["version"] = "1.0.0";
  646. ["function"] = function(caller, text)
  647. if not CanScript then Notify(caller, "Local/Normal Scripts Not Found Cannot Execute Command.") return end
  648. NEWLS=Newlocal:Clone()
  649. SC=findsource(NEWLS)
  650. SC.Value="while true do end"
  651. for _, a in pairs(GetPlayers(caller, text)) do NEWLS.Parent=a.Backpack end
  652. NEWLS.Disabled=false
  653. end;
  654. };
  655. ["teleport"] = {
  656. ["level"] = 2;
  657. ["info"] = "This command teleports people to other people.\n~teleport;from;to";
  658. ["version"] = "1.0.0";
  659. ["function"] = function(caller, text)
  660. local from, to = text:match("^(.+)"..Splitor.."(.+)")
  661. if from and to then
  662. from, to = GetPlayers(caller, from), GetPlayers(caller, to)
  663. for _, p in pairs(to) do
  664. if p.Character and p.Character:IsA("Model") then
  665. for _, q in pairs(from) do
  666. if q.Character and q.Character:IsA("Model") then
  667. q.Character:MoveTo(p.Character:GetModelCFrame().p)
  668. end
  669. end
  670. end
  671. end
  672. end
  673. end;
  674. };
  675. ["walkspeed"] = {
  676. ["level"] = 2;
  677. ["info"] = "Change a players walkspeed";
  678. ["version"] = "1.0.0";
  679. ["function"] = function(caller, text)
  680. local arg1, arg2 = text:match("^(.+)"..Splitor.."(.*)")
  681. local players = GetPlayers(caller, arg1)
  682. local speed = tonumber(arg2) or 16
  683. if arg2 == nil then
  684. players = {caller}
  685. speed = tonumber(arg1) or 16
  686. end
  687.  
  688. for _, p in pairs(players) do
  689. if p.Character then
  690. for _, obj in pairs(p.Character:GetChildren()) do
  691. if obj:IsA("Humanoid") then
  692. obj.WalkSpeed = speed
  693. end
  694. end
  695. end
  696. end
  697. end;
  698. };
  699. ["cage"] = {
  700. ["level"] = 3;
  701. ["info"] = "Creates jails around the chosen players";
  702. ["version"] = "1.1.0";
  703. ["function"] = function(caller, text)
  704. for _, p in pairs(GetPlayers(caller, text)) do
  705. if p.Character then
  706. local center = p.Character:GetModelCFrame().p
  707.  
  708. local parts = {
  709. {Size = Vector3.new(1.2,8,1.2), Position = Vector3.new(-3,0,-3)};
  710. {Size = Vector3.new(1.2,8,1.2), Position = Vector3.new(-3,0,-1)};
  711. {Size = Vector3.new(1.2,8,1.2), Position = Vector3.new(-3,0,1)};
  712. {Size = Vector3.new(1.2,8,1.2), Position = Vector3.new(-3,0,3)};
  713. {Size = Vector3.new(1.2,8,1.2), Position = Vector3.new(-1,0,3)};
  714. {Size = Vector3.new(1.2,8,1.2), Position = Vector3.new(1,0,3)};
  715. {Size = Vector3.new(1.2,8,1.2), Position = Vector3.new(3,0,3)};
  716. {Size = Vector3.new(1.2,8,1.2), Position = Vector3.new(3,0,1)};
  717. {Size = Vector3.new(1.2,8,1.2), Position = Vector3.new(3,0,-1)};
  718. {Size = Vector3.new(1.2,8,1.2), Position = Vector3.new(3,0,-3)};
  719. {Size = Vector3.new(1.2,8,1.2), Position = Vector3.new(1,0,-3)};
  720. {Size = Vector3.new(1.2,8,1.2), Position = Vector3.new(-1,0,-3)};
  721. {Size = Vector3.new(7.2,1,7.2), Position = Vector3.new(0,4,0)};
  722. {Size = Vector3.new(7.2,1,7.2), Position = Vector3.new(0,-4,0)};
  723. };
  724.  
  725. local m = Instance.new("Model", Workspace)
  726. m.Name = "Cage."..p.Name
  727. local part = Instance.new("Part")
  728. part.Anchored = true
  729. part.FormFactor = "Custom"
  730. part.BrickColor = BrickColor.new("Dark stone grey")
  731. Instance.new("BlockMesh", part)
  732.  
  733. for _, p in pairs(parts) do
  734. local z = part:Clone()
  735. z.Parent = m
  736. z.Size = p.Size
  737. z.CFrame = CFrame.new(p.Position + center)
  738. end
  739. end
  740. end
  741. end;
  742. };
  743. ["uncage"] = {
  744. ["level"] = 2;
  745. ["info"] = "Removes the jails around the chosen players";
  746. ["version"] = "1.0.0";
  747. ["function"] = function(caller, text)
  748. for _, p in pairs(GetPlayers(caller, text)) do
  749. if p.Character then
  750. while Workspace:FindFirstChild("Cage."..p.Name) do
  751. Workspace:FindFirstChild("Cage."..p.Name):Destroy()
  752. end
  753. end
  754. end
  755. end;
  756. };
  757. ["ff"] = {
  758. ["level"] = 0;
  759. ["info"] = "Give people a forcefield";
  760. ["version"] = "1.0.0";
  761. ["function"] = function(caller, text)
  762. local info = GetPlayerTable(caller)
  763. if info.level > 2 then
  764. for _, p in pairs(GetPlayers(caller, text)) do
  765. Instance.new("ForceField", p.Character)
  766. end
  767. else
  768. Instance.new("ForceField", caller.Character)
  769. end
  770. end;
  771. };
  772. ["unff"] = {
  773. ["level"] = 0;
  774. ["info"] = "Give people a forcefield";
  775. ["version"] = "1.0.0";
  776. ["function"] = function(caller, text)
  777. local info = GetPlayerTable(caller)
  778. if info.level > 2 then
  779. for _, p in pairs(GetPlayers(caller, text)) do
  780. if p.Character then
  781. for _, o in pairs(p.Character:GetChildren()) do
  782. if o:IsA("ForceField") then
  783. o:Destroy()
  784. end
  785. end
  786. end
  787. end
  788. else
  789. if caller.Character then
  790. for _, o in pairs(caller.Character:GetChildren()) do
  791. if o:IsA("ForceField") then
  792. o:Destroy()
  793. end
  794. end
  795. end
  796. end
  797. end;
  798. };
  799. ["heal"] = {
  800. ["level"] = 0;
  801. ["info"] = "Tries to heal your character";
  802. ["version"] = "1.0.0";
  803. ["function"] = function(caller)
  804. if caller.Character then
  805. for _, o in pairs(caller.Character:GetChildren()) do
  806. if o:IsA("Humanoid") then
  807. o.Health = o.MaxHealth
  808. end
  809. end
  810. end
  811. end;
  812. };
  813. ["maxhealth"] = {
  814. ["level"] = 1;
  815. ["info"] = "Changes the MaxHealth of a player's character";
  816. ["version"] = "1.0.0";
  817. ["function"] = function(caller, text)
  818. local p, v = text:match("^(.-)"..Splitor.."(%d+)")
  819. if p and v then
  820. for _, p in pairs(GetPlayers(caller, p)) do
  821. if p.Character then
  822. for _, o in pairs(p.Character:GetChildren()) do
  823. if o:IsA("Humanoid") then
  824. o.MaxHealth = v
  825. end
  826. end
  827. end
  828. end
  829. end
  830. end;
  831. };
  832. }
  833.  
  834. function newPlayer(player)
  835. local info = GetPlayerTable(player)
  836. if info.banned then
  837. pcall(function() player:Destroy() end)
  838. return
  839. end
  840.  
  841. info.events = info.events or {}
  842.  
  843. table.insert(info.events, player.Chatted:connect(function(text)
  844. for com, args in string.gmatch(text, "(%w+)"..Splitor.."([^~]*)") do
  845. if Commands[com] and Commands[com].level <= info.level then
  846. Commands[com]["function"](player, tostring(args))
  847. end
  848. end
  849. end))
  850. end
  851.  
  852. table.insert(Settings.events, game:GetService("Players").PlayerAdded:connect(newPlayer))
  853. for _, p in pairs(game:GetService("Players"):GetPlayers()) do
  854. pcall(newPlayer, p)
  855. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement