Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local DataStorage = game.CoreGui
- game:GetObjects("rbxassetid://276707663")[1].Parent = DataStorage
- repeat wait(1) until DataStorage:findFirstChild("Storage")
- local storage = DataStorage:WaitForChild("Storage")
- local helppanel = storage:WaitForChild("InfoPanel")
- local explorer = storage:WaitForChild("ExplorerGui")
- local cmdbar = storage:WaitForChild("CommandBar")
- local cmdlist = storage:WaitForChild("CommandList")
- local wplist = storage:WaitForChild("WayPointList")
- local kblist = storage:WaitForChild("KeyBindList")
- local slist = storage:WaitForChild("ScriptList")
- local cmdsgui = storage:WaitForChild("CommandGui")
- local FixLighting = {
- amb = game:GetService("Lighting").Ambient,
- oamb = game:GetService("Lighting").OutdoorAmbient,
- brt = game:GetService("Lighting").Brightness,
- tod = game:GetService("Lighting").TimeOfDay,
- fcol = game:GetService("Lighting").FogColor,
- fend = game:GetService("Lighting").FogEnd,
- fstrt = game:GetService("Lighting").FogStart,
- shad = game:GetService("Lighting").GlobalShadows,
- line = game:GetService("Lighting").Outlines,
- shadcol = game:GetService("Lighting").ShadowColor
- }
- local GameSet = {
- mapBackup = false,
- removeCreator = false,
- serverLocked = false,
- disco = false,
- Floating = false,
- ESP = "off",
- floatkey = 29, -- F4
- flykey = 30, -- F5
- speeddownkey = 27, -- F2
- speedupkey = 28, -- F3
- }
- local ESP = {}
- local KeyBinds = {}
- local LoopKill = {}
- local LoopSit = {}
- local WayPoints = {
- -- Apocalypse Rising: Reimagined
- {["NAME"] = "Hark", ["COORD"] = {-1877, 4.4, -3000}},
- {["NAME"] = "Mansion", ["COORD"] = {-2366, 5.6, -1618}},
- {["NAME"] = "Dirk", ["COORD"] = {-2839, 4.4, 725}},
- {["NAME"] = "Trin", ["COORD"] = {-2798, 4.1, 2593}},
- {["NAME"] = "Yale", ["COORD"] = {-2271, 4.4, 3112}},
- {["NAME"] = "OM", ["COORD"] = {-649, 4.4, -2873}},
- {["NAME"] = "Olke", ["COORD"] = {104, 4.4, -2188}},
- {["NAME"] = "Cemetery", ["COORD"] = {482, 4.4, -1477}},
- {["NAME"] = "Prison", ["COORD"] = {1319, 4.4, 56}},
- {["NAME"] = "Kin", ["COORD"] = {-862, 5.7, 1036}},
- {["NAME"] = "FR", ["COORD"] = {52, 154, 3115}},
- {["NAME"] = "Korri", ["COORD"] = {1188, 4.4, 2545}},
- {["NAME"] = "RC", ["COORD"] = {2473, 4, -2796}},
- {["NAME"] = "MO", ["COORD"] = {1679, 5, -1406}},
- {["NAME"] = "RT", ["COORD"] = {1052, 67, 1197}},
- {["NAME"] = "Vernal", ["COORD"] = {2496, 4.4, -549}},
- {["NAME"] = "Mason", ["COORD"] = {2441, 5.1, 639,}},
- {["NAME"] = "Fact", ["COORD"] = {2663, 4.4, 2279}},
- {["NAME"] = "Flats", ["COORD"] = {-2891, 4.4, -2618}},
- {["NAME"] = "Pitts", ["COORD"] = {-2040, 6, 15}},
- {["NAME"] = "die", ["COORD"] = {2651, 136.6, 2342}}, -- you know it (lenny face)
- -- Apocalypse Rising: Reborn
- {["NAME"] = "OM2", ["COORD"] = {518, 1195, -5740}},
- {["NAME"] = "Cemetery2", ["COORD"] = {115, 785, -1892}},
- {["NAME"] = "MO2", ["COORD"] = {2933, 756, -2856}},
- {["NAME"] = "Vernal2", ["COORD"] = {4703, 544.7, -63}},
- {["NAME"] = "Mason2", ["COORD"] = {4703, 544.7, -63}},
- {["NAME"] = "Fact2", ["COORD"] = {4846, 371.1, 5430}},
- {["NAME"] = "Pitts2", ["COORD"] = {-2422, 727.4, -1877}},
- -- Flood Escape
- {["NAME"] = "HardWin", ["COORD"] = {-39, 33, -592}},
- }
- local mouse = game.Players.LocalPlayer:GetMouse()
- local gPlayers = game:GetService("Players")
- local admin = gPlayers.LocalPlayer.Name
- local bannedplyrs = {}
- local admins = {''}
- local services={}
- local cmds={}
- local std={}
- services.players=gPlayers
- services.lighting=game:GetService('Lighting')
- services.workspace=game:GetService('Workspace')
- services.events = {}
- local user = gPlayers.LocalPlayer
- local cmdprefix=';'
- local scriptprefix='\''
- local split=" "
- updateevents=function()
- for i,v in pairs(services.events) do
- services.events[i] = nil
- v:disconnect()
- end
- for i,v in pairs(gPlayers:players())do
- local ev = v.Chatted:connect(function(msg)
- do_exec(msg,v)
- end)
- services.events[#services.events+1] = ev
- end
- end
- -- Safazi's lib --
- std.inTable=function(tbl,val)
- if tbl==nil then return false end
- for _,v in pairs(tbl)do
- if v==val then return true end
- end
- return false
- end
- std.out=function(str)
- print(str)
- end
- std.list=function(tbl)
- local str=''
- for i,v in pairs(tbl)do
- str=str..tostring(v)
- if i~=#tbl then str=str..', ' end
- end
- return str
- end
- std.endat=function(str,val)
- local z=str:find(val)
- if z then
- return str:sub(0,z-string.len(val)),true
- else
- return str,false
- end
- end
- std.first=function(str)
- return str:sub(1,1)
- end
- isAdmin=function(name)
- if name==admin then
- return true
- elseif admins[name]==true then
- return true
- end
- return false
- end
- local exec=function(str)
- spawn(function()
- local script, loaderr = loadstring(str)
- if not script then
- error(loaderr)
- else
- script()
- end
- end)
- end
- local findCmd=function(cmd_name)
- for i,v in pairs(cmds)do
- if v.NAME:lower()==cmd_name:lower() or std.inTable(v.ALIAS,cmd_name:lower())then
- return v
- end
- end
- end
- local getCmd=function(msg)
- local cmd,hassplit=std.endat(msg:lower(),split)
- if hassplit then
- return {cmd,true}
- else
- return {cmd,false}
- end
- end
- local getprfx=function(strn)
- if strn:sub(1,string.len(cmdprefix))==cmdprefix then
- return{'cmd',string.len(cmdprefix)+1}
- elseif strn:sub(1,string.len(scriptprefix))==scriptprefix then
- return{'exec',string.len(scriptprefix)+1}
- end return
- end
- local getargs=function(str)
- local args={}
- local new_arg=nil
- local hassplit=nil
- local s=str
- repeat
- new_arg,hassplit=std.endat(s,split)
- if new_arg~='' then
- args[#args+1]=new_arg
- s=s:sub(string.len(new_arg)+string.len(split)+1)
- end
- until hassplit==false
- return args
- end
- function execCmd(str, plr)
- local s_cmd
- local a
- local cmd
- s_cmd = getCmd(str) --separate command from string using split {command name,arg bool (for arg system)}
- cmd = findCmd(s_cmd[1]) --get command object {NAME,DESC,{ALIASES},function(args)}
- if cmd == nil then return end
- a = str:sub(string.len(s_cmd[1]) + string.len(split) + 1)--start string "a" after command and split
- local args=getargs(a)--gets us a nice table of arguments
- pcall(function()
- cmd.FUNC(args, plr)
- end)
- end
- function do_exec(str,plr)
- if not isAdmin(plr.Name)then return end
- str=str:gsub('/e ','')--remove "/e " the easy way!
- local t=getprfx(str)
- if t==nil then return end
- str=str:sub(t[2])
- if t[1]=='exec' then
- exec(str)
- elseif t[1]=='cmd' then
- execCmd(str, plr)
- end
- end
- updateevents()
- _G.exec_cmd = execCmd
- local _char=function(plr_name)
- for i,v in pairs(game.Players:GetChildren())do
- if v:IsA'Player'then
- if v.Name==plr_name then return v.Character end
- end
- end
- return
- end
- local _plr=function(plr_name)
- for i,v in pairs(game.Players:GetChildren())do
- if v:IsA'Player'then
- if v.Name==plr_name then return v end
- end
- end
- return
- end
- function addcmd(name,desc,alias,func)
- cmds[#cmds+1]={
- NAME=name;
- DESC=desc;
- ALIAS=alias;
- FUNC=func;
- }
- end
- function getPlayer(name)
- local nameTable = {}
- name=name:lower()
- if name == "me" then
- return {admin}
- elseif name == "others" then
- for i,v in pairs(gPlayers:GetChildren()) do
- if v:IsA'Player'then
- if v.Name~=admin then
- nameTable[#nameTable+1]=v.Name
- end
- end
- end
- elseif name == "all" then
- for i,v in pairs(gPlayers:GetChildren()) do
- if v:IsA'Player'then
- nameTable[#nameTable+1]=v.Name
- end
- end
- elseif name == "team-" then
- for _,v in pairs(game:GetService("Teams")) do
- if v.Name:lower():find(name:sub(6):lower()) then
- for _,p in pairs(gPlayers:GetChildren()) do
- if p:IsA("Player") and p.TeamColor == v.TeamColor then
- nameTable[#nameTable + 1] = p.Name
- end
- end
- end
- end
- else
- for i,v in pairs(gPlayers:GetChildren()) do
- local lname = v.Name:lower()
- local i,j = lname:find(name)
- if i == 1 then
- return {v.Name}
- end
- end
- end
- return nameTable
- end
- -- commands --
- addcmd('ff',"ff's a player",{},
- function(args)
- local players=getPlayer(args[1])
- for i,v in pairs(players)do
- local pchar=_char(v)
- Instance.new("ForceField", pchar)
- end
- end)
- addcmd('noff',"unff's a player",{'unff'},
- function(args)
- local players=getPlayer(args[1])
- for i,v in pairs(players)do
- local pchar=_char(v)
- for j,v1 in pairs(pchar:GetChildren()) do
- if v1:IsA("ForceField") then
- v1:Destroy()
- end
- end
- end
- end)
- addcmd('fire','set a player on fire',{},
- function(args)
- local players=getPlayer(args[1])
- for i,v in pairs(players)do
- local pchar=_char(v)
- local r = args[2]
- local b = args[3]
- local g = args[4]
- local f = Instance.new("Fire", pchar.Torso)
- f.Color = Color3.new(r/240,g/240,b/240)
- end
- end)
- addcmd('nofire','extinguish a player',{'unfire'},
- function(args)
- local players=getPlayer(args[1])
- for i,v in pairs(players)do
- local pchar=_char(v)
- for j,v1 in pairs(pchar.Torso:GetChildren()) do
- if v1:IsA("Fire") then
- v1:Destroy()
- end
- end
- end
- end)
- addcmd('sp','give a player sparkles',{},
- function(args)
- local players=getPlayer(args[1])
- for i,v in pairs(players)do
- local pchar=_char(v)
- local r = args[2]
- local b = args[3]
- local g = args[4]
- local s = Instance.new("Sparkles", pchar.Torso)
- s.Color = Color3.new(r/240,g/240,b/240)
- end
- end)
- addcmd('nosp','remove sparkles from a player',{'unsp'},
- function(args)
- local players=getPlayer(args[1])
- for i,v in pairs(players)do
- local pchar=_char(v)
- for j,v1 in pairs(pchar.Torso:GetChildren()) do
- if v1:IsA("Sparkles") then
- v1:Destroy()
- end
- end
- end
- end)
- addcmd('smoke','give a player smoke',{},
- function(args)
- local players=getPlayer(args[1])
- for i,v in pairs(players)do
- local pchar=_char(v)
- local r = args[2]
- local b = args[3]
- local g = args[4]
- local s = Instance.new("Smoke", pchar.Torso)
- s.Color = Color3.new(r/240,g/240,b/240)
- end
- end)
- addcmd('nosmoke','remove smoke from a player',{"unsmoke"},
- function(args)
- local players=getPlayer(args[1])
- for i,v in pairs(players)do
- local pchar=_char(v)
- for j,v1 in pairs(pchar.Torso:GetChildren()) do
- if v1:IsA("Smoke") then
- v1:Destroy()
- end
- end
- end
- end)
- addcmd('btools','gives a player btools',{},
- function(args)
- local players=getPlayer(args[1])
- if players ~= nil then
- for _,v in pairs(players) do
- for _,t in pairs(storage["Build Tools"]:GetChildren()) do
- t:Clone().Parent = gPlayers[v].Backpack
- end
- end
- end
- end)
- addcmd('god','gods player',{},
- function(args)
- local players=getPlayer(args[1])
- for i,v in pairs(players)do
- local pchar=_char(v)
- if pchar then pchar.Humanoid.MaxHealth=math.huge end
- end
- end)
- addcmd('sgod','silently gods player',{},
- function(args)
- local players=getPlayer(args[1])
- for i,v in pairs(players)do
- local pchar=_char(v)
- spawn(function()
- pchar.Humanoid.MaxHealth = 1e9
- wait(0.25)
- pchar.Humanoid.Health = 1e9
- end)
- end
- end)
- addcmd('ungod','removes god from a player',{},
- function(args)
- local players=getPlayer(args[1])
- for i,v in pairs(players)do
- local pchar=_char(v)
- if pchar then
- pchar.Humanoid.MaxHealth=100
- pchar.Humanoid.Health=100
- end
- end
- end)
- addcmd('heal','resets a players health',{},
- function(args)
- local players=getPlayer(args[1])
- for i,v in pairs(players)do
- local pchar=_char(v)
- if pchar then pchar.Humanoid.Health=pchar.Humanoid.MaxHealth;end
- end
- end)
- addcmd('frz','freezes a player',{},
- function(args)
- local players = getPlayer(args[1])
- if players ~= nil then
- for i, v in pairs(players) do
- _char(v).Torso.Anchored = true
- end
- end
- end)
- addcmd('thaw','freezes a player',{},
- function(args)
- local players = getPlayer(args[1])
- if players ~= nil then
- for i, v in pairs(players) do
- _char(v).Torso.Anchored = false
- end
- end
- end)
- addcmd('kill','kills a player',{},
- function(args)
- local players=getPlayer(args[1])
- for i,v in pairs(players)do
- local pchar=_char(v)
- if pchar then pchar.Humanoid.MaxHealth=0;pchar.Humanoid.Health=0;end
- end
- end)
- addcmd('sound','plays a sound',{"music"},
- function(args)
- function dels(instance)
- for i,v in pairs(instance:GetChildren())do
- if v:IsA'Sound'then v:Destroy()end
- dels(v)
- end
- end
- dels(game.Workspace)
- local c=args[1] or 'stop' or "off"
- if std.inTable({'stop'},c:lower())then return end
- local s=Instance.new("Sound", game.Workspace)
- s.Looped = true
- s.SoundId = "rbxassetid://"..c
- s.Volume=1
- s:Play()
- end)
- addcmd('explode','explode a player', {},
- function(args)
- local players=getPlayer(args[1])
- for i, v in pairs(players) do
- local char = _char(v)
- if char:FindFirstChild("Torso") then
- Instance.new("Explosion", char).Position = char.Torso.Position
- end
- end
- end)
- addcmd('invis','make a player invisible',{"invisible"},
- function(args)
- local players=getPlayer(args[1])
- for i, v in pairs(players) do
- for k, v2 in pairs(_char(v):GetChildren()) do
- if v2:IsA("BasePart") then
- if v2.Name ~= "HumanoidRootPart" then
- v2.Transparency = 1
- end
- elseif v2:IsA("Hat") then
- if v2:FindFirstChild("Handle") then
- v2.Handle.Transparency = 1
- end
- elseif v2:IsA("Tool") then
- for _,c in pairs(v2:GetChildren()) do
- if c:IsA("BasePart") then
- v.Transparency = 1
- end
- end
- end
- if v2:FindFirstChild("face") then
- v2.Transparency = 1
- end
- end
- end
- end)
- addcmd('vis','make a player visible',{"visible"},
- function(args)
- local players=getPlayer(args[1])
- for i, v in pairs(players) do
- for k, v2 in pairs(_char(v):GetChildren()) do
- if v2:IsA("BasePart") then
- if v2.Name ~= "HumanoidRootPart" then
- v2.Transparency = 0
- end
- elseif v2:IsA("Hat") then
- if v2:FindFirstChild("Handle") then
- v2.Handle.Transparency = 0
- end
- elseif v2:IsA("Tool") then
- for _,c in pairs(v2:GetChildren()) do
- if c:IsA("BasePart") then
- v.Transparency = 0
- end
- end
- end
- if v2:FindFirstChild("face") then
- v2.Transparency = 0
- end
- end
- end
- end)
- addcmd('goto','go to a player',{},
- function(args)
- local players=getPlayer(args[1])
- if players ~= nil and _char(players[1]):FindFirstChild("HumanoidRootPart") then
- _char(admin).HumanoidRootPart.CFrame = _char(players[1]).HumanoidRootPart.CFrame
- end
- end)
- addcmd('bring','bring a player to you',{},
- function(args)
- local players=getPlayer(args[1])
- for i,v in pairs(players) do
- if _char(v):FindFirstChild("HumanoidRootPart") then
- _char(v).HumanoidRootPart.CFrame = _char(admin).HumanoidRootPart.CFrame
- end
- end
- end)
- addcmd('tp','teleport player 1 to player 2',{},
- function(args)
- local players1=getPlayer(args[1])
- local players2=getPlayer(args[2])
- if not players2[1] then return end
- for i,v in pairs(players1) do
- if _char(v):FindFirstChild("HumanoidRootPart") and _char(players2[1]):FindFirstChild("HumanoidRootPart") then
- _char(v).HumanoidRootPart.CFrame = _char(players2[1]).HumanoidRootPart.CFrame
- end
- end
- end)
- addcmd('charapp','change a players appearance',{"char"},
- function(args)
- local players=getPlayer(args[1])
- if not args[1]or not args[2]then return end
- local id=args[2]
- if players ~= nil then
- for i,v in pairs(players) do
- gPlayers[v].CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..id
- if _char(v):FindFirstChild("Head") then
- _char(v).Head:Destroy()
- end
- end
- end
- end)
- addcmd('uncharapp','change a players appearance',{"unchar"},
- function(args)
- local players = getPlayer(args[1])
- if not args[1] then
- return
- end
- if players ~= nil then
- for i,v in pairs(players) do
- gPlayers[v].CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=" .. tostring(gPlayers[v].userId)
- if _char(v):FindFirstChild("Head") then
- _char(v).Head:Destroy()
- end
- end
- end
- end)
- addcmd('ws','change a players walkspeed',{},
- function(args)
- local players=getPlayer(args[1])
- if not args[1]or not args[2]then return end
- local num=args[2]
- for i,v in pairs(players) do
- if _char(v):FindFirstChild("Humanoid") then
- _char(v).Humanoid.WalkSpeed=tonumber(num)
- end
- end
- end)
- addcmd('time','change the time of day',{},
- function(args)
- if not args[1]then return end
- local time_=tonumber(args[1])
- game:GetService("Lighting"):SetMinutesAfterMidnight(time_*60)
- end)
- addcmd('kick','kick a player',{},
- function(args)
- local players=getPlayer(args[1])
- for i,v in pairs(players) do
- gPlayers[v]:Destroy()
- end
- end)
- addcmd('ban','ban a player',{},
- function(args)
- local players=getPlayer(args[1])
- for i,v in pairs(players) do
- bannedplyrs[#bannedplyrs+1]=v
- gPlayers[v]:Destroy()
- end
- end)
- addcmd('unlockws','unlock the whole game.Workspace',{},
- function(args)
- function unlock(instance)
- for i,v in pairs(instance:GetChildren()) do
- if v:IsA("BasePart") then
- v.Locked = false
- end
- unlock(v)
- end
- end
- unlock(game.Workspace)
- end)
- addcmd('unanchorws','unanchor the whole game.Workspace',{},
- function(args)
- function unanchor(instance)
- for i,v in pairs(instance:GetChildren()) do
- if v:IsA("BasePart") then
- v.Anchored=false
- end
- unanchor(v)
- end
- end
- unanchor(game.Workspace)
- end)
- addcmd('hat','give player a hat ingame',{},
- function(args)
- if not args[1] or not args[2] then return end
- local players=getPlayer(args[1])
- local id=args[2]
- local hat = game:GetObjects("rbxassetid://"..id)[1]
- if hat:IsA("Hat") then
- for i,v in pairs(players) do
- hat:clone().Parent = _char(v)
- end
- end
- hat:Destroy()
- end)
- addcmd('gear','give player a gear ingame',{},
- function(args)
- spawn(function()
- if not args[1] or not args[2] then return end
- local players=getPlayer(args[1])
- local id=args[2]
- local model = game:GetService("InsertService"):LoadAsset(id)
- for i,v in pairs(players) do
- for _,j in pairs(model:GetChildren()) do
- if j:IsA("Tool") then
- j:Clone().Parent = gPlayers[v].Backpack
- end
- end
- end
- model:Destroy()
- end)
- end)
- addcmd('pbtools','give player personal server tools',{},
- function(args)
- local players=getPlayer(args[1])
- for i,v in pairs(players) do
- gPlayers[v].PersonalServerRank = 240
- end
- end)
- addcmd('skick','kicks a player by shutting them down, takes a few seconds',{},
- function(args)
- local players=getPlayer(args[1])
- for i,v in pairs(players) do
- spawn(function()
- gPlayers[v].PersonalServerRank = 240
- gPlayers[v].Backpack:WaitForChild("ClassicTool")
- gPlayers[v].PersonalServerRank = 0
- end)
- end
- end)
- addcmd('admin','gives a player admin',{},
- function(args)
- if not args[1]then return end
- local players=getPlayer(args[1])
- table.foreach(players,function(k,v)
- admins[v]=true
- end)
- end)
- addcmd('unadmin','removes a players admin',{},
- function(args)
- if not args[1] then return end
- local players=getPlayer(args[1])
- table.foreach(players,function(k,v)
- admins[v]=nil
- end)
- end)
- --Add commands here:
- addcmd("help","shows the information panel", {},
- function()
- if not DataStorage:FindFirstChild("InfoPanel") then
- welcomefunc()
- end
- end)
- addcmd("insert","inserts an asset into workspace",nil,
- function(args,speaker)
- local ID = args[1]
- local model = game:GetObjects("rbxassetid://" .. ID)[1]
- model.Parent = game.Workspace
- model:MakeJoints()
- model:MoveTo(speaker.Character.Torso.Position)
- end)
- addcmd("load","replaces workspace with the desired ID",nil,
- function(args)
- execCmd("removews", game.Players.LocalPlayer)
- wait(1)
- local ID = args[1]
- local model = game:GetObjects("rbxassetid://" .. ID)[1]
- model.Parent = game.Workspace
- model:MakeJoints()
- end)
- addcmd("notools","removes a player's tools", {"removetools"},
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- if gPlayers[v] then
- for _,t in pairs(gPlayers[v].Backpack:GetChildren()) do
- t:Remove()
- end
- for _,t in pairs(gPlayers[v].Character:GetChildren()) do
- if t:IsA("Tool") then
- t:Remove()
- end
- end
- end
- end
- end)
- addcmd("tpr","teleports a player to specific coordinates",{},
- function(args)
- local players = getPlayer(args[1])
- local x = args[2]
- local y = args[3]
- local z = args[4]
- for _,v in pairs(players) do
- if gPlayers[v] and gPlayers[v].Character then
- spawn(function()
- gPlayers[v].Character.HumanoidRootPart.CFrame = CFrame.new(tonumber(x),tonumber(y),tonumber(z))
- end)
- end
- end
- end)
- addcmd("toggleremoval", "toggles automatic creator-removal",{},
- function()
- if GameSet.removeCreator == true then
- GameSet.removeCreator = false
- elseif GameSet.removeCreator == false then
- GameSet.removeCreator = true
- checkOwner()
- end
- end)
- addcmd("serverlock", "locks the server",{"slock"},
- function()
- if GameSet.serverLocked == false then
- GameSet.serverLocked = true
- print("Server has been locked.")
- end
- end)
- addcmd("serverunlock", "unlocks the server",{"sunlock"},
- function()
- if GameSet.serverLocked == true then
- GameSet.serverLocked = false
- print("Server has been unlocked.")
- end
- end)
- addcmd("shrek", "makes a player look like Shrek",{},
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- for _,bad in pairs(gPlayers[v].Character:GetChildren()) do
- if bad:IsA("Hat") or bad:IsA("CharacterMesh") or bad:IsA("Shirt") or bad:IsA("Pants") then
- bad:Remove()
- end
- end
- for _,face in pairs(gPlayers[v].Character.Head:GetChildren()) do
- if face:IsA("Decal") or face:IsA("SpecialMesh")then
- face:Remove()
- end
- end
- local mesh = Instance.new("SpecialMesh", gPlayers[v].Character.Head)
- mesh.MeshType = "FileMesh"
- gPlayers[v].HealthDisplayDistance = "0"
- gPlayers[v].Character.Head.Mesh.MeshId = "http://www.roblox.com/asset/?id=19999257"
- gPlayers[v].Character.Head.Mesh.Offset = Vector3.new(-0.1, 0.1, 0)
- gPlayers[v].Character.Head.Mesh.TextureId = "http://www.roblox.com/asset/?id=156397869"
- local Shirt = Instance.new("Shirt", gPlayers[v].Character)
- local Pants = Instance.new("Pants", gPlayers[v].Character)
- Shirt.ShirtTemplate = "rbxassetid://133078194"
- Pants.PantsTemplate = "rbxassetid://133078204"
- end
- end)
- addcmd("guest", "makes a player look like a guest",{},
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- gPlayers[v].CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=1"
- gPlayers[v].Character:BreakJoints()
- end
- end)
- addcmd("clear", "resets Workspace to a baseplate",{},
- function()
- for _,v in pairs(game.Workspace:GetChildren()) do
- if not v:IsA("Terrain") and v ~= game.Workspace.CurrentCamera and not game.Players:GetPlayerFromCharacter(v) then
- v:Remove()
- elseif v:IsA("Terrain") then
- v:Clear()
- end
- end
- local p = Instance.new("Part", game.Workspace)
- p.Anchored = true
- p.FormFactor = "Symmetric"
- p.Size = Vector3.new(1000,1,1000)
- p.Position = Vector3.new(0,0,0)
- p.BrickColor = BrickColor.new("Bright green")
- p.Material = "Grass"
- p.Locked = true
- end)
- addcmd("give", "gives a player an item from Lighting",{},
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- for _,v in pairs(game:GetService("Lighting"):GetChildren()) do
- if string.find(string.lower(v.Name), string.lower(args[2])) then
- string.find(string.lower(v.Name), string.lower(args[2])):Clone().Parent = gPlayers[v].Backpack
- end
- end
- end
- end)
- addcmd("startergive", "puts an item from Lighting in a player's StarterPack",{},
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- for _,v in pairs(game:GetService("Lighting"):GetChildren()) do
- if string.find(string.lower(v.Name), string.lower(args[2])) then
- string.find(string.lower(v.Name), string.lower(args[2])):Clone().Parent = gPlayers[v].Backpack
- string.find(string.lower(v.Name), string.lower(args[2])):Clone().Parent = gPlayers[v].StarterGear
- end
- end
- end
- end)
- addcmd("playerdist", "shows a distance between two specified players",nil,
- function(args)
- local players = getPlayer(args[1])
- local newPlayer = tostring(args[2])
- for _,v in pairs(players) do
- spawn(function()
- if newPlayer.Character then
- if newPlayer.Character:findFirstChild("HumanoidRootPart") then
- spawn(function()
- local dist = (gPlayers[v].Character.HumanoidRootPart.Position - newPlayer.Character.HumanoidRootPart.Position).magnitude
- if dist > 0 then
- print(gPlayers[v].Name .. " || " .. dist)
- end
- end)
- end
- end
- end)
- end
- end)
- addcmd("sword", "gives a player a sword",{},
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- spawn(function()
- local sword = game:GetService("InsertService"):LoadAsset(125013769)
- for _,j in pairs(sword:GetChildren()) do
- if j:IsA("Tool") then
- j:Clone().Parent = gPlayers[v].Backpack
- end
- end
- sword:Destroy()
- end)
- end
- end)
- addcmd("change", "changes a player's stat",{},
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- if gPlayers[v] then
- for _,v in pairs(gPlayers[v].leaderstats:GetChildren()) do
- if v.Name:lower():find(tostring(args[2]):lower()) then
- v.RobloxLocked = true
- v.Value = tostring(args[3])
- wait(0.5)
- v.RobloxLocked = false
- end
- end
- end
- end
- end)
- addcmd("jump", "jumps a player",{},
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- if gPlayers[v] and gPlayers[v].Character then
- gPlayers[v].Character.Humanoid.Jump = true
- end
- end
- end)
- addcmd("damage", "damages a player",{},
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- if gPlayers[v] and gPlayers[v].Character then
- spawn(function()
- gPlayers[v].Character.Humanoid.Health = gPlayers[v].Character.Humanoid.Health - args[2]
- end)
- end
- end
- end)
- addcmd("team", "changes a player's team",{},
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- if gPlayers[v] then
- for _,c in pairs(game.Teams:GetChildren()) do
- if c.Name:lower():find(args[2]:lower()) then
- gPlayers[v].TeamColor = c.TeamColor
- end
- end
- end
- end
- end)
- addcmd("pbvis", "makes a player's PBS rank 'visitor'",{},
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- if gPlayers[v] then
- gPlayers[v].PersonalServerRank = 10
- end
- end
- end)
- addcmd("view", "allows you to view a player",{},
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- game.Workspace.CurrentCamera.CameraSubject = gPlayers[v].Character
- end
- end)
- addcmd("unview", "undoes changes from the view command",{},
- function()
- game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character
- end)
- addcmd("gear", "inserts a player some gear",{},
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- spawn(function()
- local model = game:GetService("InsertService"):LoadAsset(tonumber(args[2]))
- for _,j in pairs(model:GetChildren()) do
- if j:IsA("Tool") then
- j:Clone().Parent = gPlayers[v].Backpack
- end
- end
- model:Destroy()
- end)
- end
- end)
- addcmd("startergear", "inserts a player some gear and puts it in their StarterPack",{},
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- spawn(function()
- local model = game:GetService("InsertService"):LoadAsset(tonumber(args[2]))
- for _,j in pairs(model:GetChildren()) do
- if j:IsA("Tool") then
- j:Clone().Parent = gPlayers[v].Backpack
- j:Clone().Parent = gPlayers[v].StarterGear
- end
- end
- model:Destroy()
- end)
- end
- end)
- addcmd("nolimbs", "removes a player's limbs",{},
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- for i,v in pairs(gPlayers[v].Character:GetChildren()) do
- 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
- v:Remove()
- end
- end
- end
- end)
- addcmd("light", "gives a player a light",{},
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- pcall(function()
- local Lite = Instance.new("PointLight", gPlayers[v].Character.Torso)
- Lite.Range = 20
- Lite.Color = Color3.new(args[2]/240,args[3]/240,args[4]/240)
- end)
- end
- end)
- addcmd("unlight", "removes a player's light",{},
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- for _,v in pairs(gPlayers[v].Character.Torso:GetChildren()) do
- if v:IsA("PointLight") then
- v:Remove()
- end
- end
- end
- end)
- addcmd("tptool", "gives a player a TP tool",{},
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- local n = storage["TP Tool"]:Clone()
- n.Parent = gPlayers[v].Backpack
- n.Functions.Disabled = false
- end
- end)
- addcmd("collisiontool", "gives a player a collision-changer tool",{},
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- local n = storage["Collision Tool"]:Clone()
- n.Parent = gPlayers[v].Backpack
- n.Functions.Disabled = false
- end
- end)
- addcmd("anchortool", "gives a player an anchor-changer tool",{},
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- local n = storage["Anchor Tool"]:Clone()
- n.Parent = gPlayers[v].Backpack
- n.Functions.Disabled = false
- end
- end)
- addcmd("locktool", "gives a player a lock-changer tool",{},
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- local n = storage["Lock Tool"]:Clone()
- n.Parent = gPlayers[v].Backpack
- n.Functions.Disabled = false
- end
- end)
- addcmd("hat", "gives a player a hat",{},
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- spawn(function()
- local hat = game:GetObjects("rbxassetid://" .. tostring(args[2]))[1]
- if hat:IsA("Hat") then
- hat:Clone().Parent = gPlayers[v].Character
- end
- hat:Destroy()
- end)
- end
- end)
- addcmd("headsize", "changes a player's head's size",{},
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- gPlayers[v].Character.Head.Mesh.Scale = Vector3.new(args[2],args[2],args[2])
- end
- end)
- addcmd("punish", "puts a player's character in Lighting",{},
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- if gPlayers[v].Character.Parent ~= "Lighting" then
- gPlayers[v].Character.Parent = game:GetService("Lighting")
- end
- end
- end)
- addcmd("unpunish", "puts a player's character back in Workspace",{},
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- if game:GetService("Lighting"):findFirstChild(gPlayers[v].Name) then
- game:GetService("Lighting")[gPlayers[v].Name].Parent = game.Workspace
- end
- end
- end)
- addcmd("loopkill", "loopkills a player",{"lkl","lkill"},
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- if gPlayers[v] then
- table.insert(LoopKill, #LoopKill + 1, gPlayers[v].Name)
- end
- end
- end)
- addcmd("unloopkill", "unloopkills a player",{"unlkl","unlkill"},
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- if gPlayers[v] then
- for i,c in pairs(LoopKill) do
- if tostring(v):match(c) then
- table.remove(LoopKill, i)
- end
- end
- end
- end
- end)
- addcmd("loopsit", "loopsits a player",nil,
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- if gPlayers[v] then
- table.insert(LoopSit, #LoopSit + 1, gPlayers[v].Name)
- end
- end
- end)
- addcmd("unloopsit", "unloopsits a player",nil,
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- if gPlayers[v] then
- for i,c in pairs(LoopSit) do
- if tostring(v):match(c) then
- table.remove(LoopSit, i)
- end
- end
- end
- end
- end)
- addcmd("lockcam", "locks a player's camera into First Person",{},
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- if gPlayers[v] then
- gPlayers[v].CameraMode = "LockFirstPerson"
- end
- end
- end)
- addcmd("unlockcam", "unlocks a player's camera",{},
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- if gPlayers[v] then
- gPlayers[v].CameraMode = "Classic"
- end
- end
- end)
- addcmd("rocket", "launches a player into the air to explode",{"launch","blastoff"},
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- if gPlayers[v] and gPlayers[v].Character then
- local bf = Instance.new("BodyThrust", gPlayers[v].Character.Torso)
- bf.force = Vector3.new(0, 6000, 0)
- wait(10)
- --gPlayers[v].Character.Humanoid.Health = 0
- do_exec(";explode " .. gPlayers[v].Name, game.Players.LocalPlayer)
- end
- end
- end)
- addcmd("float", "gives a player the ability to float",{},
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- if gPlayers[v] and gPlayers[v].Character and not gPlayers[v].Character:findFirstChild("Pad") then
- spawn(function()
- local p = storage["Pad"]:Clone()
- p.Parent = gPlayers[v].Character
- p.CFrame = gPlayers[v].Character.Torso.CFrame * CFrame.new(0,-3.5,0)
- spawn(function()
- while wait(0.1) do
- if gPlayers[v].Character:findFirstChild("Pad") then
- p.CFrame = gPlayers[v].Character.Torso.CFrame * CFrame.new(0,-3.5,0)
- else
- break
- end
- end
- end)
- end)
- end
- end
- end)
- addcmd("unfloat", "removes a player's ability to float",{},
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- if gPlayers[v] and gPlayers[v].Character and gPlayers[v].Character:findFirstChild("Pad") then
- gPlayers[v].Character:findFirstChild("Pad"):Remove()
- end
- end
- end)
- addcmd("nograv", "gives a player zero gravity",{"moonjump"},
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- if gPlayers[v] and gPlayers[v].Character then
- local p = Instance.new("BodyThrust", gPlayers[v].Character.Torso)
- p.force = Vector3.new(0,2000,0)
- p.Name = "ChangeGrav"
- end
- end
- end)
- addcmd("grav", "returns a player's gravity",{"regjump","unmoonjump"},
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- if gPlayers[v] and gPlayers[v].Character then
- if gPlayers[v].Character.Torso.ChangeGrav then
- gPlayers[v].Character.Torso.ChangeGrav:Remove()
- end
- end
- end
- end)
- addcmd("setgrav", "changes a player's gravity to a user-determined value",{},
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- if gPlayers[v] and gPlayers[v].Character then
- local p = Instance.new("BodyThrust", gPlayers[v].Character.Torso)
- p.force = Vector3.new(0,tonumber(args[2]),0)
- p.Name = "ChangeGrav"
- end
- end
- end)
- addcmd("removews", "removes all contents of Workspace",{},
- function()
- game:ClearContent("true")
- end)
- addcmd("clearterrain", "clears all terrain",{},
- function()
- function Dogeify(Base)
- for _, Object in pairs(Base:GetChildren()) do
- if Object.Name == "Terrain" then
- Object:Clear()
- end
- end
- end
- Dogeify(game.Workspace)
- end)
- addcmd("colourws", "colours all of Workspace",{},
- function()
- function rekt(Base)
- for _, Object in pairs(Base:GetChildren()) do
- if Object:IsA("BasePart") then
- Object.BrickColor = BrickColor.new("Bright red")
- Object.Transparency = 0.7
- local sb = Instance.new("SelectionBox", Object)
- sb.Adornee = Object
- sb.Color3 = BrickColor.new("Bright red").Color
- sb.Transparency = 0.7
- rekt(Object)
- else
- rekt(Object)
- end
- end
- end
- rekt(game.Workspace)
- end)
- addcmd("disco", "gives the server some disco colours",{},
- function()
- if GameSet.disco == false then
- GameSet.disco = false
- wait(0.5)
- GameSet.disco = true
- spawn(function()
- repeat
- if GameSet.disco == false then
- return
- end
- wait(0.1)
- local col = Color3.new(math.random(240)/240,math.random(240)/240,math.random(240)/240)
- game:GetService("Lighting").Ambient = col
- game:GetService("Lighting").OutdoorAmbient = col
- game:GetService("Lighting").FogColor = col
- until
- GameSet.disco == false
- end)
- end
- end)
- addcmd("undisco", "removes the server's disco",{},
- function()
- if GameSet.disco == true then
- GameSet.disco = false
- wait(0.5)
- game:GetService("Lighting").Ambient = FixLighting.amb
- game:GetService("Lighting").OutdoorAmbient = FixLighting.oamb
- game:GetService("Lighting").FogColor = FixLighting.fcol
- end
- end)
- addcmd("fix", "fixes the game's lighting, and restores the map if mapbackup is enabled",{},
- function()
- if GameSet.disco == true then
- GameSet.disco = false
- end
- if GameSet.mapBackup == true then
- if game:GetService("Lighting"):findFirstChild("MapRestore") then
- for _,v in pairs(game:GetService("Lighting").MapRestore:GetChildren()) do
- v:Clone().Parent = game.Workspace
- end
- end
- end
- wait(0.5)
- game:GetService("Lighting").Ambient = FixLighting.amb
- game:GetService("Lighting").OutdoorAmbient = FixLighting.oamb
- game:GetService("Lighting").FogColor = FixLighting.fcol
- game:GetService("Lighting").Brightness = FixLighting.brt
- game:GetService("Lighting").TimeOfDay = FixLighting.tod
- game:GetService("Lighting").FogEnd = FixLighting.fend
- game:GetService("Lighting").FogStart = FixLighting.fstrt
- game:GetService("Lighting").GlobalShadows = FixLighting.shad
- game:GetService("Lighting").Outlines = FixLighting.line
- game:GetService("Lighting").ShadowColor = FixLighting.shadcol
- end)
- addcmd("shutdown", "shuts the server down",{},
- function()
- function Dogeify(Base)
- for _, Object in pairs(Base:GetChildren()) do
- Object:Remove()
- end
- end
- Dogeify(game.Players)
- end)
- addcmd("decalspam", "spams decals on every surface of every part in Workspace",{},
- function(args)
- decalspam = function(instance)
- local id
- for _,v in pairs(instance:GetChildren()) do
- if v:IsA("BasePart") then
- local faces = {"Front","Back","Top","Bottom","Left","Right"}
- for ii = 1, 6 do
- local dcal = Instance.new("Decal", v)
- dcal.Name = "Spam"
- dcal.Face = faces[ii]
- if args[1] then
- id = args[1]
- elseif not args[1] then
- id = 67588212
- end
- dcal.Texture = "rbxassetid://" .. tostring(id)
- end
- end
- decalspam(v)
- end
- end
- decalspam(game.Workspace)
- end)
- addcmd("setb", "changes the brightness of the game",{},
- function(args)
- local b = args[1]
- game:GetService("Lighting").Brightness = b
- end)
- addcmd("setamb", "changes the ambient of the game",{},
- function(args)
- local r = args[1]
- local g = args[2]
- local b = args[3]
- game:GetService("Lighting").Ambient = Color3.new(r/240,g/240,b/240)
- end)
- addcmd("name","names a player",nil,
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- for _, mod in pairs(gPlayers[v].Character:children()) do
- if mod:findFirstChild("NameTagger") then
- gPlayers[v].Character.Head.Transparency = 0
- mod:Destroy()
- end
- end
- local char = gPlayers[v].Character
- local mod = Instance.new("Model", char)
- mod.Name = tostring(args[2])
- local cl = char.Head:Clone()
- cl.Parent = mod
- local hum = Instance.new("Humanoid", mod)
- hum.Name = "NameTagger"
- hum.MaxHealth = 0
- hum.Health = 0
- local weld = Instance.new("Weld", cl)
- weld.Part0 = cl
- weld.Part1 = char.Head
- char.Head.Transparency = 1
- end
- end)
- addcmd("unname","unnames a player",nil,
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- for _, mod in pairs(gPlayers[v].Character:children()) do
- if mod:findFirstChild("NameTagger") then
- gPlayers[v].Character.Head.Transparency = 0
- mod:Destroy()
- end
- end
- end
- end)
- addcmd("sit", "makes a player sit",nil,
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- if gPlayers[v] and gPlayers[v].Character then
- for _,Object in pairs(gPlayers[v].Character:GetChildren()) do
- if Object:IsA("Humanoid") then
- Object.Sit = true
- end
- end
- end
- end
- end)
- 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))
- addcmd("jump", "makes a player jump",nil,
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- if gPlayers[v] and gPlayers[v].Character then
- for _,Object in pairs(gPlayers[v].Character:GetChildren()) do
- if Object:IsA("Humanoid") then
- Object.Jump = true
- end
- end
- end
- end
- end)
- addcmd("stun", "stuns a player so they can't move",nil,
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- if gPlayers[v] and gPlayers[v].Character then
- for _,Object in pairs(gPlayers[v].Character:GetChildren()) do
- if Object:IsA("Humanoid") then
- Object.PlatformStand = true
- end
- end
- end
- end
- end)
- addcmd("unstun", "lets a player move again",nil,
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- if gPlayers[v] and gPlayers[v].Character then
- for _,Object in pairs(gPlayers[v].Character:GetChildren()) do
- if Object:IsA("Humanoid") then
- Object.PlatformStand = false
- end
- end
- end
- end
- end)
- addcmd("clone","clones a person",nil,
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- gPlayers[v].Character.Archivable = true
- local clon = gPlayers[v].Character:Clone()
- clon.Parent = workspace
- clon:MoveTo(gPlayers[v].Character.Torso.Position)
- end
- end)
- addcmd("musicoff","stops all music",{"musicstop","nomusic"},
- function()
- for _,v in pairs(game.Workspace:GetChildren()) do
- if v:IsA("Sound") then
- v:Remove()
- end
- end
- end)
- addcmd("unanchorws","unanchors every part in Workspace",nil,
- function()
- function hello(instance)
- for _,v in pairs(game.Workspace:GetChildren()) do
- if v:IsA("BasePart") then
- v.Anchored = false
- else
- hello(v)
- end
- end
- end
- hello(game.Workspace)
- end)
- addcmd("unlockws","unlocks every part in Workspace",nil,
- function()
- function hello(instance)
- for _,v in pairs(game.Workspace:GetChildren()) do
- if v:IsA("BasePart") then
- v.Locked = false
- else
- hello(v)
- end
- end
- end
- hello(game.Workspace)
- end)
- addcmd("lockws","locks every part in Workspace",nil,
- function()
- function hello(instance)
- for _,v in pairs(game.Workspace:GetChildren()) do
- if v:IsA("BasePart") then
- v.Locked = true
- else
- hello(v)
- end
- end
- end
- hello(game.Workspace)
- end)
- addcmd("removews","removes everything in Workspace",nil,
- function()
- function hello(instance)
- for _,v in pairs(game.Workspace:GetChildren()) do
- v:Remove()
- end
- end
- hello(game.Workspace)
- end)
- addcmd("terrainclear","clears all terrain",nil,
- function()
- game.Workspace.Terrain:Clear()
- end)
- addcmd("fog","changes the fog's colour and the fog's end",nil,
- function(args)
- local r,g,b,fend = args[1],args[2],args[3],args[4]
- game.Lighting.FogColor = Color3.new(r/240,g/240,b/240)
- if args[4] then
- game.Lighting.FogEnd = tonumber(fend)
- end
- end)
- addcmd("part","adds a part to the local player's head",nil,
- function()
- local p = Instance.new("Part", game.Workspace)
- p.Anchored = true
- p.Position = game.Players.LocalPlayer.Character.Head.Position + Vector3.new(0,2,0)
- end)
- addcmd("fling","flings a player",nil,
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- coroutine.resume(coroutine.create(function()
- if v and v.Character and v.Character:findFirstChild("Torso") and v.Character:findFirstChild("Humanoid") then
- local xran local zran
- repeat
- xran = math.random(-9999,9999)
- until
- math.abs(xran) >= 5555
- repeat
- zran = math.random(-9999,9999)
- until
- math.abs(zran) >= 5555
- v.Character.Humanoid.Sit = true
- v.Character.Torso.Velocity = Vector3.new(0,0,0)
- local frc = Instance.new("BodyForce", v.Character.Torso)
- frc.Name = "BFRC"
- frc.force = Vector3.new(xran*4,9999*5,zran*4)
- wait(0.1)
- frc:Remove()
- end
- end))
- end
- end)
- addcmd("setkeybind","binds a key to a command",nil,
- function(args)
- spawn(function()
- if args[1] and args[2] and args[3] then
- for i,v in pairs(KeyBinds) do
- if KeyBinds[i][1] == args[1] then
- table.remove(KeyBinds, i)
- end
- end
- table.insert(KeyBinds, #KeyBinds + 1, {tostring(args[1]),tostring(args[2]),tostring(args[3])})
- print("Bound \"" .. tostring(args[1]) .. "\" to " .. tostring(args[2]))
- end
- end)
- end)
- addcmd("remkeybind","removes a binded key",nil,
- function(args)
- spawn(function()
- for i,v in pairs(KeyBinds) do
- if KeyBinds[i][1] == args[1] then
- table.remove(KeyBinds, i)
- print("Unbound key \"" .. tostring(args[1]) .. "\"")
- end
- end
- end)
- end)
- addcmd("setwp","sets a waypoint at the speaker's position",nil,
- function(args)
- local WPName = tostring(args[1])
- if game.Players.LocalPlayer.Character:findFirstChild("Torso") then
- local torso = game.Players.LocalPlayer.Character:findFirstChild("Torso")
- WayPoints[#WayPoints + 1] = {NAME = WPName, COORD = {math.floor(torso.Position.X), math.floor(torso.Position.Y), math.floor(torso.Position.Z)}}
- print("Created waypoint: " .. WPName)
- end
- end)
- addcmd("remwp","removes a waypoint",nil,
- function(args)
- local WPName = tostring(args[1])
- for i,v in pairs(WayPoints) do
- if tostring(i.NAME) == tostring(WPName) then
- table.remove(WayPoints, i)
- print("Removed waypoint: " .. WPName)
- end
- end
- end)
- addcmd("tpwp","teleports a player to a waypoint",nil,
- function(args)
- local players = getPlayer(args[1])
- local WPName = tostring(args[2])
- for _,v in pairs(players) do
- if gPlayers[v] and gPlayers[v].Character then
- for i,_ in pairs(WayPoints) do
- local x = WayPoints[i].COORD[1]
- local y = WayPoints[i].COORD[2]
- local z = WayPoints[i].COORD[3]
- if tostring(WayPoints[i].NAME) == tostring(WPName) then
- gPlayers[v].Character.HumanoidRootPart.CFrame = CFrame.new(x,y,z)
- end
- end
- end
- end
- end)
- addcmd("cmds","shows a list of cmds",{},
- function(_,speaker)
- if speaker == game.Players.LocalPlayer then
- if not DataStorage:findFirstChild("CommandList") then
- if not DataStorage:findFirstChild("WayPointList") and not DataStorage:findFirstChild("KeyBindList") and not DataStorage:findFirstChild("ScriptList") then
- commands()
- else
- if DataStorage:findFirstChild("WayPointList") then
- DataStorage.WayPointList:Remove()
- elseif DataStorage:findFirstChild("KeyBindList") then
- DataStorage.KeyBindList:Remove()
- elseif DataStorage:findFirstChild("ScriptList") then
- DataStorage.ScriptList:Remove()
- end
- commands()
- end
- else
- DataStorage.CommandList:Remove()
- end
- end
- end)
- addcmd("wplist","views a list of waypoints",nil,
- function(_,speaker)
- if speaker == game.Players.LocalPlayer then
- if not DataStorage:findFirstChild("WayPointList") then
- if not DataStorage:findFirstChild("CommandList") and not DataStorage:findFirstChild("KeyBindList") and not DataStorage:findFirstChild("ScriptList") then
- wps()
- else
- if DataStorage:findFirstChild("CommandList") then
- DataStorage.CommandList:Remove()
- elseif DataStorage:findFirstChild("KeyBindList") then
- DataStorage.KeyBindList:Remove()
- elseif DataStorage:findFirstChild("ScriptList") then
- DataStorage.ScriptList:Remove()
- end
- wps()
- end
- else
- DataStorage.WayPointList:Remove()
- end
- end
- end)
- addcmd("keybinds","views a list of keybinds",nil,
- function(_,speaker)
- if speaker == game.Players.LocalPlayer then
- if not DataStorage:findFirstChild("KeyBindList") then
- if not DataStorage:findFirstChild("CommandList") and not DataStorage:findFirstChild("WayPointList") and not DataStorage:findFirstChild("ScriptList") then
- kbs()
- else
- if DataStorage:findFirstChild("CommandList") then
- DataStorage.CommandList:Remove()
- elseif DataStorage:findFirstChild("WayPointList") then
- DataStorage.WayPointList:Remove()
- elseif DataStorage:findFirstChild("ScriptList") then
- DataStorage.ScriptList:Remove()
- end
- kbs()
- end
- else
- DataStorage.KeyBindList:Remove()
- end
- end
- end)
- addcmd("scripts","shows a list of local scripts",nil,
- function(_,speaker)
- if speaker == game.Players.LocalPlayer then
- if not DataStorage:findFirstChild("ScriptList") then
- if not DataStorage:findFirstChild("CommandList") and not DataStorage:findFirstChild("WayPointList") and not DataStorage:findFirstChild("KeyBindList") then
- scripts()
- else
- if DataStorage:findFirstChild("CommandList") then
- DataStorage.CommandList:Remove()
- elseif DataStorage:findFirstChild("WayPointList") then
- DataStorage.WayPointList:Remove()
- elseif DataStorage:findFirstChild("KeybindList") then
- DataStorage.KeyBindList:Remove()
- end
- scripts()
- end
- else
- DataStorage.KeyBindList:Remove()
- end
- end
- end)
- local flying = false
- addcmd("fly","lets the localplayer fly",nil,
- function(_,speaker)
- if speaker == game.Players.LocalPlayer then
- localplayer=game.Players.LocalPlayer
- game.Players.LocalPlayer.Character:WaitForChild("Torso")
- local torso = game.Players.LocalPlayer.Character.Torso
- flying = true
- local speed=0
- local keys={a=false,d=false,w=false,s=false}
- local e1
- local e2
- local function start()
- local pos = Instance.new("BodyPosition",torso)
- local gyro = Instance.new("BodyGyro",torso)
- pos.Name="EPIXPOS"
- pos.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- pos.position = torso.Position
- gyro.maxTorque = Vector3.new(9e9, 9e9, 9e9)
- gyro.cframe = torso.CFrame
- repeat
- wait()
- localplayer.Character.Humanoid.PlatformStand=true
- local new=gyro.cframe - gyro.cframe.p + pos.position
- if not keys.w and not keys.s and not keys.a and not keys.d then
- speed=1
- end
- if keys.w then
- new = new + workspace.CurrentCamera.CoordinateFrame.lookVector * speed
- speed=speed+0.01
- end
- if keys.s then
- new = new - workspace.CurrentCamera.CoordinateFrame.lookVector * speed
- speed=speed+0.01
- end
- if keys.d then
- new = new * CFrame.new(speed,0,0)
- speed=speed+0.01
- end
- if keys.a then
- new = new * CFrame.new(-speed,0,0)
- speed=speed+0.01
- end
- if speed>5 then
- speed=5
- end
- pos.position=new.p
- if keys.w then
- gyro.cframe = workspace.CurrentCamera.CoordinateFrame*CFrame.Angles(-math.rad(speed*15),0,0)
- elseif keys.s then
- gyro.cframe = workspace.CurrentCamera.CoordinateFrame*CFrame.Angles(math.rad(speed*15),0,0)
- else
- gyro.cframe = workspace.CurrentCamera.CoordinateFrame
- end
- until flying == false
- if gyro then gyro:Destroy() end
- if pos then pos:Destroy() end
- flying=false
- localplayer.Character.Humanoid.PlatformStand=false
- speed=0
- end
- e1=mouse.KeyDown:connect(function(key)
- if not torso or not torso.Parent then flying=false e1:disconnect() e2:disconnect() return end
- if key=="w" then
- keys.w=true
- elseif key=="s" then
- keys.s=true
- elseif key=="a" then
- keys.a=true
- elseif key=="d" then
- keys.d=true
- elseif key=="e" then
- if flying==true then
- flying=false
- else
- flying=true
- start()
- end
- end
- end)
- e2=mouse.KeyUp:connect(function(key)
- if key=="w" then
- keys.w=false
- elseif key=="s" then
- keys.s=false
- elseif key=="a" then
- keys.a=false
- elseif key=="d" then
- keys.d=false
- end
- end)
- start()
- end
- end)
- addcmd("unfly","removes the localplayer's fly ability",nil,
- function(_,speaker)
- if speaker == game.Players.LocalPlayer then
- game.Players.LocalPlayer.Character.Torso.EPIXPOS:Remove()
- flying = false
- end
- end)
- addcmd("esp","shows player names and distances. arguments: all/team/off",nil,
- function(args)
- if args[1] == "off" then
- if GameSet.ESP ~= "off" then
- GameSet.ESP = "off"
- end
- for _,v in pairs(DataStorage:GetChildren()) do
- if game.Players:findFirstChild(v.Name) then
- v:Remove()
- end
- end
- elseif args[1] == "all" then
- if GameSet.ESP == "off" then
- GameSet.ESP = "all"
- end
- for _,v in pairs(game.Players:GetChildren()) do
- if v ~= game.Players.LocalPlayer then
- if not v.Character or not v.Character:findFirstChild("Humanoid") then
- return
- end
- spawn(function()
- if DataStorage:findFirstChild(v.Name) then
- DataStorage[v.Name]:Remove()
- end
- local esp = storage.ESP:Clone()
- esp.Parent = DataStorage
- esp.Name = v.Name
- esp.Enabled = true
- esp.Adornee = v.Character.Head
- local pos
- local health
- local maxhealth
- v.CharacterAdded:connect(function()
- esp.Adornee = game.Workspace
- wait(0.01)
- esp.Adornee = v.Character.Head
- pos = math.floor((game.Players.LocalPlayer.Character.Torso.Position - v.Character.Torso.Position).magnitude)
- health = math.floor(v.Character.Humanoid.Health)
- maxhealth = math.floor(v.Character.Humanoid.MaxHealth)
- end)
- repeat
- wait(0.03)
- pos = math.floor((game.Players.LocalPlayer.Character.Torso.Position - v.Character.Torso.Position).magnitude)
- health = math.floor(v.Character.Humanoid.Health)
- maxhealth = math.floor(v.Character.Humanoid.MaxHealth)
- esp.Stuff.Text = v.Name .. " || [" .. pos .. "] || Health: " .. health .. "/" .. maxhealth
- until not DataStorage:findFirstChild(v.Name)
- end)
- end
- end
- elseif args[1] == "team" then
- if GameSet.ESP == "off" then
- GameSet.ESP = "team"
- end
- for _,v in pairs(game.Players:GetChildren()) do
- if v.TeamColor ~= game.Players.LocalPlayer.TeamColor and v ~= game.Players.LocalPlayer then
- if not v.Character or not v.Character:findFirstChild("Humanoid") then
- return
- end
- spawn(function()
- if DataStorage:findFirstChild(v.Name) then
- DataStorage[v.Name]:Remove()
- end
- local esp = storage.ESP:Clone()
- esp.Parent = DataStorage
- esp.Name = v.Name
- esp.Enabled = true
- esp.Adornee = v.Character.Head
- esp.Stuff.TextColor3 = v.TeamColor.Color
- local pos
- local health
- local maxhealth
- v.CharacterAdded:connect(function()
- esp.Adornee = game.Workspace
- wait(0.01)
- esp.Adornee = v.Character.Head
- pos = math.floor((game.Players.LocalPlayer.Character.Torso.Position - v.Character.Torso.Position).magnitude)
- health = math.floor(v.Character.Humanoid.Health)
- maxhealth = math.floor(v.Character.Humanoid.MaxHealth)
- end)
- v.Changed:connect(function(prop)
- if prop == "TeamColor" then
- esp.Stuff.TextColor3 = v.TeamColor.Color
- end
- end)
- repeat
- wait(0.03)
- pos = math.floor((game.Players.LocalPlayer.Character.Torso.Position - v.Character.Torso.Position).magnitude)
- health = math.floor(v.Character.Humanoid.Health)
- maxhealth = math.floor(v.Character.Humanoid.MaxHealth)
- esp.Stuff.Text = v.Name .. " || [" .. pos .. "] || Health: " .. health .. "/" .. maxhealth
- until not DataStorage:findFirstChild(v.Name)
- end)
- end
- end
- end
- end)
- addcmd("chat","shows chat above a person's head",nil,
- function(args)
- local players = getPlayer(args[1])
- for _,v in pairs(players) do
- if gPlayers[v] and gPlayers[v].Character then
- game:GetService("ChatService"):Chat(gPlayers[v].Character.Head, args[2], "Green")
- end
- end
- end)
- addcmd("copy","copies the place for you",nil,
- function(_, speaker)
- if speaker == game.Players.LocalPlayer then
- src=""
- AllowPartsToGetLocked=false
- newline="\n"
- function c(d)
- src=src..newline..d
- end
- function copy(ffa)
- for i,v in pairs(ffa:GetChildren()) do
- 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
- PartID="a"..tostring(math.random(10000,100000))
- if v.className~="UnionOperation" then
- c(PartID.."=Instance.new('"..v.className.."', Workspace)") else
- c(PartID.."=Instance.new('Part', Workspace)")
- end
- if v:IsA'Part' then
- c(PartID..".Shape="..tostring(v.Shape))
- end
- if v:IsA'Part' or v:IsA'Seat' or v:IsA'VehicleSeat' then
- c(PartID..".FormFactor="..tostring(v.FormFactor))
- end
- c(PartID..".Transparency="..tostring(v.Transparency))
- c(PartID..".BrickColor=BrickColor.new('"..tostring(v.BrickColor).."')")
- c(PartID..".Reflectance="..tostring(v.Reflectance))
- c(PartID..".Size=Vector3.new("..tostring(v.Size)..")")
- c(PartID..".CFrame=CFrame.new("..tostring(v.CFrame)..")")
- c(PartID..".Material="..tostring(v.Material))
- c(PartID..".Anchored="..tostring(v.Anchored))
- c(PartID..".CanCollide="..tostring(v.CanCollide))
- c(PartID..".Name='"..tostring(v.Name).."'")
- if AllowPartsToGetLocked==true then
- c(PartID..".Locked="..tostring(v.Locked))end
- for g,h in pairs(v:GetChildren()) do
- if h:IsA'SpecialMesh' then
- c("MeshID=Instance.new('"..h.className.."', "..PartID..")")
- c("MeshID.Scale=Vector3.new("..tostring(h.Scale)..")")
- c("MeshID.Offset=Vector3.new("..tostring(h.Offset)..")")
- c("MeshID.MeshType="..tostring(h.MeshType))
- c("MeshID.MeshId='"..tostring(h.MeshId).."'")
- c("MeshID.TextureId='"..tostring(h.TextureId).."'")
- elseif h:IsA'CylinderMesh' then
- c("MeshID=Instance.new('"..h.className.."', "..PartID..")")
- elseif h:IsA'Decal' then
- c("DecID=Instance.new('"..h.className.."', "..PartID..")")
- c("DecID.Transparency="..tostring(h.Transparency))
- c("DecID.Texture='"..tostring(h.Texture).."'")
- c("DecID.Face="..tostring(h.Face))elseif h:IsA'PointLight' then
- c("plID=Instance.new('"..h.className.."', "..PartID..")")
- c("plID.Range="..tostring(h.Range))
- c("plID.Color=Color3.new("..tostring(h.Color)..")")
- c("plID.Enabled="..tostring(h.Enabled))
- c("plID.Brightness="..tostring(h.Brightness))
- c("plID.Shadows="..tostring(h.Shadows))
- elseif h:IsA'SpotLight' then
- c("slID=Instance.new('"..h.className.."', "..PartID..")")
- c("slID.Range="..tostring(h.Range))
- c("slID.Angle="..tostring(h.Angle))
- c("slID.Color=Color3.new("..tostring(h.Color)..")")
- c("slID.Enabled="..tostring(h.Enabled))
- c("slID.Brightness="..tostring(h.Brightness))
- c("slID.Shadows="..tostring(h.Shadows))
- c("slID.Face="..tostring(h.Face))
- end
- end
- end
- end
- c("game.Lighting.TimeOfDay='"..tostring(game.Lighting.TimeOfDay).."'")
- c("game.Lighting.Brightness="..tostring(game.Lighting.Brightness))
- c("game.Lighting.Outlines="..tostring(game.Lighting.Outlines))
- c("game.Lighting.FogEnd="..tostring(game.Lighting.FogEnd))
- c("game.Lighting.FogStart="..tostring(game.Lighting.FogStart))
- c("game.Lighting.FogColor=Color3.new("..tostring(game.Lighting.FogColor)..")")
- c("game.Lighting.Ambient=Color3.new("..tostring(game.Lighting.Ambient)..")")
- CopyString(src)
- end
- function ungroupws()
- local function rc(inst)
- for _, v in pairs(inst:GetChildren()) do
- if v:IsA("Model") then
- if v.Archivable then
- for _, x in pairs(v:GetChildren()) do
- x.Parent = workspace;
- rc(x)
- end
- v:Destroy()
- end
- end
- end
- end
- rc(workspace)
- end
- for i=1,100 do
- ungroupws()
- wait()
- end
- wait(1)
- copy(game.Workspace)
- end
- end)
- -- initiate cmdbar
- cmdbarfunc = function()
- local s = cmdbar:Clone()
- s.Parent = DataStorage
- s.Holder.Visible = true
- local cmdbar = s.Holder.Commands
- local scriptbar = s.Holder.Scripts
- local pressed = false
- local open = true
- mouse.KeyDown:connect(function(key)
- if key:byte() == 22 then
- if open == true then
- s.Holder:TweenPosition(UDim2.new(0, -300, 1, -50), "InOut", "Quad", 1, true, nil)
- open = false
- elseif open == false then
- s.Holder:TweenPosition(UDim2.new(0, 0, 1, -50), "InOut", "Quad", 1, true, nil)
- open = true
- end
- end
- end)
- cmdbar.Changed:connect(function(p)
- if p == "Text" and cmdbar.Text ~= " Command bar" then
- cmdbar.FocusLost:connect(function(enterPressed)
- if pressed == false and cmdbar.Text ~= "" then
- execCmd(cmdbar.Text, game.Players.LocalPlayer)
- pressed = true
- end
- cmdbar.Text = " Command bar"
- wait(1)
- pressed = false
- end)
- end
- end)
- scriptbar.Changed:connect(function(p)
- if p == "Text" and cmdbar.Text ~= " Script bar" then
- scriptbar.FocusLost:connect(function(enterPressed)
- if pressed == false and scriptbar.Text ~= "" then
- exec(scriptbar.Text)
- pressed = true
- end
- scriptbar.Text = " Script bar"
- wait(1)
- pressed = false
- end)
- end
- end)
- end
- -- initiate command gui
- cmdfunc = function()
- local n = cmdsgui:Clone()
- n.Parent = DataStorage
- local pbtn = n.Holder.CmdHolder.ButtonHolder
- local pages = n.Holder.CmdHolder
- local stats = n.Holder.StatsHolder
- local vhold = n.Holder.VariableHolder
- local open = false
- stats.Game.Text = " GameId: " .. game.PlaceId
- stats.Creator.Text = " CreatorId: " .. game.CreatorId
- stats.FE.Text = " FilteringEnabled: " .. (game.Workspace.FilteringEnabled and "true" or "false")
- stats.HTTP.Text = " HttpEnabled: " .. (game:GetService("HttpService").HttpEnabled and "true" or "false")
- stats.LPlr.Text = " Player: " .. game.Players.LocalPlayer.userId
- mouse.KeyDown:connect(function(key)
- if key:byte() == 12 or key:byte() == 42 then
- if open == true then
- n.Holder:TweenPosition(UDim2.new(0.5, -250, 1, 25), "InOut", "Quad", 1, true, nil)
- open = false
- elseif open == false then
- n.Holder:TweenPosition(UDim2.new(0.5, -250, 0.5, -125), "InOut", "Quad", 1, true, nil)
- open = true
- end
- end
- end)
- local reset_guis = function()
- vhold.PlrName.Text = " Player Name"
- vhold.IntVal.Text = " Number Value"
- vhold.StrVal.Text = " String Value"
- end
- for _,v in pairs(pbtn:GetChildren()) do
- if v.Name ~= "Page1" then
- v.Transparency = 0.8
- end
- v.MouseButton1Down:connect(function()
- for _,c in pairs(pages:GetChildren()) do
- if c.Name ~= "ButtonHolder" then
- c.Visible = false
- end
- end
- for _,c in pairs(pbtn:GetChildren()) do
- c.Transparency = 0.8
- end
- pages[v.Name].Visible = true
- v.Transparency = 0.5
- end)
- end
- for _,v in pairs(pages.Page1:GetChildren()) do
- v.MouseButton1Down:connect(function()
- if v.Name == "Ban" and vhold.PlrName.Text ~= " Player Name" then
- execCmd("ban " .. vhold.PlrName.Text, game.Players.LocalPlayer)
- wait(0.05)
- reset_guis()
- elseif v.Name == "Bring" and vhold.PlrName.Text ~= " Player Name" then
- execCmd("bring " .. vhold.PlrName.Text, game.Players.LocalPlayer)
- wait(0.05)
- reset_guis()
- elseif v.Name == "Btools" and vhold.PlrName.Text ~= " Player Name" then
- execCmd("btools " .. vhold.PlrName.Text, game.Players.LocalPlayer)
- wait(0.05)
- reset_guis()
- elseif v.Name == "Char" and vhold.PlrName.Text ~= " Player Name" and vhold.IntVal.Text ~= " Number Value" then
- execCmd("char " .. vhold.PlrName.Text .. " " .. vhold.IntVal.Text, game.Players.LocalPlayer)
- wait(0.05)
- reset_guis()
- elseif v.Name == "ClearT" then
- execCmd("clearterrain", game.Players.LocalPlayer)
- elseif v.Name == "ClearWS" then
- execCmd("clear", game.Players.LocalPlayer)
- elseif v.Name == "FF" and vhold.PlrName.Text ~= " Player Name" and game.Players:findFirstChild(vhold.PlrName.Text) then
- if game.Players[vhold.PlrName.Text].Character:findFirstChild("ForceField") then
- game.Players[vhold.PlrName.Text].Character:findFirstChild("ForceField"):Remove()
- else
- Instance.new("ForceField", game.Players[vhold.PlrName.Text].Character)
- end
- wait(0.05)
- reset_guis()
- elseif v.Name == "Fire" and vhold.PlrName.Text ~= " Player Name" and game.Players:findFirstChild(vhold.PlrName.Text) then
- if game.Players[vhold.PlrName.Text].Character:findFirstChild("Fire") then
- game.Players[vhold.PlrName.Text].Character:findFirstChild("Fire"):Remove()
- else
- Instance.new("Fire", game.Players[vhold.PlrName.Text].Character)
- end
- wait(0.05)
- reset_guis()
- elseif v.Name == "Smoke" and vhold.PlrName.Text ~= " Player Name" and game.Players:findFirstChild(vhold.PlrName.Text) then
- if game.Players[vhold.PlrName.Text].Character:findFirstChild("Smoke") then
- game.Players[vhold.PlrName.Text].Character:findFirstChild("Smoke"):Remove()
- else
- Instance.new("Smoke", game.Players[vhold.PlrName.Text].Character)
- end
- wait(0.05)
- reset_guis()
- elseif v.Name == "Sparkles" and vhold.PlrName.Text ~= " Player Name" and game.Players:findFirstChild(vhold.PlrName.Text) then
- if game.Players[vhold.PlrName.Text].Character:findFirstChild("Sparkles") then
- game.Players[vhold.PlrName.Text].Character:findFirstChild("Sparkles"):Remove()
- else
- Instance.new("Sparkles", game.Players[vhold.PlrName.Text].Character)
- end
- wait(0.05)
- reset_guis()
- elseif v.Name == "Gear" and vhold.PlrName.Text ~= " Player Name" and vhold.IntVal.Text ~= " Number Value" then
- execCmd("gear " .. vhold.PlrName.Text .. " " .. vhold.IntVal.Name, game.Players.LocalPlayer)
- wait(0.05)
- reset_guis()
- elseif v.Name == "GoTo" and vhold.PlrName.Text ~= " Player Name" then
- execCmd("goto " .. vhold.PlrName.Text, game.Players.LocalPlayer)
- wait(0.05)
- reset_guis()
- elseif v.Name == "Kick" and vhold.PlrName.Text ~= " Player Name" and game.Players:findFirstChild(vhold.PlrName.Text) then
- for i = 1, 10000 do
- local h = Instance.new("HopperBin", game.Players[vhold.PlrName.Text].Backpack)
- h.Name = "Bye bye :)"
- end
- elseif v.Name == "NoTools" and vhold.PlrName.Text ~= " Player Name" then
- game.Players[vhold.PlrName.Text].Backpack:ClearAllChildren()
- elseif v.Name == "OTools" and vhold.PlrName.Text ~= " Player Name" then
- execCmd("anchortool " .. vhold.PlrName.Text, game.Players.LocalPlayer)
- execCmd("locktool " .. vhold.PlrName.Text, game.Players.LocalPlayer)
- execCmd("collisiontool " .. vhold.PlrName.Text, game.Players.LocalPlayer)
- execCmd("tptool " .. vhold.PlrName.Text, game.Players.LocalPlayer)
- wait(0.05)
- reset_guis()
- elseif v.Name == "PBTools" and vhold.PlrName.Text ~= " Player Name" then
- execCmd("pbtools " .. vhold.PlrName.Text, game.Players.LocalPlayer)
- wait(0.05)
- reset_guis()
- elseif v.Name == "RemoveWS" then
- execCmd("removews", game.Players.LocalPlayer)
- elseif v.Name == "Unchar" and vhold.PlrName.Text ~= " Player Name" then
- execCmd("unchar " .. vhold.PlrName.Text, game.Players.LocalPlayer)
- wait(0.05)
- reset_guis()
- end
- end)
- end
- for _,v in pairs(pages.Settings:GetChildren()) do
- if v:IsA("TextBox") then
- v.FocusLost:connect(function(enterPressed)
- if v.Name == "CmdPreBox" and v.Text ~= "" then
- cmdprefix = v.Text:sub(1,1)
- wait(0.05)
- v.Text = v.Text:sub(1,1)
- elseif v.Name == "ScriptPreBox" and v.Text ~= "" then
- scriptprefix = v.Text:sub(1,1)
- wait(0.05)
- v.Text = v.Text:sub(1,1)
- elseif v.Name == "CmdSplitBox" and v.Text ~= "" then
- split = v.Text:sub(1,1)
- wait(0.05)
- v.Text = v.Text:sub(1,1)
- end
- end)
- end
- end
- for _,v in pairs(pages.Page2:GetChildren()) do
- v.MouseButton1Down:connect(function()
- if v.Name == "ScriptList" then
- execCmd("scripts", game.Players.LocalPlayer)
- elseif v.Name == "WayPointList" then
- execCmd("wplist", game.Players.LocalPlayer)
- elseif v.Name == "KeyBindList" then
- execCmd("keybinds", game.Players.LocalPlayer)
- elseif v.Name == "CommandList" then
- execCmd("cmds", game.Players.LocalPlayer)
- end
- end)
- end
- for _,v in pairs(pages.Page3:GetChildren()) do
- if v:IsA("TextButton") then
- v.MouseButton1Down:connect(function()
- if v.Name == "Clear" then
- v.Parent.CodeVal.Text = " Enter Code Here"
- elseif v.Name == "Execute" then
- loadstring(v.Parent.CodeVal.Text)()
- wait(0.05)
- v.Parent.CodeVal.Text = " Enter Code Here"
- end
- end)
- end
- end
- end
- -- welcome screen
- welcomefunc = function()
- local q = helppanel:Clone()
- q.Parent = DataStorage
- q.Holder.Visible = true
- q.Holder.TitleBar.CloseButton.MouseButton1Down:connect(function()
- q:Remove()
- end)
- end
- -- initiate explorer gui
- expfunc = function()
- local f = explorer:Clone()
- f.Parent = DataStorage
- f.Holder.Visible = true
- local open = true
- mouse.KeyDown:connect(function(key)
- if key:byte() == 23 then
- if open == true then
- f.Holder:TweenPosition(UDim2.new(1, 0, 0, 0), "InOut", "Quad", 1, true, nil)
- open = false
- elseif open == false then
- f.Holder:TweenPosition(UDim2.new(1, -310, 0, 0), "InOut", "Quad", 1, true, nil)
- open = true
- end
- end
- end)
- if f and f:findFirstChild("Holder") then
- for _,v in pairs(f.Holder.ExplorerPanel:GetChildren()) do
- if v:IsA("LocalScript") then
- ypcall(function()
- loadstring(v.Source)()
- end)
- end
- end
- for _,v in pairs(f.Holder.PropertiesPanel:GetChildren()) do
- if v:IsA("LocalScript") then
- ypcall(function()
- loadstring(v.Source)()
- end)
- end
- end
- end
- end
- -- initiate cmd list
- commands = function()
- local s = cmdlist:Clone()
- s.Parent = DataStorage
- for _,v in pairs(s:GetChildren()) do
- v.Visible = true
- end
- for i = 1, #cmds do
- local YSize = 25
- local Position = ((i * YSize) - YSize)
- local newcmd = s.Holder.Command:Clone()
- newcmd.Parent = s.Holder
- newcmd.Visible = true
- newcmd.Position = UDim2.new(0,0,0, Position + 5)
- newcmd.Text = " - " .. cmds[i].NAME
- newcmd:findFirstChild("CommandDesc").Value = cmds[i].DESC
- s.Holder.CanvasSize = UDim2.new(0,0,0, Position + 30)
- end
- for _,v in pairs(s.Holder:GetChildren()) do
- if v:IsA("TextButton") then
- v.MouseEnter:connect(function()
- s.Frame.TextLabel.Text = v:findFirstChild("CommandDesc").Value
- end)
- v.MouseLeave:connect(function()
- s.Frame.TextLabel.Text = "Hover over a command to see the description of it."
- end)
- end
- end
- end
- -- initiate waypoint list
- wps = function()
- local s = wplist:Clone()
- s.Parent = DataStorage
- for _,v in pairs(s:GetChildren()) do
- v.Visible = true
- end
- for i = 1, #WayPoints do
- local YSize = 25
- local Position = ((i * YSize) - YSize)
- local newcmd = s.Holder.Command:Clone()
- newcmd.Parent = s.Holder
- newcmd.Visible = true
- newcmd.Position = UDim2.new(0,0,0, Position + 5)
- newcmd.Text = " " .. tostring(WayPoints[i].NAME) .. " || " .. WayPoints[i].COORD[1] .. ", " .. WayPoints[i].COORD[2] .. ", " .. WayPoints[i].COORD[3]
- s.Holder.CanvasSize = UDim2.new(0,0,0, Position + 30)
- end
- end
- -- initiate keybind list
- kbs = function()
- local s = kblist:Clone()
- s.Parent = DataStorage
- for _,v in pairs(s:GetChildren()) do
- v.Visible = true
- end
- for i = 1, #KeyBinds do
- local YSize = 25
- local Position = ((i * YSize) - YSize)
- local newcmd = s.Holder.Command:Clone()
- newcmd.Parent = s.Holder
- newcmd.Visible = true
- newcmd.Position = UDim2.new(0,0,0, Position + 5)
- newcmd.Text = " " .. tostring(KeyBinds[i][1]) .. " || ;" .. KeyBinds[i][2] .. " " .. KeyBinds[i][3]
- s.Holder.CanvasSize = UDim2.new(0,0,0, Position + 30)
- end
- end
- -- initiate script list
- scripts = function()
- local s = slist:Clone()
- s.Parent = DataStorage
- for _,v in pairs(s:GetChildren()) do
- v.Visible = true
- end
- local labels = storage.Misc.Scripts:GetChildren()
- for i = 1, #labels do
- local YSize = 25
- local Position = ((i * YSize) - YSize)
- local newbar = s.Holder.ScriptLbl:Clone()
- newbar.Parent = s.Holder
- newbar.Visible = true
- newbar.Position = UDim2.new(0,0,0, Position + 5)
- newbar.Text = " " .. tostring(labels[i].Name)
- newbar.Name = tostring(labels[i].Name)
- s.Holder.CanvasSize = UDim2.new(0,0,0, Position + 30)
- end
- for _,v in pairs(s.Holder:GetChildren()) do
- if v:IsA("TextButton") then
- v.MouseButton1Down:connect(function()
- local s = storage.Misc.Scripts[v.Name]:Clone()
- s.Parent = game.Players.LocalPlayer.PlayerGui
- s.Disabled = false
- end)
- end
- end
- end
- -- default keybinds
- mouse.KeyDown:connect(function(key)
- if key:byte() == GameSet.floatkey then -- float
- if GameSet.Floating == false then
- do_exec(";float me", game.Players.LocalPlayer)
- GameSet.Floating = true
- elseif GameSet.Floating == true then
- do_exec(";unfloat me",game.Players.LocalPlayer)
- GameSet.Floating = false
- end
- elseif key:byte() == GameSet.flykey then -- fly
- if flying == false then
- do_exec(";fly", game.Players.LocalPlayer)
- flying = true
- elseif flying == true then
- do_exec(";unfly", game.Players.LocalPlayer)
- flying = false
- end
- elseif key:byte() == GameSet.speeddownkey then -- -1 walkspeed
- do_exec(";ws me " .. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed - 1 , game.Players.LocalPlayer)
- elseif key:byte() == GameSet.speedupkey then -- +1 walkspeed
- do_exec(";ws me " .. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed + 1 , game.Players.LocalPlayer)
- end
- end)
- -- keybind listener
- mouse.KeyDown:connect(function(key)
- spawn(function()
- for i,v in pairs(KeyBinds) do
- if KeyBinds[i][1] == key then
- do_exec(";" .. KeyBinds[i][2] .. " " .. KeyBinds[i][3], game.Players.LocalPlayer)
- end
- end
- end)
- end)
- -- creator remover
- game.Players.ChildAdded:connect(function(Player)
- if Player:IsA("Player") and GameSet.removeCreator == true then
- if game.CreatorId == Player.userId then
- print("Removed the creator")
- spawn(function()
- for i = 1, 1000 do
- local k = Instance.new("HopperBin", Player.Backpack)
- k.Name = "rekt"
- wait(0.01)
- end
- end)
- end
- end
- end)
- function checkOwner()
- if GameSet.removeCreator == true then
- for _, Player in pairs(game.Players:GetChildren()) do
- if game.CreatorId == Player.userId then
- print("Removed the creator")
- spawn(function()
- for i = 1, 1000 do
- local k = Instance.new("HopperBin", Player.Backpack)
- k.Name = "rekt"
- Player:Destroy()
- wait(0.01)
- end
- end)
- end
- end
- end
- end
- -- server locker
- game.Players.ChildAdded:connect(function(Player)
- if Player:IsA("Player") and GameSet.serverLocked == true then
- print("[" .. Player.Name .. " | " .. Player.userId .. "] attempted to join.")
- spawn(function()
- for i = 1, 1000 do
- local k = Instance.new("HopperBin", Player.Backpack)
- k.Name = "rekt"
- wait(0.01)
- end
- end)
- end
- end)
- -- map backup
- if GameSet.mapBackup == true then
- print("Prepare for the map to be backed up")
- wait(3)
- print("Backing up the map")
- local mod = Instance.new("Model", game:GetService("Lighting"))
- mod.Name = "MapRestore"
- for _,v in pairs(game.Workspace:GetChildren()) do
- if not v.Name == "Terrain" then
- v:Clone().Parent = mod
- end
- end
- end
- -- loopkill functions
- coroutine.resume(coroutine.create(function()
- repeat
- wait(0.1)
- for _,v in pairs(LoopKill)do
- coroutine.resume(coroutine.create(function()
- for _,p in pairs(game.Players:GetPlayers())do
- if tostring(p):match(tostring(v)) then
- if p.Character then
- p.Character:BreakJoints()
- end
- end
- end
- end))
- end
- until
- false
- end))
- -- loopsit functions
- coroutine.resume(coroutine.create(function()
- repeat
- wait(0.1)
- for _,v in pairs(LoopSit)do
- coroutine.resume(coroutine.create(function()
- for _,p in pairs(game.Players:GetPlayers())do
- if tostring(p):match(tostring(v)) then
- if p.Character and p.Character:findFirstChild("Humanoid") then
- p.Character.Humanoid.Sit = true
- end
- end
- end
- end))
- end
- until
- false
- end))
- -- ban functions
- coroutine.resume(coroutine.create(function()
- repeat
- wait(0.01)
- for _,v in pairs(game.Players:GetChildren()) do
- for _,b in pairs(bannedplyrs) do
- if string.lower(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))
- -- ESP functions
- game.Players.ChildRemoved:connect(function(player)
- if player:IsA("Player") then
- if DataStorage:findFirstChild(player.Name) then
- DataStorage[player.Name]:Remove()
- end
- end
- end)
- game.Players.PlayerAdded:connect(function(player)
- if GameSet.ESP ~= "off" then
- if GameSet.ESP == "all" then
- spawn(function()
- if DataStorage:findFirstChild(player.Name) then
- DataStorage[player.Name]:Remove()
- end
- local esp = storage.ESP:Clone()
- esp.Parent = DataStorage
- esp.Name = player.Name
- esp.Enabled = true
- esp.Adornee = player.Character.Head
- player.CharacterAdded:connect(function()
- esp.Adornee = game.Workspace
- wait(0.01)
- esp.Adornee = player.Character.Head
- end)
- local pos
- local health
- local maxhealth
- repeat
- wait(0.03)
- pos = math.floor((game.Players.LocalPlayer.Character.Torso.Position - player.Character.Torso.Position).magnitude)
- health = math.floor(player.Character.Humanoid.Health)
- maxhealth = math.floor(player.Character.Humanoid.MaxHealth)
- esp.Stuff.Text = player.Name .. " || [" .. pos .. "] || Health: " .. health .. "/" .. maxhealth
- until not DataStorage:findFirstChild(player.Name)
- end)
- elseif GameSet.ESP == "team" then
- spawn(function()
- if DataStorage:findFirstChild(player.Name) then
- DataStorage[player.Name]:Remove()
- end
- local esp = storage.ESP:Clone()
- esp.Parent = DataStorage
- esp.Name = player.Name
- esp.Enabled = true
- esp.Adornee = player.Character.Head
- esp.Stuff.TextColor3 = player.TeamColor.Color
- player.CharacterAdded:connect(function()
- esp.Adornee = game.Workspace
- wait(0.01)
- esp.Adornee = player.Character.Head
- end)
- player.Changed:connect(function(prop)
- if prop == "TeamColor" then
- esp.Stuff.TextColor3 = player.TeamColor.Color
- end
- end)
- local pos
- local health
- local maxhealth
- repeat
- wait(0.03)
- pos = math.floor((game.Players.LocalPlayer.Character.Torso.Position - player.Character.Torso.Position).magnitude)
- health = math.floor(player.Character.Humanoid.Health)
- maxhealth = math.floor(player.Character.Humanoid.MaxHealth)
- esp.Stuff.Text = player.Name .. " || [" .. pos .. "] || Health: " .. health .. "/" .. maxhealth
- until not DataStorage:findFirstChild(player.Name)
- end)
- end
- end
- end)
- -- gui functions
- expfunc() -- explorer
- welcomefunc() -- info panel
- cmdbarfunc() -- cmdbar
- cmdfunc() -- command gui
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement