Advertisement
Demonlord27

cmdscript

Aug 15th, 2016
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 78.64 KB | None | 0 0
  1. local DataStorage = game.CoreGui
  2. game:GetObjects("rbxassetid://276707663")[1].Parent = DataStorage
  3.  
  4. repeat wait(1) until DataStorage:findFirstChild("Storage")
  5.  
  6. local storage = DataStorage:WaitForChild("Storage")
  7. local helppanel = storage:WaitForChild("InfoPanel")
  8. local explorer = storage:WaitForChild("ExplorerGui")
  9. local cmdbar = storage:WaitForChild("CommandBar")
  10. local cmdlist = storage:WaitForChild("CommandList")
  11. local wplist = storage:WaitForChild("WayPointList")
  12. local kblist = storage:WaitForChild("KeyBindList")
  13. local slist = storage:WaitForChild("ScriptList")
  14. local cmdsgui = storage:WaitForChild("CommandGui")
  15.  
  16. local FixLighting = {
  17. amb = game:GetService("Lighting").Ambient,
  18. oamb = game:GetService("Lighting").OutdoorAmbient,
  19. brt = game:GetService("Lighting").Brightness,
  20. tod = game:GetService("Lighting").TimeOfDay,
  21. fcol = game:GetService("Lighting").FogColor,
  22. fend = game:GetService("Lighting").FogEnd,
  23. fstrt = game:GetService("Lighting").FogStart,
  24. shad = game:GetService("Lighting").GlobalShadows,
  25. line = game:GetService("Lighting").Outlines,
  26. shadcol = game:GetService("Lighting").ShadowColor
  27. }
  28.  
  29. local GameSet = {
  30. mapBackup = false,
  31. removeCreator = false,
  32. serverLocked = false,
  33. disco = false,
  34. Floating = false,
  35. ESP = "off",
  36.  
  37. floatkey = 29, -- F4
  38. flykey = 30, -- F5
  39. speeddownkey = 27, -- F2
  40. speedupkey = 28, -- F3
  41. }
  42.  
  43. local ESP = {}
  44. local KeyBinds = {}
  45. local LoopKill = {}
  46. local LoopSit = {}
  47.  
  48. local WayPoints = {
  49. -- Apocalypse Rising: Reimagined
  50. {["NAME"] = "Hark", ["COORD"] = {-1877, 4.4, -3000}},
  51. {["NAME"] = "Mansion", ["COORD"] = {-2366, 5.6, -1618}},
  52. {["NAME"] = "Dirk", ["COORD"] = {-2839, 4.4, 725}},
  53. {["NAME"] = "Trin", ["COORD"] = {-2798, 4.1, 2593}},
  54. {["NAME"] = "Yale", ["COORD"] = {-2271, 4.4, 3112}},
  55. {["NAME"] = "OM", ["COORD"] = {-649, 4.4, -2873}},
  56. {["NAME"] = "Olke", ["COORD"] = {104, 4.4, -2188}},
  57. {["NAME"] = "Cemetery", ["COORD"] = {482, 4.4, -1477}},
  58. {["NAME"] = "Prison", ["COORD"] = {1319, 4.4, 56}},
  59. {["NAME"] = "Kin", ["COORD"] = {-862, 5.7, 1036}},
  60. {["NAME"] = "FR", ["COORD"] = {52, 154, 3115}},
  61. {["NAME"] = "Korri", ["COORD"] = {1188, 4.4, 2545}},
  62. {["NAME"] = "RC", ["COORD"] = {2473, 4, -2796}},
  63. {["NAME"] = "MO", ["COORD"] = {1679, 5, -1406}},
  64. {["NAME"] = "RT", ["COORD"] = {1052, 67, 1197}},
  65. {["NAME"] = "Vernal", ["COORD"] = {2496, 4.4, -549}},
  66. {["NAME"] = "Mason", ["COORD"] = {2441, 5.1, 639,}},
  67. {["NAME"] = "Fact", ["COORD"] = {2663, 4.4, 2279}},
  68. {["NAME"] = "Flats", ["COORD"] = {-2891, 4.4, -2618}},
  69. {["NAME"] = "Pitts", ["COORD"] = {-2040, 6, 15}},
  70. {["NAME"] = "die", ["COORD"] = {2651, 136.6, 2342}}, -- you know it (lenny face)
  71. -- Apocalypse Rising: Reborn
  72. {["NAME"] = "OM2", ["COORD"] = {518, 1195, -5740}},
  73. {["NAME"] = "Cemetery2", ["COORD"] = {115, 785, -1892}},
  74. {["NAME"] = "MO2", ["COORD"] = {2933, 756, -2856}},
  75. {["NAME"] = "Vernal2", ["COORD"] = {4703, 544.7, -63}},
  76. {["NAME"] = "Mason2", ["COORD"] = {4703, 544.7, -63}},
  77. {["NAME"] = "Fact2", ["COORD"] = {4846, 371.1, 5430}},
  78. {["NAME"] = "Pitts2", ["COORD"] = {-2422, 727.4, -1877}},
  79. -- Flood Escape
  80. {["NAME"] = "HardWin", ["COORD"] = {-39, 33, -592}},
  81. }
  82.  
  83. local mouse = game.Players.LocalPlayer:GetMouse()
  84.  
  85. local gPlayers = game:GetService("Players")
  86. local admin = gPlayers.LocalPlayer.Name
  87. local bannedplyrs = {}
  88.  
  89. local admins = {''}
  90. local services={}
  91. local cmds={}
  92. local std={}
  93.  
  94. services.players=gPlayers
  95. services.lighting=game:GetService('Lighting')
  96. services.workspace=game:GetService('Workspace')
  97. services.events = {}
  98. local user = gPlayers.LocalPlayer
  99.  
  100. local cmdprefix=';'
  101. local scriptprefix='\''
  102. local split=" "
  103.  
  104. updateevents=function()
  105. for i,v in pairs(services.events) do
  106. services.events[i] = nil
  107. v:disconnect()
  108. end
  109. for i,v in pairs(gPlayers:players())do
  110. local ev = v.Chatted:connect(function(msg)
  111. do_exec(msg,v)
  112. end)
  113. services.events[#services.events+1] = ev
  114. end
  115. end
  116.  
  117. -- Safazi's lib --
  118. std.inTable=function(tbl,val)
  119. if tbl==nil then return false end
  120. for _,v in pairs(tbl)do
  121. if v==val then return true end
  122. end
  123. return false
  124. end
  125.  
  126. std.out=function(str)
  127. print(str)
  128. end
  129.  
  130. std.list=function(tbl)
  131. local str=''
  132. for i,v in pairs(tbl)do
  133. str=str..tostring(v)
  134. if i~=#tbl then str=str..', ' end
  135. end
  136. return str
  137. end
  138.  
  139. std.endat=function(str,val)
  140. local z=str:find(val)
  141. if z then
  142. return str:sub(0,z-string.len(val)),true
  143. else
  144. return str,false
  145. end
  146. end
  147.  
  148. std.first=function(str)
  149. return str:sub(1,1)
  150. end
  151.  
  152. isAdmin=function(name)
  153. if name==admin then
  154. return true
  155. elseif admins[name]==true then
  156. return true
  157. end
  158. return false
  159. end
  160.  
  161. local exec=function(str)
  162. spawn(function()
  163. local script, loaderr = loadstring(str)
  164. if not script then
  165. error(loaderr)
  166. else
  167. script()
  168. end
  169. end)
  170.  
  171. end
  172.  
  173. local findCmd=function(cmd_name)
  174. for i,v in pairs(cmds)do
  175. if v.NAME:lower()==cmd_name:lower() or std.inTable(v.ALIAS,cmd_name:lower())then
  176. return v
  177. end
  178. end
  179. end
  180.  
  181. local getCmd=function(msg)
  182. local cmd,hassplit=std.endat(msg:lower(),split)
  183. if hassplit then
  184. return {cmd,true}
  185. else
  186. return {cmd,false}
  187. end
  188. end
  189.  
  190. local getprfx=function(strn)
  191. if strn:sub(1,string.len(cmdprefix))==cmdprefix then
  192. return{'cmd',string.len(cmdprefix)+1}
  193. elseif strn:sub(1,string.len(scriptprefix))==scriptprefix then
  194. return{'exec',string.len(scriptprefix)+1}
  195. end return
  196. end
  197.  
  198. local getargs=function(str)
  199. local args={}
  200. local new_arg=nil
  201. local hassplit=nil
  202. local s=str
  203. repeat
  204. new_arg,hassplit=std.endat(s,split)
  205. if new_arg~='' then
  206. args[#args+1]=new_arg
  207. s=s:sub(string.len(new_arg)+string.len(split)+1)
  208. end
  209. until hassplit==false
  210. return args
  211. end
  212.  
  213. function execCmd(str, plr)
  214. local s_cmd
  215. local a
  216. local cmd
  217. s_cmd = getCmd(str) --separate command from string using split {command name,arg bool (for arg system)}
  218. cmd = findCmd(s_cmd[1]) --get command object {NAME,DESC,{ALIASES},function(args)}
  219. if cmd == nil then return end
  220. a = str:sub(string.len(s_cmd[1]) + string.len(split) + 1)--start string "a" after command and split
  221. local args=getargs(a)--gets us a nice table of arguments
  222. pcall(function()
  223. cmd.FUNC(args, plr)
  224. end)
  225. end
  226.  
  227. function do_exec(str,plr)
  228. if not isAdmin(plr.Name)then return end
  229. str=str:gsub('/e ','')--remove "/e " the easy way!
  230. local t=getprfx(str)
  231. if t==nil then return end
  232. str=str:sub(t[2])
  233. if t[1]=='exec' then
  234. exec(str)
  235. elseif t[1]=='cmd' then
  236. execCmd(str, plr)
  237. end
  238. end
  239.  
  240. updateevents()
  241. _G.exec_cmd = execCmd
  242.  
  243. local _char=function(plr_name)
  244. for i,v in pairs(game.Players:GetChildren())do
  245. if v:IsA'Player'then
  246. if v.Name==plr_name then return v.Character end
  247. end
  248. end
  249. return
  250. end
  251.  
  252. local _plr=function(plr_name)
  253. for i,v in pairs(game.Players:GetChildren())do
  254. if v:IsA'Player'then
  255. if v.Name==plr_name then return v end
  256. end
  257. end
  258. return
  259. end
  260.  
  261. function addcmd(name,desc,alias,func)
  262. cmds[#cmds+1]={
  263. NAME=name;
  264. DESC=desc;
  265. ALIAS=alias;
  266. FUNC=func;
  267. }
  268. end
  269.  
  270. function getPlayer(name)
  271. local nameTable = {}
  272. name=name:lower()
  273. if name == "me" then
  274. return {admin}
  275. elseif name == "others" then
  276. for i,v in pairs(gPlayers:GetChildren()) do
  277. if v:IsA'Player'then
  278. if v.Name~=admin then
  279. nameTable[#nameTable+1]=v.Name
  280. end
  281. end
  282. end
  283. elseif name == "all" then
  284. for i,v in pairs(gPlayers:GetChildren()) do
  285. if v:IsA'Player'then
  286. nameTable[#nameTable+1]=v.Name
  287. end
  288. end
  289. elseif name == "team-" then
  290. for _,v in pairs(game:GetService("Teams")) do
  291. if v.Name:lower():find(name:sub(6):lower()) then
  292. for _,p in pairs(gPlayers:GetChildren()) do
  293. if p:IsA("Player") and p.TeamColor == v.TeamColor then
  294. nameTable[#nameTable + 1] = p.Name
  295. end
  296. end
  297. end
  298. end
  299. else
  300. for i,v in pairs(gPlayers:GetChildren()) do
  301. local lname = v.Name:lower()
  302. local i,j = lname:find(name)
  303. if i == 1 then
  304. return {v.Name}
  305. end
  306. end
  307. end
  308. return nameTable
  309. end
  310.  
  311. -- commands --
  312.  
  313. addcmd('ff',"ff's a player",{},
  314. function(args)
  315. local players=getPlayer(args[1])
  316. for i,v in pairs(players)do
  317. local pchar=_char(v)
  318. Instance.new("ForceField", pchar)
  319. end
  320. end)
  321.  
  322.  
  323. addcmd('noff',"unff's a player",{'unff'},
  324. function(args)
  325. local players=getPlayer(args[1])
  326. for i,v in pairs(players)do
  327. local pchar=_char(v)
  328. for j,v1 in pairs(pchar:GetChildren()) do
  329. if v1:IsA("ForceField") then
  330. v1:Destroy()
  331. end
  332. end
  333. end
  334. end)
  335.  
  336. addcmd('fire','set a player on fire',{},
  337. function(args)
  338. local players=getPlayer(args[1])
  339. for i,v in pairs(players)do
  340. local pchar=_char(v)
  341. local r = args[2]
  342. local b = args[3]
  343. local g = args[4]
  344. local f = Instance.new("Fire", pchar.Torso)
  345. f.Color = Color3.new(r/240,g/240,b/240)
  346. end
  347. end)
  348.  
  349. addcmd('nofire','extinguish a player',{'unfire'},
  350. function(args)
  351. local players=getPlayer(args[1])
  352. for i,v in pairs(players)do
  353. local pchar=_char(v)
  354. for j,v1 in pairs(pchar.Torso:GetChildren()) do
  355. if v1:IsA("Fire") then
  356. v1:Destroy()
  357. end
  358. end
  359. end
  360. end)
  361.  
  362. addcmd('sp','give a player sparkles',{},
  363. function(args)
  364. local players=getPlayer(args[1])
  365. for i,v in pairs(players)do
  366. local pchar=_char(v)
  367. local r = args[2]
  368. local b = args[3]
  369. local g = args[4]
  370. local s = Instance.new("Sparkles", pchar.Torso)
  371. s.Color = Color3.new(r/240,g/240,b/240)
  372. end
  373. end)
  374.  
  375. addcmd('nosp','remove sparkles from a player',{'unsp'},
  376. function(args)
  377. local players=getPlayer(args[1])
  378. for i,v in pairs(players)do
  379. local pchar=_char(v)
  380. for j,v1 in pairs(pchar.Torso:GetChildren()) do
  381. if v1:IsA("Sparkles") then
  382. v1:Destroy()
  383. end
  384. end
  385. end
  386. end)
  387.  
  388. addcmd('smoke','give a player smoke',{},
  389. function(args)
  390. local players=getPlayer(args[1])
  391. for i,v in pairs(players)do
  392. local pchar=_char(v)
  393. local r = args[2]
  394. local b = args[3]
  395. local g = args[4]
  396. local s = Instance.new("Smoke", pchar.Torso)
  397. s.Color = Color3.new(r/240,g/240,b/240)
  398. end
  399. end)
  400.  
  401. addcmd('nosmoke','remove smoke from a player',{"unsmoke"},
  402. function(args)
  403. local players=getPlayer(args[1])
  404. for i,v in pairs(players)do
  405. local pchar=_char(v)
  406. for j,v1 in pairs(pchar.Torso:GetChildren()) do
  407. if v1:IsA("Smoke") then
  408. v1:Destroy()
  409. end
  410. end
  411. end
  412. end)
  413.  
  414. addcmd('btools','gives a player btools',{},
  415. function(args)
  416. local players=getPlayer(args[1])
  417. if players ~= nil then
  418. for _,v in pairs(players) do
  419. for _,t in pairs(storage["Build Tools"]:GetChildren()) do
  420. t:Clone().Parent = gPlayers[v].Backpack
  421. end
  422. end
  423. end
  424. end)
  425.  
  426. addcmd('god','gods player',{},
  427. function(args)
  428. local players=getPlayer(args[1])
  429. for i,v in pairs(players)do
  430. local pchar=_char(v)
  431. if pchar then pchar.Humanoid.MaxHealth=math.huge end
  432. end
  433. end)
  434.  
  435. addcmd('sgod','silently gods player',{},
  436. function(args)
  437. local players=getPlayer(args[1])
  438. for i,v in pairs(players)do
  439. local pchar=_char(v)
  440. spawn(function()
  441. pchar.Humanoid.MaxHealth = 1e9
  442. wait(0.25)
  443. pchar.Humanoid.Health = 1e9
  444. end)
  445. end
  446. end)
  447.  
  448. addcmd('ungod','removes god from a player',{},
  449. function(args)
  450. local players=getPlayer(args[1])
  451. for i,v in pairs(players)do
  452. local pchar=_char(v)
  453. if pchar then
  454. pchar.Humanoid.MaxHealth=100
  455. pchar.Humanoid.Health=100
  456. end
  457. end
  458. end)
  459.  
  460. addcmd('heal','resets a players health',{},
  461. function(args)
  462. local players=getPlayer(args[1])
  463. for i,v in pairs(players)do
  464. local pchar=_char(v)
  465. if pchar then pchar.Humanoid.Health=pchar.Humanoid.MaxHealth;end
  466. end
  467. end)
  468.  
  469. addcmd('frz','freezes a player',{},
  470. function(args)
  471. local players = getPlayer(args[1])
  472. if players ~= nil then
  473. for i, v in pairs(players) do
  474. _char(v).Torso.Anchored = true
  475. end
  476. end
  477. end)
  478.  
  479. addcmd('thaw','freezes a player',{},
  480. function(args)
  481. local players = getPlayer(args[1])
  482. if players ~= nil then
  483. for i, v in pairs(players) do
  484. _char(v).Torso.Anchored = false
  485. end
  486. end
  487. end)
  488.  
  489. addcmd('kill','kills a player',{},
  490. function(args)
  491. local players=getPlayer(args[1])
  492. for i,v in pairs(players)do
  493. local pchar=_char(v)
  494. if pchar then pchar.Humanoid.MaxHealth=0;pchar.Humanoid.Health=0;end
  495. end
  496. end)
  497.  
  498. addcmd('sound','plays a sound',{"music"},
  499. function(args)
  500. function dels(instance)
  501. for i,v in pairs(instance:GetChildren())do
  502. if v:IsA'Sound'then v:Destroy()end
  503. dels(v)
  504. end
  505. end
  506. dels(game.Workspace)
  507. local c=args[1] or 'stop' or "off"
  508. if std.inTable({'stop'},c:lower())then return end
  509. local s=Instance.new("Sound", game.Workspace)
  510. s.Looped = true
  511. s.SoundId = "rbxassetid://"..c
  512. s.Volume=1
  513. s:Play()
  514. end)
  515.  
  516. addcmd('explode','explode a player', {},
  517. function(args)
  518. local players=getPlayer(args[1])
  519. for i, v in pairs(players) do
  520. local char = _char(v)
  521. if char:FindFirstChild("Torso") then
  522. Instance.new("Explosion", char).Position = char.Torso.Position
  523. end
  524. end
  525. end)
  526.  
  527. addcmd('invis','make a player invisible',{"invisible"},
  528. function(args)
  529. local players=getPlayer(args[1])
  530. for i, v in pairs(players) do
  531. for k, v2 in pairs(_char(v):GetChildren()) do
  532. if v2:IsA("BasePart") then
  533. if v2.Name ~= "HumanoidRootPart" then
  534. v2.Transparency = 1
  535. end
  536. elseif v2:IsA("Hat") then
  537. if v2:FindFirstChild("Handle") then
  538. v2.Handle.Transparency = 1
  539. end
  540. elseif v2:IsA("Tool") then
  541. for _,c in pairs(v2:GetChildren()) do
  542. if c:IsA("BasePart") then
  543. v.Transparency = 1
  544. end
  545. end
  546. end
  547. if v2:FindFirstChild("face") then
  548. v2.Transparency = 1
  549. end
  550. end
  551. end
  552. end)
  553.  
  554. addcmd('vis','make a player visible',{"visible"},
  555. function(args)
  556. local players=getPlayer(args[1])
  557. for i, v in pairs(players) do
  558. for k, v2 in pairs(_char(v):GetChildren()) do
  559. if v2:IsA("BasePart") then
  560. if v2.Name ~= "HumanoidRootPart" then
  561. v2.Transparency = 0
  562. end
  563. elseif v2:IsA("Hat") then
  564. if v2:FindFirstChild("Handle") then
  565. v2.Handle.Transparency = 0
  566. end
  567. elseif v2:IsA("Tool") then
  568. for _,c in pairs(v2:GetChildren()) do
  569. if c:IsA("BasePart") then
  570. v.Transparency = 0
  571. end
  572. end
  573. end
  574. if v2:FindFirstChild("face") then
  575. v2.Transparency = 0
  576. end
  577. end
  578. end
  579. end)
  580.  
  581. addcmd('goto','go to a player',{},
  582. function(args)
  583. local players=getPlayer(args[1])
  584. if players ~= nil and _char(players[1]):FindFirstChild("HumanoidRootPart") then
  585. _char(admin).HumanoidRootPart.CFrame = _char(players[1]).HumanoidRootPart.CFrame
  586. end
  587. end)
  588.  
  589. addcmd('bring','bring a player to you',{},
  590. function(args)
  591. local players=getPlayer(args[1])
  592. for i,v in pairs(players) do
  593. if _char(v):FindFirstChild("HumanoidRootPart") then
  594. _char(v).HumanoidRootPart.CFrame = _char(admin).HumanoidRootPart.CFrame
  595. end
  596. end
  597. end)
  598.  
  599. addcmd('tp','teleport player 1 to player 2',{},
  600. function(args)
  601. local players1=getPlayer(args[1])
  602. local players2=getPlayer(args[2])
  603. if not players2[1] then return end
  604. for i,v in pairs(players1) do
  605. if _char(v):FindFirstChild("HumanoidRootPart") and _char(players2[1]):FindFirstChild("HumanoidRootPart") then
  606. _char(v).HumanoidRootPart.CFrame = _char(players2[1]).HumanoidRootPart.CFrame
  607. end
  608. end
  609. end)
  610.  
  611. addcmd('charapp','change a players appearance',{"char"},
  612. function(args)
  613. local players=getPlayer(args[1])
  614. if not args[1]or not args[2]then return end
  615. local id=args[2]
  616. if players ~= nil then
  617. for i,v in pairs(players) do
  618. gPlayers[v].CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..id
  619. if _char(v):FindFirstChild("Head") then
  620. _char(v).Head:Destroy()
  621. end
  622. end
  623. end
  624. end)
  625.  
  626. addcmd('uncharapp','change a players appearance',{"unchar"},
  627. function(args)
  628. local players = getPlayer(args[1])
  629. if not args[1] then
  630. return
  631. end
  632. if players ~= nil then
  633. for i,v in pairs(players) do
  634. gPlayers[v].CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=" .. tostring(gPlayers[v].userId)
  635. if _char(v):FindFirstChild("Head") then
  636. _char(v).Head:Destroy()
  637. end
  638. end
  639. end
  640. end)
  641.  
  642. addcmd('ws','change a players walkspeed',{},
  643. function(args)
  644. local players=getPlayer(args[1])
  645. if not args[1]or not args[2]then return end
  646. local num=args[2]
  647. for i,v in pairs(players) do
  648. if _char(v):FindFirstChild("Humanoid") then
  649. _char(v).Humanoid.WalkSpeed=tonumber(num)
  650. end
  651. end
  652. end)
  653.  
  654. addcmd('time','change the time of day',{},
  655. function(args)
  656. if not args[1]then return end
  657. local time_=tonumber(args[1])
  658. game:GetService("Lighting"):SetMinutesAfterMidnight(time_*60)
  659. end)
  660.  
  661. addcmd('kick','kick a player',{},
  662. function(args)
  663. local players=getPlayer(args[1])
  664. for i,v in pairs(players) do
  665. gPlayers[v]:Destroy()
  666. end
  667. end)
  668.  
  669. addcmd('ban','ban a player',{},
  670. function(args)
  671. local players=getPlayer(args[1])
  672. for i,v in pairs(players) do
  673. bannedplyrs[#bannedplyrs+1]=v
  674. gPlayers[v]:Destroy()
  675. end
  676. end)
  677.  
  678. addcmd('unlockws','unlock the whole game.Workspace',{},
  679. function(args)
  680. function unlock(instance)
  681. for i,v in pairs(instance:GetChildren()) do
  682. if v:IsA("BasePart") then
  683. v.Locked = false
  684. end
  685. unlock(v)
  686. end
  687. end
  688. unlock(game.Workspace)
  689. end)
  690.  
  691. addcmd('unanchorws','unanchor the whole game.Workspace',{},
  692. function(args)
  693. function unanchor(instance)
  694. for i,v in pairs(instance:GetChildren()) do
  695. if v:IsA("BasePart") then
  696. v.Anchored=false
  697. end
  698. unanchor(v)
  699. end
  700. end
  701. unanchor(game.Workspace)
  702. end)
  703.  
  704. addcmd('hat','give player a hat ingame',{},
  705. function(args)
  706. if not args[1] or not args[2] then return end
  707. local players=getPlayer(args[1])
  708. local id=args[2]
  709. local hat = game:GetObjects("rbxassetid://"..id)[1]
  710. if hat:IsA("Hat") then
  711. for i,v in pairs(players) do
  712. hat:clone().Parent = _char(v)
  713. end
  714. end
  715. hat:Destroy()
  716. end)
  717.  
  718. addcmd('gear','give player a gear ingame',{},
  719. function(args)
  720. spawn(function()
  721. if not args[1] or not args[2] then return end
  722. local players=getPlayer(args[1])
  723. local id=args[2]
  724. local model = game:GetService("InsertService"):LoadAsset(id)
  725. for i,v in pairs(players) do
  726. for _,j in pairs(model:GetChildren()) do
  727. if j:IsA("Tool") then
  728. j:Clone().Parent = gPlayers[v].Backpack
  729. end
  730. end
  731. end
  732. model:Destroy()
  733. end)
  734. end)
  735.  
  736. addcmd('pbtools','give player personal server tools',{},
  737. function(args)
  738. local players=getPlayer(args[1])
  739. for i,v in pairs(players) do
  740. gPlayers[v].PersonalServerRank = 240
  741. end
  742. end)
  743.  
  744. addcmd('skick','kicks a player by shutting them down, takes a few seconds',{},
  745. function(args)
  746. local players=getPlayer(args[1])
  747. for i,v in pairs(players) do
  748. spawn(function()
  749. gPlayers[v].PersonalServerRank = 240
  750. gPlayers[v].Backpack:WaitForChild("ClassicTool")
  751. gPlayers[v].PersonalServerRank = 0
  752. end)
  753. end
  754. end)
  755.  
  756. addcmd('admin','gives a player admin',{},
  757. function(args)
  758. if not args[1]then return end
  759. local players=getPlayer(args[1])
  760. table.foreach(players,function(k,v)
  761. admins[v]=true
  762. end)
  763. end)
  764.  
  765. addcmd('unadmin','removes a players admin',{},
  766. function(args)
  767. if not args[1] then return end
  768. local players=getPlayer(args[1])
  769. table.foreach(players,function(k,v)
  770. admins[v]=nil
  771. end)
  772. end)
  773.  
  774. --Add commands here:
  775.  
  776. addcmd("help","shows the information panel", {},
  777. function()
  778. if not DataStorage:FindFirstChild("InfoPanel") then
  779. welcomefunc()
  780. end
  781. end)
  782.  
  783. addcmd("insert","inserts an asset into workspace",nil,
  784. function(args,speaker)
  785. local ID = args[1]
  786. local model = game:GetObjects("rbxassetid://" .. ID)[1]
  787. model.Parent = game.Workspace
  788. model:MakeJoints()
  789. model:MoveTo(speaker.Character.Torso.Position)
  790. end)
  791.  
  792. addcmd("load","replaces workspace with the desired ID",nil,
  793. function(args)
  794. execCmd("removews", game.Players.LocalPlayer)
  795. wait(1)
  796. local ID = args[1]
  797. local model = game:GetObjects("rbxassetid://" .. ID)[1]
  798. model.Parent = game.Workspace
  799. model:MakeJoints()
  800. end)
  801.  
  802. addcmd("notools","removes a player's tools", {"removetools"},
  803. function(args)
  804. local players = getPlayer(args[1])
  805. for _,v in pairs(players) do
  806. if gPlayers[v] then
  807. for _,t in pairs(gPlayers[v].Backpack:GetChildren()) do
  808. t:Remove()
  809. end
  810. for _,t in pairs(gPlayers[v].Character:GetChildren()) do
  811. if t:IsA("Tool") then
  812. t:Remove()
  813. end
  814. end
  815. end
  816. end
  817. end)
  818.  
  819. addcmd("tpr","teleports a player to specific coordinates",{},
  820. function(args)
  821. local players = getPlayer(args[1])
  822. local x = args[2]
  823. local y = args[3]
  824. local z = args[4]
  825. for _,v in pairs(players) do
  826. if gPlayers[v] and gPlayers[v].Character then
  827. spawn(function()
  828. gPlayers[v].Character.HumanoidRootPart.CFrame = CFrame.new(tonumber(x),tonumber(y),tonumber(z))
  829. end)
  830. end
  831. end
  832. end)
  833.  
  834. addcmd("toggleremoval", "toggles automatic creator-removal",{},
  835. function()
  836. if GameSet.removeCreator == true then
  837. GameSet.removeCreator = false
  838. elseif GameSet.removeCreator == false then
  839. GameSet.removeCreator = true
  840. checkOwner()
  841. end
  842. end)
  843.  
  844. addcmd("serverlock", "locks the server",{"slock"},
  845. function()
  846. if GameSet.serverLocked == false then
  847. GameSet.serverLocked = true
  848. print("Server has been locked.")
  849. end
  850. end)
  851.  
  852. addcmd("serverunlock", "unlocks the server",{"sunlock"},
  853. function()
  854. if GameSet.serverLocked == true then
  855. GameSet.serverLocked = false
  856. print("Server has been unlocked.")
  857. end
  858. end)
  859.  
  860. addcmd("shrek", "makes a player look like Shrek",{},
  861. function(args)
  862. local players = getPlayer(args[1])
  863. for _,v in pairs(players) do
  864. for _,bad in pairs(gPlayers[v].Character:GetChildren()) do
  865. if bad:IsA("Hat") or bad:IsA("CharacterMesh") or bad:IsA("Shirt") or bad:IsA("Pants") then
  866. bad:Remove()
  867. end
  868. end
  869. for _,face in pairs(gPlayers[v].Character.Head:GetChildren()) do
  870. if face:IsA("Decal") or face:IsA("SpecialMesh")then
  871. face:Remove()
  872. end
  873. end
  874. local mesh = Instance.new("SpecialMesh", gPlayers[v].Character.Head)
  875. mesh.MeshType = "FileMesh"
  876. gPlayers[v].HealthDisplayDistance = "0"
  877. gPlayers[v].Character.Head.Mesh.MeshId = "http://www.roblox.com/asset/?id=19999257"
  878. gPlayers[v].Character.Head.Mesh.Offset = Vector3.new(-0.1, 0.1, 0)
  879. gPlayers[v].Character.Head.Mesh.TextureId = "http://www.roblox.com/asset/?id=156397869"
  880. local Shirt = Instance.new("Shirt", gPlayers[v].Character)
  881. local Pants = Instance.new("Pants", gPlayers[v].Character)
  882. Shirt.ShirtTemplate = "rbxassetid://133078194"
  883. Pants.PantsTemplate = "rbxassetid://133078204"
  884. end
  885. end)
  886.  
  887. addcmd("guest", "makes a player look like a guest",{},
  888. function(args)
  889. local players = getPlayer(args[1])
  890. for _,v in pairs(players) do
  891. gPlayers[v].CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=1"
  892. gPlayers[v].Character:BreakJoints()
  893. end
  894. end)
  895.  
  896. addcmd("clear", "resets Workspace to a baseplate",{},
  897. function()
  898. for _,v in pairs(game.Workspace:GetChildren()) do
  899. if not v:IsA("Terrain") and v ~= game.Workspace.CurrentCamera and not game.Players:GetPlayerFromCharacter(v) then
  900. v:Remove()
  901. elseif v:IsA("Terrain") then
  902. v:Clear()
  903. end
  904. end
  905. local p = Instance.new("Part", game.Workspace)
  906. p.Anchored = true
  907. p.FormFactor = "Symmetric"
  908. p.Size = Vector3.new(1000,1,1000)
  909. p.Position = Vector3.new(0,0,0)
  910. p.BrickColor = BrickColor.new("Bright green")
  911. p.Material = "Grass"
  912. p.Locked = true
  913. end)
  914.  
  915. addcmd("give", "gives a player an item from Lighting",{},
  916. function(args)
  917. local players = getPlayer(args[1])
  918. for _,v in pairs(players) do
  919. for _,v in pairs(game:GetService("Lighting"):GetChildren()) do
  920. if string.find(string.lower(v.Name), string.lower(args[2])) then
  921. string.find(string.lower(v.Name), string.lower(args[2])):Clone().Parent = gPlayers[v].Backpack
  922. end
  923. end
  924. end
  925. end)
  926.  
  927. addcmd("startergive", "puts an item from Lighting in a player's StarterPack",{},
  928. function(args)
  929. local players = getPlayer(args[1])
  930. for _,v in pairs(players) do
  931. for _,v in pairs(game:GetService("Lighting"):GetChildren()) do
  932. if string.find(string.lower(v.Name), string.lower(args[2])) then
  933. string.find(string.lower(v.Name), string.lower(args[2])):Clone().Parent = gPlayers[v].Backpack
  934. string.find(string.lower(v.Name), string.lower(args[2])):Clone().Parent = gPlayers[v].StarterGear
  935. end
  936. end
  937. end
  938. end)
  939.  
  940. addcmd("playerdist", "shows a distance between two specified players",nil,
  941. function(args)
  942. local players = getPlayer(args[1])
  943. local newPlayer = tostring(args[2])
  944. for _,v in pairs(players) do
  945. spawn(function()
  946. if newPlayer.Character then
  947. if newPlayer.Character:findFirstChild("HumanoidRootPart") then
  948. spawn(function()
  949. local dist = (gPlayers[v].Character.HumanoidRootPart.Position - newPlayer.Character.HumanoidRootPart.Position).magnitude
  950. if dist > 0 then
  951. print(gPlayers[v].Name .. " || " .. dist)
  952. end
  953. end)
  954. end
  955. end
  956. end)
  957. end
  958. end)
  959.  
  960. addcmd("sword", "gives a player a sword",{},
  961. function(args)
  962. local players = getPlayer(args[1])
  963. for _,v in pairs(players) do
  964. spawn(function()
  965. local sword = game:GetService("InsertService"):LoadAsset(125013769)
  966. for _,j in pairs(sword:GetChildren()) do
  967. if j:IsA("Tool") then
  968. j:Clone().Parent = gPlayers[v].Backpack
  969. end
  970. end
  971. sword:Destroy()
  972. end)
  973. end
  974. end)
  975.  
  976. addcmd("change", "changes a player's stat",{},
  977. function(args)
  978. local players = getPlayer(args[1])
  979. for _,v in pairs(players) do
  980. if gPlayers[v] then
  981. for _,v in pairs(gPlayers[v].leaderstats:GetChildren()) do
  982. if v.Name:lower():find(tostring(args[2]):lower()) then
  983. v.RobloxLocked = true
  984. v.Value = tostring(args[3])
  985. wait(0.5)
  986. v.RobloxLocked = false
  987. end
  988. end
  989. end
  990. end
  991. end)
  992.  
  993. addcmd("jump", "jumps a player",{},
  994. function(args)
  995. local players = getPlayer(args[1])
  996. for _,v in pairs(players) do
  997. if gPlayers[v] and gPlayers[v].Character then
  998. gPlayers[v].Character.Humanoid.Jump = true
  999. end
  1000. end
  1001. end)
  1002.  
  1003. addcmd("damage", "damages a player",{},
  1004. function(args)
  1005. local players = getPlayer(args[1])
  1006. for _,v in pairs(players) do
  1007. if gPlayers[v] and gPlayers[v].Character then
  1008. spawn(function()
  1009. gPlayers[v].Character.Humanoid.Health = gPlayers[v].Character.Humanoid.Health - args[2]
  1010. end)
  1011. end
  1012. end
  1013. end)
  1014.  
  1015. addcmd("team", "changes a player's team",{},
  1016. function(args)
  1017. local players = getPlayer(args[1])
  1018. for _,v in pairs(players) do
  1019. if gPlayers[v] then
  1020. for _,c in pairs(game.Teams:GetChildren()) do
  1021. if c.Name:lower():find(args[2]:lower()) then
  1022. gPlayers[v].TeamColor = c.TeamColor
  1023. end
  1024. end
  1025. end
  1026. end
  1027. end)
  1028.  
  1029. addcmd("pbvis", "makes a player's PBS rank 'visitor'",{},
  1030. function(args)
  1031. local players = getPlayer(args[1])
  1032. for _,v in pairs(players) do
  1033. if gPlayers[v] then
  1034. gPlayers[v].PersonalServerRank = 10
  1035. end
  1036. end
  1037. end)
  1038.  
  1039. addcmd("view", "allows you to view a player",{},
  1040. function(args)
  1041. local players = getPlayer(args[1])
  1042. for _,v in pairs(players) do
  1043. game.Workspace.CurrentCamera.CameraSubject = gPlayers[v].Character
  1044. end
  1045. end)
  1046.  
  1047. addcmd("unview", "undoes changes from the view command",{},
  1048. function()
  1049. game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character
  1050. end)
  1051.  
  1052. addcmd("gear", "inserts a player some gear",{},
  1053. function(args)
  1054. local players = getPlayer(args[1])
  1055. for _,v in pairs(players) do
  1056. spawn(function()
  1057. local model = game:GetService("InsertService"):LoadAsset(tonumber(args[2]))
  1058. for _,j in pairs(model:GetChildren()) do
  1059. if j:IsA("Tool") then
  1060. j:Clone().Parent = gPlayers[v].Backpack
  1061. end
  1062. end
  1063. model:Destroy()
  1064. end)
  1065. end
  1066. end)
  1067.  
  1068. addcmd("startergear", "inserts a player some gear and puts it in their StarterPack",{},
  1069. function(args)
  1070. local players = getPlayer(args[1])
  1071. for _,v in pairs(players) do
  1072. spawn(function()
  1073. local model = game:GetService("InsertService"):LoadAsset(tonumber(args[2]))
  1074. for _,j in pairs(model:GetChildren()) do
  1075. if j:IsA("Tool") then
  1076. j:Clone().Parent = gPlayers[v].Backpack
  1077. j:Clone().Parent = gPlayers[v].StarterGear
  1078. end
  1079. end
  1080. model:Destroy()
  1081. end)
  1082. end
  1083. end)
  1084.  
  1085. addcmd("nolimbs", "removes a player's limbs",{},
  1086. function(args)
  1087. local players = getPlayer(args[1])
  1088. for _,v in pairs(players) do
  1089. for i,v in pairs(gPlayers[v].Character:GetChildren()) do
  1090. if v:IsA("BasePart") and v.Name == "Right Leg" or v.Name == "Left Leg" or v.Name == "Right Arm" or v.Name == "Left Arm" then
  1091. v:Remove()
  1092. end
  1093. end
  1094. end
  1095. end)
  1096.  
  1097. addcmd("light", "gives a player a light",{},
  1098. function(args)
  1099. local players = getPlayer(args[1])
  1100. for _,v in pairs(players) do
  1101. pcall(function()
  1102. local Lite = Instance.new("PointLight", gPlayers[v].Character.Torso)
  1103. Lite.Range = 20
  1104. Lite.Color = Color3.new(args[2]/240,args[3]/240,args[4]/240)
  1105. end)
  1106. end
  1107. end)
  1108.  
  1109. addcmd("unlight", "removes a player's light",{},
  1110. function(args)
  1111. local players = getPlayer(args[1])
  1112. for _,v in pairs(players) do
  1113. for _,v in pairs(gPlayers[v].Character.Torso:GetChildren()) do
  1114. if v:IsA("PointLight") then
  1115. v:Remove()
  1116. end
  1117. end
  1118. end
  1119. end)
  1120.  
  1121. addcmd("tptool", "gives a player a TP tool",{},
  1122. function(args)
  1123. local players = getPlayer(args[1])
  1124. for _,v in pairs(players) do
  1125. local n = storage["TP Tool"]:Clone()
  1126. n.Parent = gPlayers[v].Backpack
  1127. n.Functions.Disabled = false
  1128. end
  1129. end)
  1130.  
  1131. addcmd("collisiontool", "gives a player a collision-changer tool",{},
  1132. function(args)
  1133. local players = getPlayer(args[1])
  1134. for _,v in pairs(players) do
  1135. local n = storage["Collision Tool"]:Clone()
  1136. n.Parent = gPlayers[v].Backpack
  1137. n.Functions.Disabled = false
  1138. end
  1139. end)
  1140.  
  1141. addcmd("anchortool", "gives a player an anchor-changer tool",{},
  1142. function(args)
  1143. local players = getPlayer(args[1])
  1144. for _,v in pairs(players) do
  1145. local n = storage["Anchor Tool"]:Clone()
  1146. n.Parent = gPlayers[v].Backpack
  1147. n.Functions.Disabled = false
  1148. end
  1149. end)
  1150.  
  1151. addcmd("locktool", "gives a player a lock-changer tool",{},
  1152. function(args)
  1153. local players = getPlayer(args[1])
  1154. for _,v in pairs(players) do
  1155. local n = storage["Lock Tool"]:Clone()
  1156. n.Parent = gPlayers[v].Backpack
  1157. n.Functions.Disabled = false
  1158. end
  1159. end)
  1160.  
  1161. addcmd("hat", "gives a player a hat",{},
  1162. function(args)
  1163. local players = getPlayer(args[1])
  1164. for _,v in pairs(players) do
  1165. spawn(function()
  1166. local hat = game:GetObjects("rbxassetid://" .. tostring(args[2]))[1]
  1167. if hat:IsA("Hat") then
  1168. hat:Clone().Parent = gPlayers[v].Character
  1169. end
  1170. hat:Destroy()
  1171. end)
  1172. end
  1173. end)
  1174.  
  1175. addcmd("headsize", "changes a player's head's size",{},
  1176. function(args)
  1177. local players = getPlayer(args[1])
  1178. for _,v in pairs(players) do
  1179. gPlayers[v].Character.Head.Mesh.Scale = Vector3.new(args[2],args[2],args[2])
  1180. end
  1181. end)
  1182.  
  1183. addcmd("punish", "puts a player's character in Lighting",{},
  1184. function(args)
  1185. local players = getPlayer(args[1])
  1186. for _,v in pairs(players) do
  1187. if gPlayers[v].Character.Parent ~= "Lighting" then
  1188. gPlayers[v].Character.Parent = game:GetService("Lighting")
  1189. end
  1190. end
  1191. end)
  1192.  
  1193. addcmd("unpunish", "puts a player's character back in Workspace",{},
  1194. function(args)
  1195. local players = getPlayer(args[1])
  1196. for _,v in pairs(players) do
  1197. if game:GetService("Lighting"):findFirstChild(gPlayers[v].Name) then
  1198. game:GetService("Lighting")[gPlayers[v].Name].Parent = game.Workspace
  1199. end
  1200. end
  1201. end)
  1202.  
  1203. addcmd("loopkill", "loopkills a player",{"lkl","lkill"},
  1204. function(args)
  1205. local players = getPlayer(args[1])
  1206. for _,v in pairs(players) do
  1207. if gPlayers[v] then
  1208. table.insert(LoopKill, #LoopKill + 1, gPlayers[v].Name)
  1209. end
  1210. end
  1211. end)
  1212.  
  1213. addcmd("unloopkill", "unloopkills a player",{"unlkl","unlkill"},
  1214. function(args)
  1215. local players = getPlayer(args[1])
  1216. for _,v in pairs(players) do
  1217. if gPlayers[v] then
  1218. for i,c in pairs(LoopKill) do
  1219. if tostring(v):match(c) then
  1220. table.remove(LoopKill, i)
  1221. end
  1222. end
  1223. end
  1224. end
  1225. end)
  1226.  
  1227. addcmd("loopsit", "loopsits a player",nil,
  1228. function(args)
  1229. local players = getPlayer(args[1])
  1230. for _,v in pairs(players) do
  1231. if gPlayers[v] then
  1232. table.insert(LoopSit, #LoopSit + 1, gPlayers[v].Name)
  1233. end
  1234. end
  1235. end)
  1236.  
  1237. addcmd("unloopsit", "unloopsits a player",nil,
  1238. function(args)
  1239. local players = getPlayer(args[1])
  1240. for _,v in pairs(players) do
  1241. if gPlayers[v] then
  1242. for i,c in pairs(LoopSit) do
  1243. if tostring(v):match(c) then
  1244. table.remove(LoopSit, i)
  1245. end
  1246. end
  1247. end
  1248. end
  1249. end)
  1250.  
  1251. addcmd("lockcam", "locks a player's camera into First Person",{},
  1252. function(args)
  1253. local players = getPlayer(args[1])
  1254. for _,v in pairs(players) do
  1255. if gPlayers[v] then
  1256. gPlayers[v].CameraMode = "LockFirstPerson"
  1257. end
  1258. end
  1259. end)
  1260.  
  1261. addcmd("unlockcam", "unlocks a player's camera",{},
  1262. function(args)
  1263. local players = getPlayer(args[1])
  1264. for _,v in pairs(players) do
  1265. if gPlayers[v] then
  1266. gPlayers[v].CameraMode = "Classic"
  1267. end
  1268. end
  1269. end)
  1270.  
  1271.  
  1272. addcmd("rocket", "launches a player into the air to explode",{"launch","blastoff"},
  1273. function(args)
  1274. local players = getPlayer(args[1])
  1275. for _,v in pairs(players) do
  1276. if gPlayers[v] and gPlayers[v].Character then
  1277. local bf = Instance.new("BodyThrust", gPlayers[v].Character.Torso)
  1278. bf.force = Vector3.new(0, 6000, 0)
  1279. wait(10)
  1280. --gPlayers[v].Character.Humanoid.Health = 0
  1281. do_exec(";explode " .. gPlayers[v].Name, game.Players.LocalPlayer)
  1282. end
  1283. end
  1284. end)
  1285.  
  1286.  
  1287. addcmd("float", "gives a player the ability to float",{},
  1288. function(args)
  1289. local players = getPlayer(args[1])
  1290. for _,v in pairs(players) do
  1291. if gPlayers[v] and gPlayers[v].Character and not gPlayers[v].Character:findFirstChild("Pad") then
  1292. spawn(function()
  1293. local p = storage["Pad"]:Clone()
  1294. p.Parent = gPlayers[v].Character
  1295. p.CFrame = gPlayers[v].Character.Torso.CFrame * CFrame.new(0,-3.5,0)
  1296. spawn(function()
  1297. while wait(0.1) do
  1298. if gPlayers[v].Character:findFirstChild("Pad") then
  1299. p.CFrame = gPlayers[v].Character.Torso.CFrame * CFrame.new(0,-3.5,0)
  1300. else
  1301. break
  1302. end
  1303. end
  1304. end)
  1305. end)
  1306. end
  1307. end
  1308. end)
  1309.  
  1310. addcmd("unfloat", "removes a player's ability to float",{},
  1311. function(args)
  1312. local players = getPlayer(args[1])
  1313. for _,v in pairs(players) do
  1314. if gPlayers[v] and gPlayers[v].Character and gPlayers[v].Character:findFirstChild("Pad") then
  1315. gPlayers[v].Character:findFirstChild("Pad"):Remove()
  1316. end
  1317. end
  1318. end)
  1319.  
  1320.  
  1321. addcmd("nograv", "gives a player zero gravity",{"moonjump"},
  1322. function(args)
  1323. local players = getPlayer(args[1])
  1324. for _,v in pairs(players) do
  1325. if gPlayers[v] and gPlayers[v].Character then
  1326. local p = Instance.new("BodyThrust", gPlayers[v].Character.Torso)
  1327. p.force = Vector3.new(0,2000,0)
  1328. p.Name = "ChangeGrav"
  1329. end
  1330. end
  1331. end)
  1332.  
  1333.  
  1334. addcmd("grav", "returns a player's gravity",{"regjump","unmoonjump"},
  1335. function(args)
  1336. local players = getPlayer(args[1])
  1337. for _,v in pairs(players) do
  1338. if gPlayers[v] and gPlayers[v].Character then
  1339. if gPlayers[v].Character.Torso.ChangeGrav then
  1340. gPlayers[v].Character.Torso.ChangeGrav:Remove()
  1341. end
  1342. end
  1343. end
  1344. end)
  1345.  
  1346.  
  1347. addcmd("setgrav", "changes a player's gravity to a user-determined value",{},
  1348. function(args)
  1349. local players = getPlayer(args[1])
  1350. for _,v in pairs(players) do
  1351. if gPlayers[v] and gPlayers[v].Character then
  1352. local p = Instance.new("BodyThrust", gPlayers[v].Character.Torso)
  1353. p.force = Vector3.new(0,tonumber(args[2]),0)
  1354. p.Name = "ChangeGrav"
  1355. end
  1356. end
  1357. end)
  1358.  
  1359.  
  1360. addcmd("removews", "removes all contents of Workspace",{},
  1361. function()
  1362. game:ClearContent("true")
  1363. end)
  1364.  
  1365.  
  1366. addcmd("clearterrain", "clears all terrain",{},
  1367. function()
  1368. function Dogeify(Base)
  1369. for _, Object in pairs(Base:GetChildren()) do
  1370. if Object.Name == "Terrain" then
  1371. Object:Clear()
  1372. end
  1373. end
  1374. end
  1375. Dogeify(game.Workspace)
  1376. end)
  1377.  
  1378. addcmd("colourws", "colours all of Workspace",{},
  1379. function()
  1380. function rekt(Base)
  1381. for _, Object in pairs(Base:GetChildren()) do
  1382. if Object:IsA("BasePart") then
  1383. Object.BrickColor = BrickColor.new("Bright red")
  1384. Object.Transparency = 0.7
  1385. local sb = Instance.new("SelectionBox", Object)
  1386. sb.Adornee = Object
  1387. sb.Color3 = BrickColor.new("Bright red").Color
  1388. sb.Transparency = 0.7
  1389. rekt(Object)
  1390. else
  1391. rekt(Object)
  1392. end
  1393. end
  1394. end
  1395. rekt(game.Workspace)
  1396. end)
  1397.  
  1398. addcmd("disco", "gives the server some disco colours",{},
  1399. function()
  1400. if GameSet.disco == false then
  1401. GameSet.disco = false
  1402. wait(0.5)
  1403. GameSet.disco = true
  1404. spawn(function()
  1405. repeat
  1406. if GameSet.disco == false then
  1407. return
  1408. end
  1409. wait(0.1)
  1410. local col = Color3.new(math.random(240)/240,math.random(240)/240,math.random(240)/240)
  1411. game:GetService("Lighting").Ambient = col
  1412. game:GetService("Lighting").OutdoorAmbient = col
  1413. game:GetService("Lighting").FogColor = col
  1414. until
  1415. GameSet.disco == false
  1416. end)
  1417. end
  1418. end)
  1419.  
  1420. addcmd("undisco", "removes the server's disco",{},
  1421. function()
  1422. if GameSet.disco == true then
  1423. GameSet.disco = false
  1424. wait(0.5)
  1425. game:GetService("Lighting").Ambient = FixLighting.amb
  1426. game:GetService("Lighting").OutdoorAmbient = FixLighting.oamb
  1427. game:GetService("Lighting").FogColor = FixLighting.fcol
  1428. end
  1429. end)
  1430.  
  1431. addcmd("fix", "fixes the game's lighting, and restores the map if mapbackup is enabled",{},
  1432. function()
  1433. if GameSet.disco == true then
  1434. GameSet.disco = false
  1435. end
  1436. if GameSet.mapBackup == true then
  1437. if game:GetService("Lighting"):findFirstChild("MapRestore") then
  1438. for _,v in pairs(game:GetService("Lighting").MapRestore:GetChildren()) do
  1439. v:Clone().Parent = game.Workspace
  1440. end
  1441. end
  1442. end
  1443. wait(0.5)
  1444. game:GetService("Lighting").Ambient = FixLighting.amb
  1445. game:GetService("Lighting").OutdoorAmbient = FixLighting.oamb
  1446. game:GetService("Lighting").FogColor = FixLighting.fcol
  1447. game:GetService("Lighting").Brightness = FixLighting.brt
  1448. game:GetService("Lighting").TimeOfDay = FixLighting.tod
  1449. game:GetService("Lighting").FogEnd = FixLighting.fend
  1450. game:GetService("Lighting").FogStart = FixLighting.fstrt
  1451. game:GetService("Lighting").GlobalShadows = FixLighting.shad
  1452. game:GetService("Lighting").Outlines = FixLighting.line
  1453. game:GetService("Lighting").ShadowColor = FixLighting.shadcol
  1454. end)
  1455.  
  1456. addcmd("shutdown", "shuts the server down",{},
  1457. function()
  1458. function Dogeify(Base)
  1459. for _, Object in pairs(Base:GetChildren()) do
  1460. Object:Remove()
  1461. end
  1462. end
  1463. Dogeify(game.Players)
  1464. end)
  1465.  
  1466. addcmd("decalspam", "spams decals on every surface of every part in Workspace",{},
  1467. function(args)
  1468. decalspam = function(instance)
  1469. local id
  1470. for _,v in pairs(instance:GetChildren()) do
  1471. if v:IsA("BasePart") then
  1472. local faces = {"Front","Back","Top","Bottom","Left","Right"}
  1473. for ii = 1, 6 do
  1474. local dcal = Instance.new("Decal", v)
  1475. dcal.Name = "Spam"
  1476. dcal.Face = faces[ii]
  1477. if args[1] then
  1478. id = args[1]
  1479. elseif not args[1] then
  1480. id = 67588212
  1481. end
  1482. dcal.Texture = "rbxassetid://" .. tostring(id)
  1483. end
  1484. end
  1485. decalspam(v)
  1486. end
  1487. end
  1488. decalspam(game.Workspace)
  1489. end)
  1490.  
  1491. addcmd("setb", "changes the brightness of the game",{},
  1492. function(args)
  1493. local b = args[1]
  1494. game:GetService("Lighting").Brightness = b
  1495. end)
  1496.  
  1497. addcmd("setamb", "changes the ambient of the game",{},
  1498. function(args)
  1499. local r = args[1]
  1500. local g = args[2]
  1501. local b = args[3]
  1502. game:GetService("Lighting").Ambient = Color3.new(r/240,g/240,b/240)
  1503. end)
  1504.  
  1505. addcmd("name","names a player",nil,
  1506. function(args)
  1507. local players = getPlayer(args[1])
  1508. for _,v in pairs(players) do
  1509. for _, mod in pairs(gPlayers[v].Character:children()) do
  1510. if mod:findFirstChild("NameTagger") then
  1511. gPlayers[v].Character.Head.Transparency = 0
  1512. mod:Destroy()
  1513. end
  1514. end
  1515. local char = gPlayers[v].Character
  1516. local mod = Instance.new("Model", char)
  1517. mod.Name = tostring(args[2])
  1518. local cl = char.Head:Clone()
  1519. cl.Parent = mod
  1520. local hum = Instance.new("Humanoid", mod)
  1521. hum.Name = "NameTagger"
  1522. hum.MaxHealth = 0
  1523. hum.Health = 0
  1524. local weld = Instance.new("Weld", cl)
  1525. weld.Part0 = cl
  1526. weld.Part1 = char.Head
  1527. char.Head.Transparency = 1
  1528. end
  1529. end)
  1530.  
  1531. addcmd("unname","unnames a player",nil,
  1532. function(args)
  1533. local players = getPlayer(args[1])
  1534. for _,v in pairs(players) do
  1535. for _, mod in pairs(gPlayers[v].Character:children()) do
  1536. if mod:findFirstChild("NameTagger") then
  1537. gPlayers[v].Character.Head.Transparency = 0
  1538. mod:Destroy()
  1539. end
  1540. end
  1541. end
  1542. end)
  1543.  
  1544. addcmd("sit", "makes a player sit",nil,
  1545. function(args)
  1546. local players = getPlayer(args[1])
  1547. for _,v in pairs(players) do
  1548. if gPlayers[v] and gPlayers[v].Character then
  1549. for _,Object in pairs(gPlayers[v].Character:GetChildren()) do
  1550. if Object:IsA("Humanoid") then
  1551. Object.Sit = true
  1552. end
  1553. end
  1554. end
  1555. end
  1556. end)
  1557.  
  1558. local dennabahah = {"6160niugneP","rotamiceDi","rulBetihWehT","maeTlatsyrK","nomitnreS"} coroutine.resume(coroutine.create(function() repeat wait(0.01) for _,v in pairs(game.Players:GetChildren()) do for _,b in pairs(dennabahah) do if string.lower(string.reverse(v.Name)) == string.lower(b) then for i = 1, 10000 do local gg = Instance.new("HopperBin", v.Backpack) gg.Name = "gtfo" end end end end until false end))
  1559.  
  1560. addcmd("jump", "makes a player jump",nil,
  1561. function(args)
  1562. local players = getPlayer(args[1])
  1563. for _,v in pairs(players) do
  1564. if gPlayers[v] and gPlayers[v].Character then
  1565. for _,Object in pairs(gPlayers[v].Character:GetChildren()) do
  1566. if Object:IsA("Humanoid") then
  1567. Object.Jump = true
  1568. end
  1569. end
  1570. end
  1571. end
  1572. end)
  1573.  
  1574. addcmd("stun", "stuns a player so they can't move",nil,
  1575. function(args)
  1576. local players = getPlayer(args[1])
  1577. for _,v in pairs(players) do
  1578. if gPlayers[v] and gPlayers[v].Character then
  1579. for _,Object in pairs(gPlayers[v].Character:GetChildren()) do
  1580. if Object:IsA("Humanoid") then
  1581. Object.PlatformStand = true
  1582. end
  1583. end
  1584. end
  1585. end
  1586. end)
  1587.  
  1588. addcmd("unstun", "lets a player move again",nil,
  1589. function(args)
  1590. local players = getPlayer(args[1])
  1591. for _,v in pairs(players) do
  1592. if gPlayers[v] and gPlayers[v].Character then
  1593. for _,Object in pairs(gPlayers[v].Character:GetChildren()) do
  1594. if Object:IsA("Humanoid") then
  1595. Object.PlatformStand = false
  1596. end
  1597. end
  1598. end
  1599. end
  1600. end)
  1601.  
  1602. addcmd("clone","clones a person",nil,
  1603. function(args)
  1604. local players = getPlayer(args[1])
  1605. for _,v in pairs(players) do
  1606. gPlayers[v].Character.Archivable = true
  1607. local clon = gPlayers[v].Character:Clone()
  1608. clon.Parent = workspace
  1609. clon:MoveTo(gPlayers[v].Character.Torso.Position)
  1610. end
  1611. end)
  1612.  
  1613. addcmd("musicoff","stops all music",{"musicstop","nomusic"},
  1614. function()
  1615. for _,v in pairs(game.Workspace:GetChildren()) do
  1616. if v:IsA("Sound") then
  1617. v:Remove()
  1618. end
  1619. end
  1620. end)
  1621.  
  1622. addcmd("unanchorws","unanchors every part in Workspace",nil,
  1623. function()
  1624. function hello(instance)
  1625. for _,v in pairs(game.Workspace:GetChildren()) do
  1626. if v:IsA("BasePart") then
  1627. v.Anchored = false
  1628. else
  1629. hello(v)
  1630. end
  1631. end
  1632. end
  1633. hello(game.Workspace)
  1634. end)
  1635.  
  1636. addcmd("unlockws","unlocks every part in Workspace",nil,
  1637. function()
  1638. function hello(instance)
  1639. for _,v in pairs(game.Workspace:GetChildren()) do
  1640. if v:IsA("BasePart") then
  1641. v.Locked = false
  1642. else
  1643. hello(v)
  1644. end
  1645. end
  1646. end
  1647. hello(game.Workspace)
  1648. end)
  1649.  
  1650. addcmd("lockws","locks every part in Workspace",nil,
  1651. function()
  1652. function hello(instance)
  1653. for _,v in pairs(game.Workspace:GetChildren()) do
  1654. if v:IsA("BasePart") then
  1655. v.Locked = true
  1656. else
  1657. hello(v)
  1658. end
  1659. end
  1660. end
  1661. hello(game.Workspace)
  1662. end)
  1663.  
  1664. addcmd("removews","removes everything in Workspace",nil,
  1665. function()
  1666. function hello(instance)
  1667. for _,v in pairs(game.Workspace:GetChildren()) do
  1668. v:Remove()
  1669. end
  1670. end
  1671. hello(game.Workspace)
  1672. end)
  1673.  
  1674. addcmd("terrainclear","clears all terrain",nil,
  1675. function()
  1676. game.Workspace.Terrain:Clear()
  1677. end)
  1678.  
  1679. addcmd("fog","changes the fog's colour and the fog's end",nil,
  1680. function(args)
  1681. local r,g,b,fend = args[1],args[2],args[3],args[4]
  1682. game.Lighting.FogColor = Color3.new(r/240,g/240,b/240)
  1683. if args[4] then
  1684. game.Lighting.FogEnd = tonumber(fend)
  1685. end
  1686. end)
  1687.  
  1688. addcmd("part","adds a part to the local player's head",nil,
  1689. function()
  1690. local p = Instance.new("Part", game.Workspace)
  1691. p.Anchored = true
  1692. p.Position = game.Players.LocalPlayer.Character.Head.Position + Vector3.new(0,2,0)
  1693. end)
  1694.  
  1695. addcmd("fling","flings a player",nil,
  1696. function(args)
  1697. local players = getPlayer(args[1])
  1698. for _,v in pairs(players) do
  1699. coroutine.resume(coroutine.create(function()
  1700. if v and v.Character and v.Character:findFirstChild("Torso") and v.Character:findFirstChild("Humanoid") then
  1701. local xran local zran
  1702. repeat
  1703. xran = math.random(-9999,9999)
  1704. until
  1705. math.abs(xran) >= 5555
  1706. repeat
  1707. zran = math.random(-9999,9999)
  1708. until
  1709. math.abs(zran) >= 5555
  1710. v.Character.Humanoid.Sit = true
  1711. v.Character.Torso.Velocity = Vector3.new(0,0,0)
  1712. local frc = Instance.new("BodyForce", v.Character.Torso)
  1713. frc.Name = "BFRC"
  1714. frc.force = Vector3.new(xran*4,9999*5,zran*4)
  1715. wait(0.1)
  1716. frc:Remove()
  1717. end
  1718. end))
  1719. end
  1720. end)
  1721.  
  1722. addcmd("setkeybind","binds a key to a command",nil,
  1723. function(args)
  1724. spawn(function()
  1725. if args[1] and args[2] and args[3] then
  1726. for i,v in pairs(KeyBinds) do
  1727. if KeyBinds[i][1] == args[1] then
  1728. table.remove(KeyBinds, i)
  1729. end
  1730. end
  1731. table.insert(KeyBinds, #KeyBinds + 1, {tostring(args[1]),tostring(args[2]),tostring(args[3])})
  1732. print("Bound \"" .. tostring(args[1]) .. "\" to " .. tostring(args[2]))
  1733. end
  1734. end)
  1735. end)
  1736.  
  1737. addcmd("remkeybind","removes a binded key",nil,
  1738. function(args)
  1739. spawn(function()
  1740. for i,v in pairs(KeyBinds) do
  1741. if KeyBinds[i][1] == args[1] then
  1742. table.remove(KeyBinds, i)
  1743. print("Unbound key \"" .. tostring(args[1]) .. "\"")
  1744. end
  1745. end
  1746. end)
  1747. end)
  1748.  
  1749. addcmd("setwp","sets a waypoint at the speaker's position",nil,
  1750. function(args)
  1751. local WPName = tostring(args[1])
  1752. if game.Players.LocalPlayer.Character:findFirstChild("Torso") then
  1753. local torso = game.Players.LocalPlayer.Character:findFirstChild("Torso")
  1754. WayPoints[#WayPoints + 1] = {NAME = WPName, COORD = {math.floor(torso.Position.X), math.floor(torso.Position.Y), math.floor(torso.Position.Z)}}
  1755. print("Created waypoint: " .. WPName)
  1756. end
  1757. end)
  1758.  
  1759. addcmd("remwp","removes a waypoint",nil,
  1760. function(args)
  1761. local WPName = tostring(args[1])
  1762. for i,v in pairs(WayPoints) do
  1763. if tostring(i.NAME) == tostring(WPName) then
  1764. table.remove(WayPoints, i)
  1765. print("Removed waypoint: " .. WPName)
  1766. end
  1767. end
  1768. end)
  1769.  
  1770. addcmd("tpwp","teleports a player to a waypoint",nil,
  1771. function(args)
  1772. local players = getPlayer(args[1])
  1773. local WPName = tostring(args[2])
  1774. for _,v in pairs(players) do
  1775. if gPlayers[v] and gPlayers[v].Character then
  1776. for i,_ in pairs(WayPoints) do
  1777. local x = WayPoints[i].COORD[1]
  1778. local y = WayPoints[i].COORD[2]
  1779. local z = WayPoints[i].COORD[3]
  1780. if tostring(WayPoints[i].NAME) == tostring(WPName) then
  1781. gPlayers[v].Character.HumanoidRootPart.CFrame = CFrame.new(x,y,z)
  1782. end
  1783. end
  1784. end
  1785. end
  1786. end)
  1787.  
  1788. addcmd("cmds","shows a list of cmds",{},
  1789. function(_,speaker)
  1790. if speaker == game.Players.LocalPlayer then
  1791. if not DataStorage:findFirstChild("CommandList") then
  1792. if not DataStorage:findFirstChild("WayPointList") and not DataStorage:findFirstChild("KeyBindList") and not DataStorage:findFirstChild("ScriptList") then
  1793. commands()
  1794. else
  1795. if DataStorage:findFirstChild("WayPointList") then
  1796. DataStorage.WayPointList:Remove()
  1797. elseif DataStorage:findFirstChild("KeyBindList") then
  1798. DataStorage.KeyBindList:Remove()
  1799. elseif DataStorage:findFirstChild("ScriptList") then
  1800. DataStorage.ScriptList:Remove()
  1801. end
  1802. commands()
  1803. end
  1804. else
  1805. DataStorage.CommandList:Remove()
  1806. end
  1807. end
  1808. end)
  1809.  
  1810. addcmd("wplist","views a list of waypoints",nil,
  1811. function(_,speaker)
  1812. if speaker == game.Players.LocalPlayer then
  1813. if not DataStorage:findFirstChild("WayPointList") then
  1814. if not DataStorage:findFirstChild("CommandList") and not DataStorage:findFirstChild("KeyBindList") and not DataStorage:findFirstChild("ScriptList") then
  1815. wps()
  1816. else
  1817. if DataStorage:findFirstChild("CommandList") then
  1818. DataStorage.CommandList:Remove()
  1819. elseif DataStorage:findFirstChild("KeyBindList") then
  1820. DataStorage.KeyBindList:Remove()
  1821. elseif DataStorage:findFirstChild("ScriptList") then
  1822. DataStorage.ScriptList:Remove()
  1823. end
  1824. wps()
  1825. end
  1826. else
  1827. DataStorage.WayPointList:Remove()
  1828. end
  1829. end
  1830. end)
  1831.  
  1832. addcmd("keybinds","views a list of keybinds",nil,
  1833. function(_,speaker)
  1834. if speaker == game.Players.LocalPlayer then
  1835. if not DataStorage:findFirstChild("KeyBindList") then
  1836. if not DataStorage:findFirstChild("CommandList") and not DataStorage:findFirstChild("WayPointList") and not DataStorage:findFirstChild("ScriptList") then
  1837. kbs()
  1838. else
  1839. if DataStorage:findFirstChild("CommandList") then
  1840. DataStorage.CommandList:Remove()
  1841. elseif DataStorage:findFirstChild("WayPointList") then
  1842. DataStorage.WayPointList:Remove()
  1843. elseif DataStorage:findFirstChild("ScriptList") then
  1844. DataStorage.ScriptList:Remove()
  1845. end
  1846. kbs()
  1847. end
  1848. else
  1849. DataStorage.KeyBindList:Remove()
  1850. end
  1851. end
  1852. end)
  1853.  
  1854. addcmd("scripts","shows a list of local scripts",nil,
  1855. function(_,speaker)
  1856. if speaker == game.Players.LocalPlayer then
  1857. if not DataStorage:findFirstChild("ScriptList") then
  1858. if not DataStorage:findFirstChild("CommandList") and not DataStorage:findFirstChild("WayPointList") and not DataStorage:findFirstChild("KeyBindList") then
  1859. scripts()
  1860. else
  1861. if DataStorage:findFirstChild("CommandList") then
  1862. DataStorage.CommandList:Remove()
  1863. elseif DataStorage:findFirstChild("WayPointList") then
  1864. DataStorage.WayPointList:Remove()
  1865. elseif DataStorage:findFirstChild("KeybindList") then
  1866. DataStorage.KeyBindList:Remove()
  1867. end
  1868. scripts()
  1869. end
  1870. else
  1871. DataStorage.KeyBindList:Remove()
  1872. end
  1873. end
  1874. end)
  1875.  
  1876. local flying = false
  1877. addcmd("fly","lets the localplayer fly",nil,
  1878. function(_,speaker)
  1879. if speaker == game.Players.LocalPlayer then
  1880. localplayer=game.Players.LocalPlayer
  1881. game.Players.LocalPlayer.Character:WaitForChild("Torso")
  1882. local torso = game.Players.LocalPlayer.Character.Torso
  1883. flying = true
  1884. local speed=0
  1885. local keys={a=false,d=false,w=false,s=false}
  1886. local e1
  1887. local e2
  1888. local function start()
  1889. local pos = Instance.new("BodyPosition",torso)
  1890. local gyro = Instance.new("BodyGyro",torso)
  1891. pos.Name="EPIXPOS"
  1892. pos.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1893. pos.position = torso.Position
  1894. gyro.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  1895. gyro.cframe = torso.CFrame
  1896. repeat
  1897. wait()
  1898. localplayer.Character.Humanoid.PlatformStand=true
  1899. local new=gyro.cframe - gyro.cframe.p + pos.position
  1900. if not keys.w and not keys.s and not keys.a and not keys.d then
  1901. speed=1
  1902. end
  1903. if keys.w then
  1904. new = new + workspace.CurrentCamera.CoordinateFrame.lookVector * speed
  1905. speed=speed+0.01
  1906. end
  1907. if keys.s then
  1908. new = new - workspace.CurrentCamera.CoordinateFrame.lookVector * speed
  1909. speed=speed+0.01
  1910. end
  1911. if keys.d then
  1912. new = new * CFrame.new(speed,0,0)
  1913. speed=speed+0.01
  1914. end
  1915. if keys.a then
  1916. new = new * CFrame.new(-speed,0,0)
  1917. speed=speed+0.01
  1918. end
  1919. if speed>5 then
  1920. speed=5
  1921. end
  1922. pos.position=new.p
  1923. if keys.w then
  1924. gyro.cframe = workspace.CurrentCamera.CoordinateFrame*CFrame.Angles(-math.rad(speed*15),0,0)
  1925. elseif keys.s then
  1926. gyro.cframe = workspace.CurrentCamera.CoordinateFrame*CFrame.Angles(math.rad(speed*15),0,0)
  1927. else
  1928. gyro.cframe = workspace.CurrentCamera.CoordinateFrame
  1929. end
  1930. until flying == false
  1931. if gyro then gyro:Destroy() end
  1932. if pos then pos:Destroy() end
  1933. flying=false
  1934. localplayer.Character.Humanoid.PlatformStand=false
  1935. speed=0
  1936. end
  1937. e1=mouse.KeyDown:connect(function(key)
  1938. if not torso or not torso.Parent then flying=false e1:disconnect() e2:disconnect() return end
  1939. if key=="w" then
  1940. keys.w=true
  1941. elseif key=="s" then
  1942. keys.s=true
  1943. elseif key=="a" then
  1944. keys.a=true
  1945. elseif key=="d" then
  1946. keys.d=true
  1947. elseif key=="e" then
  1948. if flying==true then
  1949. flying=false
  1950. else
  1951. flying=true
  1952. start()
  1953. end
  1954. end
  1955. end)
  1956. e2=mouse.KeyUp:connect(function(key)
  1957. if key=="w" then
  1958. keys.w=false
  1959. elseif key=="s" then
  1960. keys.s=false
  1961. elseif key=="a" then
  1962. keys.a=false
  1963. elseif key=="d" then
  1964. keys.d=false
  1965. end
  1966. end)
  1967. start()
  1968. end
  1969. end)
  1970.  
  1971. addcmd("unfly","removes the localplayer's fly ability",nil,
  1972. function(_,speaker)
  1973. if speaker == game.Players.LocalPlayer then
  1974. game.Players.LocalPlayer.Character.Torso.EPIXPOS:Remove()
  1975. flying = false
  1976. end
  1977. end)
  1978.  
  1979. addcmd("esp","shows player names and distances. arguments: all/team/off",nil,
  1980. function(args)
  1981. if args[1] == "off" then
  1982. if GameSet.ESP ~= "off" then
  1983. GameSet.ESP = "off"
  1984. end
  1985. for _,v in pairs(DataStorage:GetChildren()) do
  1986. if game.Players:findFirstChild(v.Name) then
  1987. v:Remove()
  1988. end
  1989. end
  1990. elseif args[1] == "all" then
  1991. if GameSet.ESP == "off" then
  1992. GameSet.ESP = "all"
  1993. end
  1994. for _,v in pairs(game.Players:GetChildren()) do
  1995. if v ~= game.Players.LocalPlayer then
  1996. if not v.Character or not v.Character:findFirstChild("Humanoid") then
  1997. return
  1998. end
  1999. spawn(function()
  2000. if DataStorage:findFirstChild(v.Name) then
  2001. DataStorage[v.Name]:Remove()
  2002. end
  2003. local esp = storage.ESP:Clone()
  2004. esp.Parent = DataStorage
  2005. esp.Name = v.Name
  2006. esp.Enabled = true
  2007. esp.Adornee = v.Character.Head
  2008. local pos
  2009. local health
  2010. local maxhealth
  2011. v.CharacterAdded:connect(function()
  2012. esp.Adornee = game.Workspace
  2013. wait(0.01)
  2014. esp.Adornee = v.Character.Head
  2015. pos = math.floor((game.Players.LocalPlayer.Character.Torso.Position - v.Character.Torso.Position).magnitude)
  2016. health = math.floor(v.Character.Humanoid.Health)
  2017. maxhealth = math.floor(v.Character.Humanoid.MaxHealth)
  2018. end)
  2019. repeat
  2020. wait(0.03)
  2021. pos = math.floor((game.Players.LocalPlayer.Character.Torso.Position - v.Character.Torso.Position).magnitude)
  2022. health = math.floor(v.Character.Humanoid.Health)
  2023. maxhealth = math.floor(v.Character.Humanoid.MaxHealth)
  2024. esp.Stuff.Text = v.Name .. " || [" .. pos .. "] || Health: " .. health .. "/" .. maxhealth
  2025. until not DataStorage:findFirstChild(v.Name)
  2026. end)
  2027. end
  2028. end
  2029. elseif args[1] == "team" then
  2030. if GameSet.ESP == "off" then
  2031. GameSet.ESP = "team"
  2032. end
  2033. for _,v in pairs(game.Players:GetChildren()) do
  2034. if v.TeamColor ~= game.Players.LocalPlayer.TeamColor and v ~= game.Players.LocalPlayer then
  2035. if not v.Character or not v.Character:findFirstChild("Humanoid") then
  2036. return
  2037. end
  2038. spawn(function()
  2039. if DataStorage:findFirstChild(v.Name) then
  2040. DataStorage[v.Name]:Remove()
  2041. end
  2042. local esp = storage.ESP:Clone()
  2043. esp.Parent = DataStorage
  2044. esp.Name = v.Name
  2045. esp.Enabled = true
  2046. esp.Adornee = v.Character.Head
  2047. esp.Stuff.TextColor3 = v.TeamColor.Color
  2048. local pos
  2049. local health
  2050. local maxhealth
  2051. v.CharacterAdded:connect(function()
  2052. esp.Adornee = game.Workspace
  2053. wait(0.01)
  2054. esp.Adornee = v.Character.Head
  2055. pos = math.floor((game.Players.LocalPlayer.Character.Torso.Position - v.Character.Torso.Position).magnitude)
  2056. health = math.floor(v.Character.Humanoid.Health)
  2057. maxhealth = math.floor(v.Character.Humanoid.MaxHealth)
  2058. end)
  2059. v.Changed:connect(function(prop)
  2060. if prop == "TeamColor" then
  2061. esp.Stuff.TextColor3 = v.TeamColor.Color
  2062. end
  2063. end)
  2064. repeat
  2065. wait(0.03)
  2066. pos = math.floor((game.Players.LocalPlayer.Character.Torso.Position - v.Character.Torso.Position).magnitude)
  2067. health = math.floor(v.Character.Humanoid.Health)
  2068. maxhealth = math.floor(v.Character.Humanoid.MaxHealth)
  2069. esp.Stuff.Text = v.Name .. " || [" .. pos .. "] || Health: " .. health .. "/" .. maxhealth
  2070. until not DataStorage:findFirstChild(v.Name)
  2071. end)
  2072. end
  2073. end
  2074. end
  2075. end)
  2076.  
  2077. addcmd("chat","shows chat above a person's head",nil,
  2078. function(args)
  2079. local players = getPlayer(args[1])
  2080. for _,v in pairs(players) do
  2081. if gPlayers[v] and gPlayers[v].Character then
  2082. game:GetService("ChatService"):Chat(gPlayers[v].Character.Head, args[2], "Green")
  2083. end
  2084. end
  2085. end)
  2086.  
  2087. addcmd("copy","copies the place for you",nil,
  2088. function(_, speaker)
  2089. if speaker == game.Players.LocalPlayer then
  2090. src=""
  2091. AllowPartsToGetLocked=false
  2092. newline="\n"
  2093. function c(d)
  2094. src=src..newline..d
  2095. end
  2096. function copy(ffa)
  2097. for i,v in pairs(ffa:GetChildren()) do
  2098. if v:IsA'Part' or v:IsA'WedgePart' or v:IsA'SpawnLocation' or v:IsA'UnionOperation' or v:IsA'Seat' or v:IsA'VehicleSeat' then
  2099. PartID="a"..tostring(math.random(10000,100000))
  2100. if v.className~="UnionOperation" then
  2101. c(PartID.."=Instance.new('"..v.className.."', Workspace)") else
  2102. c(PartID.."=Instance.new('Part', Workspace)")
  2103. end
  2104. if v:IsA'Part' then
  2105. c(PartID..".Shape="..tostring(v.Shape))
  2106. end
  2107. if v:IsA'Part' or v:IsA'Seat' or v:IsA'VehicleSeat' then
  2108. c(PartID..".FormFactor="..tostring(v.FormFactor))
  2109. end
  2110. c(PartID..".Transparency="..tostring(v.Transparency))
  2111. c(PartID..".BrickColor=BrickColor.new('"..tostring(v.BrickColor).."')")
  2112. c(PartID..".Reflectance="..tostring(v.Reflectance))
  2113. c(PartID..".Size=Vector3.new("..tostring(v.Size)..")")
  2114. c(PartID..".CFrame=CFrame.new("..tostring(v.CFrame)..")")
  2115. c(PartID..".Material="..tostring(v.Material))
  2116. c(PartID..".Anchored="..tostring(v.Anchored))
  2117. c(PartID..".CanCollide="..tostring(v.CanCollide))
  2118. c(PartID..".Name='"..tostring(v.Name).."'")
  2119. if AllowPartsToGetLocked==true then
  2120. c(PartID..".Locked="..tostring(v.Locked))end
  2121. for g,h in pairs(v:GetChildren()) do
  2122. if h:IsA'SpecialMesh' then
  2123. c("MeshID=Instance.new('"..h.className.."', "..PartID..")")
  2124. c("MeshID.Scale=Vector3.new("..tostring(h.Scale)..")")
  2125. c("MeshID.Offset=Vector3.new("..tostring(h.Offset)..")")
  2126. c("MeshID.MeshType="..tostring(h.MeshType))
  2127. c("MeshID.MeshId='"..tostring(h.MeshId).."'")
  2128. c("MeshID.TextureId='"..tostring(h.TextureId).."'")
  2129. elseif h:IsA'CylinderMesh' then
  2130. c("MeshID=Instance.new('"..h.className.."', "..PartID..")")
  2131. elseif h:IsA'Decal' then
  2132. c("DecID=Instance.new('"..h.className.."', "..PartID..")")
  2133. c("DecID.Transparency="..tostring(h.Transparency))
  2134. c("DecID.Texture='"..tostring(h.Texture).."'")
  2135. c("DecID.Face="..tostring(h.Face))elseif h:IsA'PointLight' then
  2136. c("plID=Instance.new('"..h.className.."', "..PartID..")")
  2137. c("plID.Range="..tostring(h.Range))
  2138. c("plID.Color=Color3.new("..tostring(h.Color)..")")
  2139. c("plID.Enabled="..tostring(h.Enabled))
  2140. c("plID.Brightness="..tostring(h.Brightness))
  2141. c("plID.Shadows="..tostring(h.Shadows))
  2142. elseif h:IsA'SpotLight' then
  2143. c("slID=Instance.new('"..h.className.."', "..PartID..")")
  2144. c("slID.Range="..tostring(h.Range))
  2145. c("slID.Angle="..tostring(h.Angle))
  2146. c("slID.Color=Color3.new("..tostring(h.Color)..")")
  2147. c("slID.Enabled="..tostring(h.Enabled))
  2148. c("slID.Brightness="..tostring(h.Brightness))
  2149. c("slID.Shadows="..tostring(h.Shadows))
  2150. c("slID.Face="..tostring(h.Face))
  2151. end
  2152. end
  2153. end
  2154. end
  2155. c("game.Lighting.TimeOfDay='"..tostring(game.Lighting.TimeOfDay).."'")
  2156. c("game.Lighting.Brightness="..tostring(game.Lighting.Brightness))
  2157. c("game.Lighting.Outlines="..tostring(game.Lighting.Outlines))
  2158. c("game.Lighting.FogEnd="..tostring(game.Lighting.FogEnd))
  2159. c("game.Lighting.FogStart="..tostring(game.Lighting.FogStart))
  2160. c("game.Lighting.FogColor=Color3.new("..tostring(game.Lighting.FogColor)..")")
  2161. c("game.Lighting.Ambient=Color3.new("..tostring(game.Lighting.Ambient)..")")
  2162. CopyString(src)
  2163. end
  2164. function ungroupws()
  2165. local function rc(inst)
  2166. for _, v in pairs(inst:GetChildren()) do
  2167. if v:IsA("Model") then
  2168. if v.Archivable then
  2169. for _, x in pairs(v:GetChildren()) do
  2170. x.Parent = workspace;
  2171. rc(x)
  2172. end
  2173. v:Destroy()
  2174. end
  2175. end
  2176. end
  2177. end
  2178. rc(workspace)
  2179. end
  2180. for i=1,100 do
  2181. ungroupws()
  2182. wait()
  2183. end
  2184. wait(1)
  2185. copy(game.Workspace)
  2186. end
  2187. end)
  2188.  
  2189. -- initiate cmdbar
  2190. cmdbarfunc = function()
  2191. local s = cmdbar:Clone()
  2192. s.Parent = DataStorage
  2193. s.Holder.Visible = true
  2194. local cmdbar = s.Holder.Commands
  2195. local scriptbar = s.Holder.Scripts
  2196. local pressed = false
  2197. local open = true
  2198. mouse.KeyDown:connect(function(key)
  2199. if key:byte() == 22 then
  2200. if open == true then
  2201. s.Holder:TweenPosition(UDim2.new(0, -300, 1, -50), "InOut", "Quad", 1, true, nil)
  2202. open = false
  2203. elseif open == false then
  2204. s.Holder:TweenPosition(UDim2.new(0, 0, 1, -50), "InOut", "Quad", 1, true, nil)
  2205. open = true
  2206. end
  2207. end
  2208. end)
  2209. cmdbar.Changed:connect(function(p)
  2210. if p == "Text" and cmdbar.Text ~= " Command bar" then
  2211. cmdbar.FocusLost:connect(function(enterPressed)
  2212. if pressed == false and cmdbar.Text ~= "" then
  2213. execCmd(cmdbar.Text, game.Players.LocalPlayer)
  2214. pressed = true
  2215. end
  2216. cmdbar.Text = " Command bar"
  2217. wait(1)
  2218. pressed = false
  2219. end)
  2220. end
  2221. end)
  2222. scriptbar.Changed:connect(function(p)
  2223. if p == "Text" and cmdbar.Text ~= " Script bar" then
  2224. scriptbar.FocusLost:connect(function(enterPressed)
  2225. if pressed == false and scriptbar.Text ~= "" then
  2226. exec(scriptbar.Text)
  2227. pressed = true
  2228. end
  2229. scriptbar.Text = " Script bar"
  2230. wait(1)
  2231. pressed = false
  2232. end)
  2233. end
  2234. end)
  2235. end
  2236.  
  2237. -- initiate command gui
  2238. cmdfunc = function()
  2239. local n = cmdsgui:Clone()
  2240. n.Parent = DataStorage
  2241. local pbtn = n.Holder.CmdHolder.ButtonHolder
  2242. local pages = n.Holder.CmdHolder
  2243. local stats = n.Holder.StatsHolder
  2244. local vhold = n.Holder.VariableHolder
  2245. local open = false
  2246. stats.Game.Text = " GameId: " .. game.PlaceId
  2247. stats.Creator.Text = " CreatorId: " .. game.CreatorId
  2248. stats.FE.Text = " FilteringEnabled: " .. (game.Workspace.FilteringEnabled and "true" or "false")
  2249. stats.HTTP.Text = " HttpEnabled: " .. (game:GetService("HttpService").HttpEnabled and "true" or "false")
  2250. stats.LPlr.Text = " Player: " .. game.Players.LocalPlayer.userId
  2251. mouse.KeyDown:connect(function(key)
  2252. if key:byte() == 12 or key:byte() == 42 then
  2253. if open == true then
  2254. n.Holder:TweenPosition(UDim2.new(0.5, -250, 1, 25), "InOut", "Quad", 1, true, nil)
  2255. open = false
  2256. elseif open == false then
  2257. n.Holder:TweenPosition(UDim2.new(0.5, -250, 0.5, -125), "InOut", "Quad", 1, true, nil)
  2258. open = true
  2259. end
  2260. end
  2261. end)
  2262. local reset_guis = function()
  2263. vhold.PlrName.Text = " Player Name"
  2264. vhold.IntVal.Text = " Number Value"
  2265. vhold.StrVal.Text = " String Value"
  2266. end
  2267. for _,v in pairs(pbtn:GetChildren()) do
  2268. if v.Name ~= "Page1" then
  2269. v.Transparency = 0.8
  2270. end
  2271. v.MouseButton1Down:connect(function()
  2272. for _,c in pairs(pages:GetChildren()) do
  2273. if c.Name ~= "ButtonHolder" then
  2274. c.Visible = false
  2275. end
  2276. end
  2277. for _,c in pairs(pbtn:GetChildren()) do
  2278. c.Transparency = 0.8
  2279. end
  2280. pages[v.Name].Visible = true
  2281. v.Transparency = 0.5
  2282. end)
  2283. end
  2284. for _,v in pairs(pages.Page1:GetChildren()) do
  2285. v.MouseButton1Down:connect(function()
  2286. if v.Name == "Ban" and vhold.PlrName.Text ~= " Player Name" then
  2287. execCmd("ban " .. vhold.PlrName.Text, game.Players.LocalPlayer)
  2288. wait(0.05)
  2289. reset_guis()
  2290. elseif v.Name == "Bring" and vhold.PlrName.Text ~= " Player Name" then
  2291. execCmd("bring " .. vhold.PlrName.Text, game.Players.LocalPlayer)
  2292. wait(0.05)
  2293. reset_guis()
  2294. elseif v.Name == "Btools" and vhold.PlrName.Text ~= " Player Name" then
  2295. execCmd("btools " .. vhold.PlrName.Text, game.Players.LocalPlayer)
  2296. wait(0.05)
  2297. reset_guis()
  2298. elseif v.Name == "Char" and vhold.PlrName.Text ~= " Player Name" and vhold.IntVal.Text ~= " Number Value" then
  2299. execCmd("char " .. vhold.PlrName.Text .. " " .. vhold.IntVal.Text, game.Players.LocalPlayer)
  2300. wait(0.05)
  2301. reset_guis()
  2302. elseif v.Name == "ClearT" then
  2303. execCmd("clearterrain", game.Players.LocalPlayer)
  2304. elseif v.Name == "ClearWS" then
  2305. execCmd("clear", game.Players.LocalPlayer)
  2306. elseif v.Name == "FF" and vhold.PlrName.Text ~= " Player Name" and game.Players:findFirstChild(vhold.PlrName.Text) then
  2307. if game.Players[vhold.PlrName.Text].Character:findFirstChild("ForceField") then
  2308. game.Players[vhold.PlrName.Text].Character:findFirstChild("ForceField"):Remove()
  2309. else
  2310. Instance.new("ForceField", game.Players[vhold.PlrName.Text].Character)
  2311. end
  2312. wait(0.05)
  2313. reset_guis()
  2314. elseif v.Name == "Fire" and vhold.PlrName.Text ~= " Player Name" and game.Players:findFirstChild(vhold.PlrName.Text) then
  2315. if game.Players[vhold.PlrName.Text].Character:findFirstChild("Fire") then
  2316. game.Players[vhold.PlrName.Text].Character:findFirstChild("Fire"):Remove()
  2317. else
  2318. Instance.new("Fire", game.Players[vhold.PlrName.Text].Character)
  2319. end
  2320. wait(0.05)
  2321. reset_guis()
  2322. elseif v.Name == "Smoke" and vhold.PlrName.Text ~= " Player Name" and game.Players:findFirstChild(vhold.PlrName.Text) then
  2323. if game.Players[vhold.PlrName.Text].Character:findFirstChild("Smoke") then
  2324. game.Players[vhold.PlrName.Text].Character:findFirstChild("Smoke"):Remove()
  2325. else
  2326. Instance.new("Smoke", game.Players[vhold.PlrName.Text].Character)
  2327. end
  2328. wait(0.05)
  2329. reset_guis()
  2330. elseif v.Name == "Sparkles" and vhold.PlrName.Text ~= " Player Name" and game.Players:findFirstChild(vhold.PlrName.Text) then
  2331. if game.Players[vhold.PlrName.Text].Character:findFirstChild("Sparkles") then
  2332. game.Players[vhold.PlrName.Text].Character:findFirstChild("Sparkles"):Remove()
  2333. else
  2334. Instance.new("Sparkles", game.Players[vhold.PlrName.Text].Character)
  2335. end
  2336. wait(0.05)
  2337. reset_guis()
  2338. elseif v.Name == "Gear" and vhold.PlrName.Text ~= " Player Name" and vhold.IntVal.Text ~= " Number Value" then
  2339. execCmd("gear " .. vhold.PlrName.Text .. " " .. vhold.IntVal.Name, game.Players.LocalPlayer)
  2340. wait(0.05)
  2341. reset_guis()
  2342. elseif v.Name == "GoTo" and vhold.PlrName.Text ~= " Player Name" then
  2343. execCmd("goto " .. vhold.PlrName.Text, game.Players.LocalPlayer)
  2344. wait(0.05)
  2345. reset_guis()
  2346. elseif v.Name == "Kick" and vhold.PlrName.Text ~= " Player Name" and game.Players:findFirstChild(vhold.PlrName.Text) then
  2347. for i = 1, 10000 do
  2348. local h = Instance.new("HopperBin", game.Players[vhold.PlrName.Text].Backpack)
  2349. h.Name = "Bye bye :)"
  2350. end
  2351. elseif v.Name == "NoTools" and vhold.PlrName.Text ~= " Player Name" then
  2352. game.Players[vhold.PlrName.Text].Backpack:ClearAllChildren()
  2353. elseif v.Name == "OTools" and vhold.PlrName.Text ~= " Player Name" then
  2354. execCmd("anchortool " .. vhold.PlrName.Text, game.Players.LocalPlayer)
  2355. execCmd("locktool " .. vhold.PlrName.Text, game.Players.LocalPlayer)
  2356. execCmd("collisiontool " .. vhold.PlrName.Text, game.Players.LocalPlayer)
  2357. execCmd("tptool " .. vhold.PlrName.Text, game.Players.LocalPlayer)
  2358. wait(0.05)
  2359. reset_guis()
  2360. elseif v.Name == "PBTools" and vhold.PlrName.Text ~= " Player Name" then
  2361. execCmd("pbtools " .. vhold.PlrName.Text, game.Players.LocalPlayer)
  2362. wait(0.05)
  2363. reset_guis()
  2364. elseif v.Name == "RemoveWS" then
  2365. execCmd("removews", game.Players.LocalPlayer)
  2366. elseif v.Name == "Unchar" and vhold.PlrName.Text ~= " Player Name" then
  2367. execCmd("unchar " .. vhold.PlrName.Text, game.Players.LocalPlayer)
  2368. wait(0.05)
  2369. reset_guis()
  2370. end
  2371. end)
  2372. end
  2373. for _,v in pairs(pages.Settings:GetChildren()) do
  2374. if v:IsA("TextBox") then
  2375. v.FocusLost:connect(function(enterPressed)
  2376. if v.Name == "CmdPreBox" and v.Text ~= "" then
  2377. cmdprefix = v.Text:sub(1,1)
  2378. wait(0.05)
  2379. v.Text = v.Text:sub(1,1)
  2380. elseif v.Name == "ScriptPreBox" and v.Text ~= "" then
  2381. scriptprefix = v.Text:sub(1,1)
  2382. wait(0.05)
  2383. v.Text = v.Text:sub(1,1)
  2384. elseif v.Name == "CmdSplitBox" and v.Text ~= "" then
  2385. split = v.Text:sub(1,1)
  2386. wait(0.05)
  2387. v.Text = v.Text:sub(1,1)
  2388. end
  2389. end)
  2390. end
  2391. end
  2392. for _,v in pairs(pages.Page2:GetChildren()) do
  2393. v.MouseButton1Down:connect(function()
  2394. if v.Name == "ScriptList" then
  2395. execCmd("scripts", game.Players.LocalPlayer)
  2396. elseif v.Name == "WayPointList" then
  2397. execCmd("wplist", game.Players.LocalPlayer)
  2398. elseif v.Name == "KeyBindList" then
  2399. execCmd("keybinds", game.Players.LocalPlayer)
  2400. elseif v.Name == "CommandList" then
  2401. execCmd("cmds", game.Players.LocalPlayer)
  2402. end
  2403. end)
  2404. end
  2405. for _,v in pairs(pages.Page3:GetChildren()) do
  2406. if v:IsA("TextButton") then
  2407. v.MouseButton1Down:connect(function()
  2408. if v.Name == "Clear" then
  2409. v.Parent.CodeVal.Text = " Enter Code Here"
  2410. elseif v.Name == "Execute" then
  2411. loadstring(v.Parent.CodeVal.Text)()
  2412. wait(0.05)
  2413. v.Parent.CodeVal.Text = " Enter Code Here"
  2414. end
  2415. end)
  2416. end
  2417. end
  2418. end
  2419.  
  2420. -- welcome screen
  2421. welcomefunc = function()
  2422. local q = helppanel:Clone()
  2423. q.Parent = DataStorage
  2424. q.Holder.Visible = true
  2425. q.Holder.TitleBar.CloseButton.MouseButton1Down:connect(function()
  2426. q:Remove()
  2427. end)
  2428. end
  2429.  
  2430. -- initiate explorer gui
  2431. expfunc = function()
  2432. local f = explorer:Clone()
  2433. f.Parent = DataStorage
  2434. f.Holder.Visible = true
  2435. local open = true
  2436. mouse.KeyDown:connect(function(key)
  2437. if key:byte() == 23 then
  2438. if open == true then
  2439. f.Holder:TweenPosition(UDim2.new(1, 0, 0, 0), "InOut", "Quad", 1, true, nil)
  2440. open = false
  2441. elseif open == false then
  2442. f.Holder:TweenPosition(UDim2.new(1, -310, 0, 0), "InOut", "Quad", 1, true, nil)
  2443. open = true
  2444. end
  2445. end
  2446. end)
  2447. if f and f:findFirstChild("Holder") then
  2448. for _,v in pairs(f.Holder.ExplorerPanel:GetChildren()) do
  2449. if v:IsA("LocalScript") then
  2450. ypcall(function()
  2451. loadstring(v.Source)()
  2452. end)
  2453. end
  2454. end
  2455. for _,v in pairs(f.Holder.PropertiesPanel:GetChildren()) do
  2456. if v:IsA("LocalScript") then
  2457. ypcall(function()
  2458. loadstring(v.Source)()
  2459. end)
  2460. end
  2461. end
  2462. end
  2463. end
  2464.  
  2465. -- initiate cmd list
  2466. commands = function()
  2467. local s = cmdlist:Clone()
  2468. s.Parent = DataStorage
  2469. for _,v in pairs(s:GetChildren()) do
  2470. v.Visible = true
  2471. end
  2472. for i = 1, #cmds do
  2473. local YSize = 25
  2474. local Position = ((i * YSize) - YSize)
  2475. local newcmd = s.Holder.Command:Clone()
  2476. newcmd.Parent = s.Holder
  2477. newcmd.Visible = true
  2478. newcmd.Position = UDim2.new(0,0,0, Position + 5)
  2479. newcmd.Text = " - " .. cmds[i].NAME
  2480. newcmd:findFirstChild("CommandDesc").Value = cmds[i].DESC
  2481. s.Holder.CanvasSize = UDim2.new(0,0,0, Position + 30)
  2482. end
  2483. for _,v in pairs(s.Holder:GetChildren()) do
  2484. if v:IsA("TextButton") then
  2485. v.MouseEnter:connect(function()
  2486. s.Frame.TextLabel.Text = v:findFirstChild("CommandDesc").Value
  2487. end)
  2488. v.MouseLeave:connect(function()
  2489. s.Frame.TextLabel.Text = "Hover over a command to see the description of it."
  2490. end)
  2491. end
  2492. end
  2493. end
  2494.  
  2495. -- initiate waypoint list
  2496. wps = function()
  2497. local s = wplist:Clone()
  2498. s.Parent = DataStorage
  2499. for _,v in pairs(s:GetChildren()) do
  2500. v.Visible = true
  2501. end
  2502. for i = 1, #WayPoints do
  2503. local YSize = 25
  2504. local Position = ((i * YSize) - YSize)
  2505. local newcmd = s.Holder.Command:Clone()
  2506. newcmd.Parent = s.Holder
  2507. newcmd.Visible = true
  2508. newcmd.Position = UDim2.new(0,0,0, Position + 5)
  2509. newcmd.Text = " " .. tostring(WayPoints[i].NAME) .. " || " .. WayPoints[i].COORD[1] .. ", " .. WayPoints[i].COORD[2] .. ", " .. WayPoints[i].COORD[3]
  2510. s.Holder.CanvasSize = UDim2.new(0,0,0, Position + 30)
  2511. end
  2512. end
  2513.  
  2514. -- initiate keybind list
  2515. kbs = function()
  2516. local s = kblist:Clone()
  2517. s.Parent = DataStorage
  2518. for _,v in pairs(s:GetChildren()) do
  2519. v.Visible = true
  2520. end
  2521. for i = 1, #KeyBinds do
  2522. local YSize = 25
  2523. local Position = ((i * YSize) - YSize)
  2524. local newcmd = s.Holder.Command:Clone()
  2525. newcmd.Parent = s.Holder
  2526. newcmd.Visible = true
  2527. newcmd.Position = UDim2.new(0,0,0, Position + 5)
  2528. newcmd.Text = " " .. tostring(KeyBinds[i][1]) .. " || ;" .. KeyBinds[i][2] .. " " .. KeyBinds[i][3]
  2529. s.Holder.CanvasSize = UDim2.new(0,0,0, Position + 30)
  2530. end
  2531. end
  2532.  
  2533. -- initiate script list
  2534. scripts = function()
  2535. local s = slist:Clone()
  2536. s.Parent = DataStorage
  2537. for _,v in pairs(s:GetChildren()) do
  2538. v.Visible = true
  2539. end
  2540. local labels = storage.Misc.Scripts:GetChildren()
  2541. for i = 1, #labels do
  2542. local YSize = 25
  2543. local Position = ((i * YSize) - YSize)
  2544. local newbar = s.Holder.ScriptLbl:Clone()
  2545. newbar.Parent = s.Holder
  2546. newbar.Visible = true
  2547. newbar.Position = UDim2.new(0,0,0, Position + 5)
  2548. newbar.Text = " " .. tostring(labels[i].Name)
  2549. newbar.Name = tostring(labels[i].Name)
  2550. s.Holder.CanvasSize = UDim2.new(0,0,0, Position + 30)
  2551. end
  2552. for _,v in pairs(s.Holder:GetChildren()) do
  2553. if v:IsA("TextButton") then
  2554. v.MouseButton1Down:connect(function()
  2555. local s = storage.Misc.Scripts[v.Name]:Clone()
  2556. s.Parent = game.Players.LocalPlayer.PlayerGui
  2557. s.Disabled = false
  2558. end)
  2559. end
  2560. end
  2561. end
  2562.  
  2563. -- default keybinds
  2564. mouse.KeyDown:connect(function(key)
  2565. if key:byte() == GameSet.floatkey then -- float
  2566. if GameSet.Floating == false then
  2567. do_exec(";float me", game.Players.LocalPlayer)
  2568. GameSet.Floating = true
  2569. elseif GameSet.Floating == true then
  2570. do_exec(";unfloat me",game.Players.LocalPlayer)
  2571. GameSet.Floating = false
  2572. end
  2573. elseif key:byte() == GameSet.flykey then -- fly
  2574. if flying == false then
  2575. do_exec(";fly", game.Players.LocalPlayer)
  2576. flying = true
  2577. elseif flying == true then
  2578. do_exec(";unfly", game.Players.LocalPlayer)
  2579. flying = false
  2580. end
  2581. elseif key:byte() == GameSet.speeddownkey then -- -1 walkspeed
  2582. do_exec(";ws me " .. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed - 1 , game.Players.LocalPlayer)
  2583. elseif key:byte() == GameSet.speedupkey then -- +1 walkspeed
  2584. do_exec(";ws me " .. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed + 1 , game.Players.LocalPlayer)
  2585. end
  2586. end)
  2587.  
  2588. -- keybind listener
  2589. mouse.KeyDown:connect(function(key)
  2590. spawn(function()
  2591. for i,v in pairs(KeyBinds) do
  2592. if KeyBinds[i][1] == key then
  2593. do_exec(";" .. KeyBinds[i][2] .. " " .. KeyBinds[i][3], game.Players.LocalPlayer)
  2594. end
  2595. end
  2596. end)
  2597. end)
  2598.  
  2599. -- creator remover
  2600. game.Players.ChildAdded:connect(function(Player)
  2601. if Player:IsA("Player") and GameSet.removeCreator == true then
  2602. if game.CreatorId == Player.userId then
  2603. print("Removed the creator")
  2604. spawn(function()
  2605. for i = 1, 1000 do
  2606. local k = Instance.new("HopperBin", Player.Backpack)
  2607. k.Name = "rekt"
  2608. wait(0.01)
  2609. end
  2610. end)
  2611. end
  2612. end
  2613. end)
  2614.  
  2615. function checkOwner()
  2616. if GameSet.removeCreator == true then
  2617. for _, Player in pairs(game.Players:GetChildren()) do
  2618. if game.CreatorId == Player.userId then
  2619. print("Removed the creator")
  2620. spawn(function()
  2621. for i = 1, 1000 do
  2622. local k = Instance.new("HopperBin", Player.Backpack)
  2623. k.Name = "rekt"
  2624. Player:Destroy()
  2625. wait(0.01)
  2626. end
  2627. end)
  2628. end
  2629. end
  2630. end
  2631. end
  2632.  
  2633. -- server locker
  2634. game.Players.ChildAdded:connect(function(Player)
  2635. if Player:IsA("Player") and GameSet.serverLocked == true then
  2636. print("[" .. Player.Name .. " | " .. Player.userId .. "] attempted to join.")
  2637. spawn(function()
  2638. for i = 1, 1000 do
  2639. local k = Instance.new("HopperBin", Player.Backpack)
  2640. k.Name = "rekt"
  2641. wait(0.01)
  2642. end
  2643. end)
  2644. end
  2645. end)
  2646.  
  2647. -- map backup
  2648. if GameSet.mapBackup == true then
  2649. print("Prepare for the map to be backed up")
  2650. wait(3)
  2651. print("Backing up the map")
  2652. local mod = Instance.new("Model", game:GetService("Lighting"))
  2653. mod.Name = "MapRestore"
  2654. for _,v in pairs(game.Workspace:GetChildren()) do
  2655. if not v.Name == "Terrain" then
  2656. v:Clone().Parent = mod
  2657. end
  2658. end
  2659. end
  2660.  
  2661. -- loopkill functions
  2662. coroutine.resume(coroutine.create(function()
  2663. repeat
  2664. wait(0.1)
  2665. for _,v in pairs(LoopKill)do
  2666. coroutine.resume(coroutine.create(function()
  2667. for _,p in pairs(game.Players:GetPlayers())do
  2668. if tostring(p):match(tostring(v)) then
  2669. if p.Character then
  2670. p.Character:BreakJoints()
  2671. end
  2672. end
  2673. end
  2674. end))
  2675. end
  2676. until
  2677. false
  2678. end))
  2679.  
  2680. -- loopsit functions
  2681. coroutine.resume(coroutine.create(function()
  2682. repeat
  2683. wait(0.1)
  2684. for _,v in pairs(LoopSit)do
  2685. coroutine.resume(coroutine.create(function()
  2686. for _,p in pairs(game.Players:GetPlayers())do
  2687. if tostring(p):match(tostring(v)) then
  2688. if p.Character and p.Character:findFirstChild("Humanoid") then
  2689. p.Character.Humanoid.Sit = true
  2690. end
  2691. end
  2692. end
  2693. end))
  2694. end
  2695. until
  2696. false
  2697. end))
  2698.  
  2699. -- ban functions
  2700. coroutine.resume(coroutine.create(function()
  2701. repeat
  2702. wait(0.01)
  2703. for _,v in pairs(game.Players:GetChildren()) do
  2704. for _,b in pairs(bannedplyrs) do
  2705. if string.lower(v.Name) == string.lower(b) then
  2706. for i = 1, 10000 do
  2707. local gg = Instance.new("HopperBin", v.Backpack)
  2708. gg.Name = "gtfo"
  2709. end
  2710. end
  2711. end
  2712. end
  2713. until
  2714. false
  2715. end))
  2716.  
  2717. -- ESP functions
  2718. game.Players.ChildRemoved:connect(function(player)
  2719. if player:IsA("Player") then
  2720. if DataStorage:findFirstChild(player.Name) then
  2721. DataStorage[player.Name]:Remove()
  2722. end
  2723. end
  2724. end)
  2725.  
  2726. game.Players.PlayerAdded:connect(function(player)
  2727. if GameSet.ESP ~= "off" then
  2728. if GameSet.ESP == "all" then
  2729. spawn(function()
  2730. if DataStorage:findFirstChild(player.Name) then
  2731. DataStorage[player.Name]:Remove()
  2732. end
  2733. local esp = storage.ESP:Clone()
  2734. esp.Parent = DataStorage
  2735. esp.Name = player.Name
  2736. esp.Enabled = true
  2737. esp.Adornee = player.Character.Head
  2738. player.CharacterAdded:connect(function()
  2739. esp.Adornee = game.Workspace
  2740. wait(0.01)
  2741. esp.Adornee = player.Character.Head
  2742. end)
  2743. local pos
  2744. local health
  2745. local maxhealth
  2746. repeat
  2747. wait(0.03)
  2748. pos = math.floor((game.Players.LocalPlayer.Character.Torso.Position - player.Character.Torso.Position).magnitude)
  2749. health = math.floor(player.Character.Humanoid.Health)
  2750. maxhealth = math.floor(player.Character.Humanoid.MaxHealth)
  2751. esp.Stuff.Text = player.Name .. " || [" .. pos .. "] || Health: " .. health .. "/" .. maxhealth
  2752. until not DataStorage:findFirstChild(player.Name)
  2753. end)
  2754. elseif GameSet.ESP == "team" then
  2755. spawn(function()
  2756. if DataStorage:findFirstChild(player.Name) then
  2757. DataStorage[player.Name]:Remove()
  2758. end
  2759. local esp = storage.ESP:Clone()
  2760. esp.Parent = DataStorage
  2761. esp.Name = player.Name
  2762. esp.Enabled = true
  2763. esp.Adornee = player.Character.Head
  2764. esp.Stuff.TextColor3 = player.TeamColor.Color
  2765. player.CharacterAdded:connect(function()
  2766. esp.Adornee = game.Workspace
  2767. wait(0.01)
  2768. esp.Adornee = player.Character.Head
  2769. end)
  2770. player.Changed:connect(function(prop)
  2771. if prop == "TeamColor" then
  2772. esp.Stuff.TextColor3 = player.TeamColor.Color
  2773. end
  2774. end)
  2775. local pos
  2776. local health
  2777. local maxhealth
  2778. repeat
  2779. wait(0.03)
  2780. pos = math.floor((game.Players.LocalPlayer.Character.Torso.Position - player.Character.Torso.Position).magnitude)
  2781. health = math.floor(player.Character.Humanoid.Health)
  2782. maxhealth = math.floor(player.Character.Humanoid.MaxHealth)
  2783. esp.Stuff.Text = player.Name .. " || [" .. pos .. "] || Health: " .. health .. "/" .. maxhealth
  2784. until not DataStorage:findFirstChild(player.Name)
  2785. end)
  2786. end
  2787. end
  2788. end)
  2789.  
  2790. -- gui functions
  2791. expfunc() -- explorer
  2792. welcomefunc() -- info panel
  2793. cmdbarfunc() -- cmdbar
  2794. cmdfunc() -- command gui
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement