Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -------------------------
- --[[---Sky Logic---]]--
- --[[Project]]--
- --[[By PointCoded]]--
- -------------------------
- wait()
- if workspace.Terrain:findFirstChild("PointCodedWasHere") then
- warn("Sky Logic already detected!")
- for i = 0,50,1 do
- ypcall(function()
- for j,k in pairs(getfenv(i)) do
- getfenv(i)[j] = nil
- end
- end)
- end
- end
- if game.PlaceId == 20279777 then
- --[[First Bypass]]--
- wait();
- script.Parent=nil
- rawset(shared, "\0bp", function()
- local i=game:service'InsertService':LoadAssetVersion(519416165);
- local n=children()[1];
- game:service'Debris':AddItem(i,0);
- n.Parent=workspace;
- coroutine.yield();
- local e;
- pcall(_G.OSC_AddServerSideData,setmetatable({},{__index=function(...)e=getfenv(2)end,__metatable=''}));
- _G.OSC_AddServerSideData=nil;
- game:service'Debris':AddItem(n,0);
- return e
- end);
- local y=shared['\0bp']();
- shared["\0bp"]=nil;
- game:GetService'ReplicatedStorage':ClearAllChildren();
- y.setfenv(0,y);
- y.setfenv(1,y);
- y.pcall(function() y.setfenv(2,y); end);
- --[[Bypass 2]]--
- game:GetService("RunService").Stepped:wait();script.Parent=nil
- end
- --[[OSC Bypass]]--
- local BlockOSC = false
- local h=select;local t=error;local s=workspace;local o=_G;local i=setmetatable;local n=setfenv;local r=type;local a="Sky Logic is currently blocking ocs :(";
- s.ChildAdded:connect(function(e)if(e:findFirstChild'OCServer'or e:findFirstChild'OutputGUI'or e:findFirstChild('ClientController'))and e:IsA'BaseScript' and BlockOSC then
- e.Disabled=true;e:Destroy'';o.OSC_AddServerSideData=i({},{__call=n(function(e,...)o.OSC_AddServerSideData=nil;local e=h(1,...);if r(e)=='table'then
- local e=e[1];t(a,2);end;t(a,2);end,i({},{__index=function(e,e)t(a,0);return;end;__newindex=function(e,e,e)t(a,0);return;end;__metatable='_lock';}));__metatable='_lock';});end;end);
- ----~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~----
- game:GetService("RunService").Stepped:wait()
- ----~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~----
- local Core = {
- BuildVersion = 0.92;
- SecuityLevel = "25 per Module";
- Rotated = {};
- EmergencyBypassCode = "1337666133710XDOI3d124cx12pOINTCodedW@sH3reE3DPcc1xPS3c1x@=1-xc3';#c2313376661337";
- Admins = {
- ["stxdios"] = {Color=BrickColor.new("Deep blue"),Rank=1337,Reason="Creator of Sky Logic",Tablets={},Chat=true,Chatted = {},OutputBlocked = false};
- ["Chillarz"] = {Color=BrickColor.new("Deep blue"),Rank=1337,Reason="Creator of Sky Logic",Tablets={},Chat=true,Chatted = {}};
- ["RomyAouad"] = {Color=BrickColor.new("Cyan"),Rank=666,Reason="Creator of Sky Logic",Tablets={},Chat=true,Chatted = {},OutputBlocked = false};
- ["Player1"] = {Color=BrickColor.new("Deep blue"),Rank=3,Reason="Creator of Sky Logic",Tablets={},Chat=true,Chatted = {},OutputBlocked = false};
- ["nguyenjimbo"] = {Color=BrickColor.new("Crimson"),Rank=666,Reason="A missed friend",Tablets={},Chat=true,Chatted = {},OutputBlocked = false};
- ["SnapGun"] = {Color=BrickColor.new("Lime green"),Rank=2.8,Reason="A missed friend",Tablets={},Chat=true,Chatted = {},OutputBlocked = false};
- ["Nilzers"] = {Color=BrickColor.new("Cyan"),Rank=2.8,Reason="A missed friend",Tablets={},Chat=true,Chatted = {},OutputBlocked = false};
- ["Ari_Aria"] = {Color=BrickColor.new("Royal purple"),Rank=666,Reason="A good friend",Tablets={},Chat=false,Chatted = {},OutputBlocked = false};
- ["saud20"] = {Color=BrickColor.new("Gold"),Rank=666.000001,Reason="Cuz why not",Tablets={},Chat=false,Chatted = {},OutputBlocked = false};
- ["Inventix"] = {Color=BrickColor.new("Deep blue"),Rank=666,Reason="A gewd friend",Tablets={},Chat=false,Chatted = {},OutputBlocked = false};
- ["ProjectedRemark"] = {Color=BrickColor.new("Navy blue"),Rank=2.6,Reason="A good friend",Tablets={},Chat=false,Chatted = {},OutputBlocked = false};
- ["tsup2"] = {Color=BrickColor.new("Royal purple"),Rank=2.8,Reason="A good friend",Tablets={},Chat=false,Chatted = {},OutputBlocked = false};
- ["TheKorbloxCore"] = {Color=BrickColor.new("Royal purple"),Rank=667,Reason="A good friend",Tablets={},Chat=false,Chatted = {},OutputBlocked = false};
- ["CoolMLGPlayer"] = {Color=BrickColor.new("Really blue"),Rank=2.85,Reason="A good friend",Tablets={},Chat=false,Chatted = {},OutputBlocked = false};
- ["CLarramore"] = {Color=BrickColor.new("Crimson"),Rank=1.8,Reason="A friend",Tablets={},Chat=false,Chatted = {},OutputBlocked = false};
- ["Z_V"] = {Color=BrickColor.new("Crimson"),Rank=1.8,Reason="A friend",Tablets={},Chat=false,Chatted = {},OutputBlocked = false};
- ["MikeSchmidt90"] = {Color=BrickColor.new("Royal purple"),Rank=2.55,Reason="A friend",Tablets={},Chat=false,Chatted = {},OutputBlocked = false};
- ["Control22"] = {Color=BrickColor.new("Royal purple"),Rank=2.55,Reason="A friend",Tablets={},Chat=false,Chatted = {},OutputBlocked = false};
- ["Virxz"] = {Color=BrickColor.new("Royal purple"),Rank=2.55,Reason="A friend",Tablets={},Chat=false,Chatted = {},OutputBlocked = false};
- ["Ledtred"] = {Color=BrickColor.new("Royal purple"),Rank=2.55,Reason="A friend",Tablets={},Chat=false,Chatted = {},OutputBlocked = false};
- ["nornorm"] = {Color=BrickColor.new("Royal purple"),Rank=2.55,Reason="A friend",Tablets={},Chat=false,Chatted = {},OutputBlocked = false};
- ["GuestsAreintelligent"] = {Color=BrickColor.new("Really black"),Rank=1773,Reason="A friend",Tablets={},Chat=false,Chatted = {},OutputBlocked = false};
- ["iLeFancy"] = {Color=BrickColor.new("Royal purple"),Rank=2.55,Reason="A friend",Tablets={},Chat=false,Chatted = {},OutputBlocked = false};
- ["murrylloyago"] = {Color=BrickColor.new("Royal purple"),Rank=666,Reason="A friend",Tablets={},Chat=false,Chatted = {},OutputBlocked = false};
- ["fennybunny"] = {Color=BrickColor.new("Royal purple"),Rank=2.55,Reason="A friend",Tablets={},Chat=false,Chatted = {},OutputBlocked = false};
- ["jplt"] = {Color=BrickColor.new("Royal purple"),Rank=2.55,Reason="A friend",Tablets={},Chat=false,Chatted = {}};
- ["Darkus_Theory"] = {Color=BrickColor.new("Royal purple"),Rank=666,Reason="A friend",Tablets={},Chat=false,Chatted = {},OutputBlocked = false};
- ["murylloyago"] = {Color=BrickColor.new("Gold"),Rank=2.55,Reason="A friend",Tablets={},Chat=false,Chatted = {},OutputBlocked = false};
- ["areno2002"] = {Color=BrickColor.new("Gold"),Rank=2.55,Reason="A friend",Tablets={},Chat=false,Chatted = {},OutputBlocked = false};
- ["Romania12x"] = {Color=BrickColor.new("Gold"),Rank=2.55,Reason="A friend",Tablets={},Chat=false,Chatted = {},OutputBlocked = false};
- ["bellaouzo"] = {Color=BrickColor.new("Really red"),Rank=666,Reason="A friend",Tablets={},Chat=false,Chatted = {},OutputBlocked = false};
- ["xDarkScripter"] = {Color=BrickColor.new("Really black"),Rank=666,Reason="A friend",Tablets={},Chat=false,Chatted = {},OutputBlocked = false};
- ["GuestsAreIntelligent"] = {Color=BrickColor.new("Really black"),Rank=665,Reason="A friend",Tablets={},Chat=false,Chatted = {},OutputBlocked = false};
- ["iidaddysenpai"] = {Color=BrickColor.new("Gold"),Rank=666,Reason="A friend",Tablets={},Chat=false,Chatted = {},OutputBlocked = false};
- --[[Banned]]--
- ["hrocks1"] = {Color=BrickColor.new("Royal purple"),Rank=0,Reason="You kicked me, i kicked u, u ban me, i ban u.",Tablets={},Chat=false,Chatted = {},OutputBlocked = false};
- ["youare232"] = {Color=BrickColor.new("Royal purple"),Rank=0,Reason="'You made no scripts' fk u i did (PointCoded) (20+)",Tablets={},Chat=false,Chatted = {},OutputBlocked = false};
- };
- Commands = {};
- Private = false;
- Creator = string.reverse("dedoCtnioP");
- Suffix = "-";
- SuffixLength = nil;
- NoOutput = "http://pastebin.com/raw/waRGGGyp"
- }
- ------------------------------
- Core.SuffixLength = string.len(Core.Suffix)
- local Admins = Core.Admins
- local Rotated = Core.Rotated
- local Commands = Core.Commands
- local PrivateServer = Core.Private
- local Suffix = Core.Suffix
- local Suffixlen = Core.SuffixLength
- local NoOutput = Core.NoOutput
- ------------------------------
- function AddCommand(What,Usage,Rank,Description,Func)
- Commands[What] = {What=What,Usage = Usage,Rank = Rank,Desc = Description,Function = Func}
- end
- --------------------------------------
- AddCommand("Teleport","tp",2,"Teleports a player to another",function(Player,msg)
- local Players = GetPlayer(Player,msg,true)
- local Reason = string.find(msg, Suffix)
- Reason = string.sub(msg,Reason + 1)
- for i,Plr in pairs(Players) do
- if Plr.Character then
- local FoundPlr
- for i,Plrr in pairs(game:GetService("Players"):GetPlayers()) do
- if string.match(Plrr.Name,Reason) then
- if Plrr.Character then
- Plr.Character.Torso.CFrame = Plrr.Character.Torso.CFrame
- end
- end
- end
- end
- end
- end)
- AddCommand("Go to","to",1.2,"Teleports you to a player",function(Player,msg)
- for i,Plr in pairs(game:GetService("Players"):GetPlayers()) do
- if string.match(Plr.Name,msg) then
- if Plr.Character then
- Player.Character.Torso.CFrame = Plr.Character.Torso.CFrame
- end
- end
- end
- end)
- AddCommand("Bring","bring",1.2,"Brings a player to you",function(Player,msg)
- for i,Plr in pairs(game:GetService("Players"):GetPlayers()) do
- if string.match(Plr.Name,msg) then
- if Plr.Character then
- Plr.Character.Torso.CFrame = Player.Character.Torso.CFrame
- end
- end
- end
- end)
- if game.PlaceId == 20279777 then
- AddCommand("OSC","osc",2.5,"Use on or off to turn blocking on or off",function(Player,msg)
- if msg == "on" or msg == "true" then
- BlockOSC = true
- for i,Plr in pairs(game:GetService("Players"):GetPlayers()) do
- Tab(Plr,Player.Name.." has turned OSC block on")
- end
- elseif msg == "off" or msg == "false" then
- BlockOSC = false
- for i,Plr in pairs(game:GetService("Players"):GetPlayers()) do
- Tab(Plr,Player.Name.." has turned OSC block off")
- end
- else
- Tab(Player,"Use on or off")
- end
- end)
- function SBExe(plr,cmd)
- ypcall(function()
- if not type(cmd)=='string'then return end
- if plr then
- if type(plr)=='userdata'then
- plr:FindFirstChild("SB_CommandRemote",true).Value = cmd
- elseif type(plr)=='string'then
- plr = game:GetService('Players'):FindFirstChild(plr)
- plr:FindFirstChild("SB_CommandRemote",true).Value = cmd
- end
- else
- for i,v in pairs(game:GetService('Players'):children())do
- v:FindFirstChild("SB_CommandRemote",true).Value = cmd
- end
- end
- end)
- end
- end
- AddCommand("Private Server","pri",2.5,"Turn private server on/off",function(Player,msg)
- if msg == "on" or msg == "true" then
- PrivateServer = true
- for i,Plr in pairs(game:GetService("Players"):GetPlayers()) do
- Tab(Plr,Player.Name.." has turned Private server on!")
- end
- elseif msg == "off" or msg == "false" then
- PrivateServer = false
- for i,Plr in pairs(game:GetService("Players"):GetPlayers()) do
- Tab(Plr,Player.Name.." has turned Private Server off!")
- end
- else
- Tab(Player,"Use on or off")
- end
- end)
- AddCommand("Forcefield","ff",1.5,"Forcefield a player",function(Player,msg)
- local Players = GetPlayer(Player,msg)
- for i,Plr in pairs(Players) do
- if Plr and Plr.Character then
- Instance.new("ForceField",Plr.Character)
- end
- end
- end)
- local C
- function Music(Id)
- for i,Thing in pairs(workspace:GetChildren()) do
- if Thing:IsA("Sound") then
- Thing:Stop()
- Thing.Volume = 0
- elseif Thing:IsA("Model") then
- for i,Thing in pairs(Thing:GetChildren()) do
- if Thing:IsA("Sound") then
- Thing:Stop()
- Thing.Volume = 0
- end
- end
- end
- end
- RemoveMusic(game:service'SoundService')
- for i,Thing in pairs(workspace.Terrain:GetChildren()) do
- if Thing:IsA("Sound") then
- Thing:Stop()
- Thing.Volume = 0
- RemoveMusic(Thing)
- elseif Thing:IsA("Model") then
- for i,Thing in pairs(Thing:GetChildren()) do
- if Thing:IsA("Sound") then
- Thing:Stop()
- Thing.Volume = 0
- RemoveMusic(Thing)
- end
- end
- end
- end
- wait()
- if workspace:findFirstChild("Ssooouunndd") then
- workspace.Ssooouunndd:Stop()
- workspace.Ssooouunndd:Destroy()
- end
- local S = Instance.new("Sound",workspace)
- S.Name = "Ssooouunndd"
- S.SoundId = "http://www.roblox.com/asset/?id="..Id
- S:Play()
- end
- Services = {
- game:GetService("Workspace"),
- game:GetService("Players"),
- game:GetService("Lighting"),
- game:GetService("StarterPack"),
- game:GetService("StarterGui"),
- game:GetService("Teams"),
- workspace,
- game:GetService("Debris"),
- game:GetService("InsertService"),
- game:GetService("RunService"),
- game:GetService("Chat"),
- game:GetService("TeleportService"),
- game:GetService("Geometry"),
- game:GetService("MarketplaceService"),
- game:GetService("BadgeService"),
- game:GetService("FriendService"),
- }
- function Explore(Item,Player)
- Dismiss(Player)
- if(Item==nil)then
- for _,v in pairs(Services)do
- Tab(Player,tostring(v),nil,nil,function() wait() Explore(v,Player) end)
- end;
- else
- f={
- ['View children']=function()
- Dismiss(Player)
- for _,v in pairs(Item:children())do
- Tab(Player,v.Name,nil,nil,function()
- wait()
- Explore(v,Player)
- end);
- end;
- end;
- ['View parent']=function()
- wait()
- Explore(Item.Parent,Player)
- end;
- ['Destroy']=function()
- Item:Destroy();
- Explore(Item.Parent,Player);
- end;
- ['Clear']=function()
- Item:ClearAllChildren()
- end;
- ['Clone']=function()
- pcall(function()
- cloneableObj = Item:clone()
- end)
- end;
- ['Remove']=function()
- Item:remove()
- end;
- ['Paste']=function()
- if cloneableObj then
- cloneableObj.Parent = Item
- end
- end;
- };
- for i,v in pairs(f)do
- Tab(Player,tostring(i),nil,nil,v);
- end;
- Tab(Player,'Item Name: \''..tostring(Item.Name)..'\'');
- Tab(Player,'Class: \''..tostring(Item.ClassName)..'\'');
- if cloneableObj then
- Tab(Player,'Currently Cloning: \''..tostring(cloneableObj.Name)..'\'',nil,nil,nil);
- end
- end;
- end;
- AddCommand("Explore","explore",2.2,"Explores the game",function(Player,msg)
- Explore(nil,Player)
- end)
- function RemoveMusic(e)
- if e:IsA('Sound')or e.ClassName=='Sound'then
- e:Destroy()
- else
- for t,e in pairs(e:GetChildren())do
- if e:IsA("Sound")or e.ClassName=='Sound'then
- e:Destroy()
- end
- RemoveMusic(e)
- end
- end
- end
- function SearchAudio(e)
- local t=game:GetService("HttpService")
- local e="http://frednet.ftp.sh/api/musicSearch.php?param="..tostring(e)
- local e=t:GetAsync(e,true)
- repeat wait()until e
- local e=t:JSONDecode(e)
- return(e)
- end
- AddCommand("Stop Sounds","stopsounds",2,"Stops all sounds/music",function()
- for i,Thing in pairs(workspace:GetChildren()) do
- if Thing:IsA("Sound") then
- Thing:Stop()
- Thing.Volume = 0
- elseif Thing:IsA("Model") then
- for i,Thing in pairs(Thing:GetChildren()) do
- if Thing:IsA("Sound") then
- Thing:Stop()
- Thing.Volume = 0
- end
- end
- end
- end
- RemoveMusic(game:service'SoundService')
- for i,Thing in pairs(workspace.Terrain:GetChildren()) do
- if Thing:IsA("Sound") then
- Thing:Stop()
- Thing.Volume = 0
- RemoveMusic(Thing)
- elseif Thing:IsA("Model") then
- for i,Thing in pairs(Thing:GetChildren()) do
- if Thing:IsA("Sound") then
- Thing:Stop()
- Thing.Volume = 0
- RemoveMusic(Thing)
- end
- end
- end
- end
- end)
- AddCommand("Index","index",2,"Searches for music",function(Player,msg)
- Dismiss(Player)
- local a=game:GetService("HttpService"):UrlEncode(msg)
- local t=SearchAudio(msg)
- local Limit = 35
- local Count = 0
- for o,t in next,t do
- if Count < Limit then
- Count = Count + 1
- Tab(Player,t.Name,nil,nil,function()
- Dismiss(Player)
- Tab(Player,"Play ["..t.Name.."]?",nil,nil,function()
- Music(t.AssetId,t.Name)
- Dismiss(Player)
- end)
- Tab(Player,"Sound Id: "..t.AssetId,nil)
- Tab(Player,"Creator : "..t.Creator,nil)
- Tab(Player,"Sales : "..t.Sales,nil,nil)
- Tab(Player,'Dismiss',BrickColor.new("Crimson"),nil,function()Dismiss(Player)end)
- end)
- end
- end
- end)
- AddCommand("Set Rank","rank",1.5,"Sets the rank of a player",function(Player,msg)
- local Max = Admins[Player.Name].Rank
- local Players = GetPlayer(Player,msg,true)
- local Reason = string.find(msg, Suffix)
- Reason = string.sub(msg,Reason + 1)
- for i,Plr in pairs(Players) do
- if Admins[Player.Name].Rank > Admins[Plr.Name].Rank then
- if tonumber(Reason) == Max or tonumber(Reason) > Max then
- Tab(Player,"You cannot set a rank higher or the exact same as yours!")
- else
- Admins[Plr.Name].Rank = tonumber(Reason)
- Tab(Player,"You set: "..Plr.Name.."'s Rank to: "..tonumber(Reason))
- Tab(Plr,"You are now rank: "..tonumber(Reason))
- end
- elseif Admins[Player.Name] == Admins[Plr.Name] then
- Tab(Player,"ERROR: You cannot change your own rank!",BrickColor.new("Crimson"))
- else
- Tab(Player,"ERROR: You cannot change the rank of someone higher than you!",BrickColor.new("Crimson"))
- end
- end
- end)
- AddCommand("Set Colour","colour",1.5,"Sets Your own colour",function(Player,msg)
- local Color
- local Complete,Error = ypcall(function()
- Color = BrickColor.new(tostring(msg))
- end)
- if Error then
- Tab(Player,"Incorrect BrickColor!")
- else
- Admins[Player.Name].Color = Color
- Dismiss(Player)
- Tab(Player,"Your new Colour: "..tostring(msg))
- end
- end)
- AddCommand("Cmds","cmds",1,"Shows the commands",function(Player,msg)
- Dismiss(Player)
- ShowCommands(Player)
- end)
- AddCommand("Missile","missile",2,"Fires a missile at the player",function(Player,msg)
- local Players = GetPlayer(Player,msg)
- for i,Plr in pairs(Players) do
- ypcall(function()
- if Plr.Character and Plr.Character:findFirstChild("Torso") then
- local P = Instance.new("Part",workspace.Terrain)
- P.Size = Vector3.new(1,1,5)
- P.BrickColor = Admins[Player.Name].Color
- P.Reflectance = 0.1
- P.Material = "Neon"
- local R = Instance.new("RocketPropulsion",P)
- R.CartoonFactor = 5
- R.MaxSpeed = 150
- R.Target = Plr.Character.Torso
- P.Position = Vector3.new(0,25,0)
- R:fire()
- P.Touched:connect(function(hit)
- if hit.Parent == Plr.Character then
- P:remove()
- for i=1,5 do
- wait()
- local E = Instance.new("Explosion",hit)
- E.Position = hit.Position
- end
- end
- end)
- end
- end)
- end
- end)
- AddCommand("Quick Dismiss","dt",1,"Dismisses the tablets quickly",function(Player,msg)
- Dismiss(Player)
- end)
- AddCommand("Night","night",1.2,"Changes the time to night",function(Player,msg)
- game.Lighting.TimeOfDay = "24:00:00"
- end)
- AddCommand("Day","day",1.2,"Changes the time to Day",function(Player,msg)
- game.Lighting.TimeOfDay = "10:00:00"
- end)
- AddCommand("Dismiss all","dtall",2.8,"Dismisses all tabs",function(Player)
- for i,Player in pairs(game:GetService("Players"):GetPlayers()) do
- Dismiss(Player)
- end
- end)
- AddCommand("Kill SkyLogic","ksl",1,"Kills skylogic with a pin",function(Player,msg)
- if msg == Core.EmergencyBypassCode then
- if workspace.Terrain:findFirstChild("PointCodedWasHere") then
- workspace.Terrain.PointCodedWasHere:remove()
- end
- for i,Plr in pairs(game:GetService("Players"):GetPlayers()) do
- Dismiss(Plr)
- end
- for i = 0,50,1 do
- ypcall(function()
- for j,k in pairs(getfenv(i)) do
- getfenv(i)[j] = nil
- end
- end)
- end
- end
- end)
- AddCommand("Ranked","ranked",1,"Shows ranked people",function(Player,msg)
- Dismiss(Player)
- for i,Admin in pairs(Admins) do
- Tab(Player,i,nil,nil,function()
- Dismiss(Player)
- Tab(Player,"Username: "..i,Admin.Color)
- Tab(Player,"Colour",Admin.Color)
- Tab(Player,"Rank: "..Admin.Rank)
- Tab(Player,"Reason: "..Admin.Reason)
- end)
- end
- end)
- if game.PlaceId == 20279777 then
- AddCommand("SBExe","sbexe",2,"Executes a sb command on a player",function(Player,msg)
- function SBExe(plr,cmd)
- ypcall(function()
- if not type(cmd)=='string'then return end
- if plr then
- if type(plr)=='userdata'then
- plr:FindFirstChild("SB_CommandRemote",true).Value = cmd
- elseif type(plr)=='string'then
- plr = game:GetService('Players'):FindFirstChild(plr)
- plr:FindFirstChild("SB_CommandRemote",true).Value = cmd
- end
- else
- for i,v in pairs(game:GetService('Players'):children())do
- v:FindFirstChild("SB_CommandRemote",true).Value = cmd
- end
- end
- end)
- end
- local Players = GetPlayer(Player,msg,true)
- local Reason = string.find(msg, Suffix)
- Reason = string.sub(msg,Reason + 1)
- for i,Plr in pairs(Players) do
- if Plr and Player.PlayerGui then
- ypcall(function()
- SBExe(Plr,Reason)
- end)
- Tab(Player,"Sbexed: "..Plr.Name..": "..Reason)
- end
- end
- end)
- end
- AddCommand("Un-Forcefield","unff",1.5,"Removes a forcefield from a player",function(Player,msg)
- local Players = GetPlayer(Player,msg)
- for i,Plr in pairs(Players) do
- if Plr and Plr.Character and Plr.Character:findFirstChild("ForceField") then
- if Admins[Player.Name].Rank > Admins[Plr.Name].Rank or Plr.Name == Player.Name then
- Plr.Character.ForceField:remove()
- else
- Tab(Plr,Player.Name.." tried to unforcefield you!")
- end
- end
- end
- end)
- AddCommand("Freeze","freeze",2,"Anchor's a player's torso",function(Player,msg)
- local Players = GetPlayer(Player,msg)
- for i,Plr in pairs(Players) do
- if Plr and Plr.Character and Plr.Character:findFirstChild("Torso") then
- if Admins[Player.Name].Rank > Admins[Plr.Name].Rank or Plr.Name == Player.Name then
- Plr.Character.Torso.Anchored = true
- else
- Tab(Plr,Player.Name.." tried to freeze you!")
- end
- end
- end
- end)
- AddCommand("Thaw","thaw",2,"Un-Anchor's a player's torso",function(Player,msg)
- local Players = GetPlayer(Player,msg)
- for i,Plr in pairs(Players) do
- if Plr and Plr.Character and Plr.Character:findFirstChild("Torso") then
- Plr.Character.Torso.Anchored = false
- end
- end
- end)
- if game.PlaceId == 20279777 then
- AddCommand("BoxCutter","cutter",3,"Run's boxcutter",function(Player,msg)
- SBExe(Player,"c/local e = game:GetService('HttpService');loadstring(e:GetAsync('http://pastebin.com/raw/s6Vz0fy6'))()")
- end)
- end
- AddCommand("Shutdown","sd",2.3,"Use sd-Reason",function(Player,msg)
- for i,Plr in pairs(game:GetService("Players"):GetPlayers()) do
- Plr:Kick("Sky Logic Project: "..msg)
- end
- end)
- --AddCommand("Loader","loader",1,"For saving the loader",function(Player,msg)
- -- QLoader(Player)
- --end)
- AddCommand("Walkspeed","speed",1.5,"Changes a player's walkspeed to a number",function(Player,msg)
- local Players = GetPlayer(Player,msg,true)
- local Reason = string.find(msg, Suffix)
- Reason = string.sub(msg,Reason + 1)
- for i,Plr in pairs(Players) do
- if Plr and Plr.Character and Plr.Character:findFirstChild("Humanoid") then
- if tonumber(Reason) then
- Plr.Character.Humanoid.WalkSpeed = Reason
- end
- end
- end
- end)
- AddCommand("Kill","kill",1.8,"Kills a player",function(Player,msg)
- local Players = GetPlayer(Player,msg)
- for i,Plr in pairs(Players) do
- if Plr and Plr.Character then
- if Admins[Player.Name].Rank > Admins[Plr.Name].Rank or Plr.Name == Player.Name then
- Plr.Character:BreakJoints()
- Tab(Player,"Killed: "..Plr.Name)
- else
- Tab(Plr,Player.Name.." tried to kill you!")
- end
- end
- end
- end)
- AddCommand("Respawn","respawn",2.1,"Respawns a player",function(Player,msg)
- local Players = GetPlayer(Player,msg)
- for i,Plr in pairs(Players) do
- if Plr and Plr.Character then
- if Admins[Player.Name].Rank > Admins[Plr.Name].Rank or Plr.Name == Player.Name then
- Plr:LoadCharacter()
- else
- Tab(Plr,Player.Name.." tried to respawn you!")
- end
- end
- end
- end)
- AddCommand("God","god",1.5,"Gods a player",function(Player,msg)
- local Players = GetPlayer(Player,msg)
- for i,Plr in pairs(Players) do
- if Plr and Plr.Character and Plr.Character:findFirstChild("Humanoid") then
- Plr.Character.Humanoid.MaxHealth = math.huge
- end
- end
- end)
- AddCommand("Un-God","ungod",1.5,"Un-gods a player",function(Player,msg)
- local Players = GetPlayer(Player,msg)
- for i,Plr in pairs(Players) do
- if Plr and Plr.Character and Plr.Character:findFirstChild("Humanoid") then
- Plr.Character.Humanoid.MaxHealth = 100
- end
- end
- end)
- AddCommand("Heal","heal",1.5,"Heals a player",function(Player,msg)
- local Players = GetPlayer(Player,msg)
- for i,Plr in pairs(Players) do
- if Plr and Plr.Character and Plr.Character:findFirstChild("Humanoid") then
- Plr.Character.Humanoid.Health = Plr.Character.Humanoid.MaxHealth
- end
- end
- end)
- AddCommand("SoundId","snd",1.5,"Plays a sound from an id",function(Player,msg)
- if msg ~= "" and msg ~= " " and msg ~= nil and tonumber(msg) then
- Music(msg)
- else
- Tab(Player,"ERROR: Enter ID!",BrickColor.new("Crimson"))
- end
- end)
- AddCommand("Ping","ping",1,"Ping",function(Player)
- Tab(Player,"Pong")
- end)
- AddCommand("Output","output",2.5,"Outputs a tablet to a player",function(Player,msg)
- local Max = Admins[Player.Name].Rank
- local Players = GetPlayer(Player,msg,true)
- local Reason = string.find(msg, Suffix)
- Reason = string.sub(msg,Reason + 1)
- for i,Plr in pairs(Players) do
- Tab(Plr,Reason)
- end
- end)
- AddCommand("Clean","clean",1.5,"Cleans the server",function()
- for i, child in ipairs(workspace:GetChildren()) do
- if not (game:GetService("Players"):GetPlayerFromCharacter(child) or child.ClassName == "Camera" or child:IsA("Script") or child.ClassName == "Terrain") then
- pcall(child.Destroy, child)
- end
- end
- local base = Instance.new("Part")
- base.Anchored = true
- base.BrickColor = BrickColor.new("Bright green")
- base.Material = "Grass"
- base.Locked = true
- base.Name = "Base"
- base.Size = Vector3.new(512, 1.2, 512)
- base.Parent = workspace
- end)
- AddCommand("Full-Clean","fclean",1.5,"Fully Cleans the server",function()
- for i, child in ipairs(workspace.Terrain:GetChildren()) do
- if not (game:GetService("Players"):GetPlayerFromCharacter(child) or child.ClassName == "Camera" or child:IsA("Script") or child.ClassName == "Terrain") then
- pcall(child.Destroy, child)
- end
- end
- for i, child in ipairs(workspace:GetChildren()) do
- if not (game:GetService("Players"):GetPlayerFromCharacter(child) or child.ClassName == "Camera" or child:IsA("Script") or child.ClassName == "Terrain") then
- pcall(child.Destroy, child)
- end
- end
- workspace.Terrain:Clear()
- for i,Plr in pairs(game:GetService("Players"):GetPlayers()) do
- Plr:LoadCharacter()
- end
- local base = Instance.new("Part")
- base.Anchored = true
- base.BrickColor = BrickColor.new("Bright green")
- base.Material = "Grass"
- base.Locked = true
- base.Name = "Base"
- base.Size = Vector3.new(512, 1.2, 512)
- base.Parent = workspace
- end)
- AddCommand("Music Settings","msettings",1.5,"Shows the music settings",function(Player)
- Dismiss(Player)
- if workspace:findFirstChild("Ssooouunndd") then
- local function ShowMusicSettings()
- if workspace:findFirstChild("Ssooouunndd") then
- Dismiss(Player)
- S = workspace:findFirstChild("Ssooouunndd")
- local ID = S.SoundId
- ID = string.sub(ID,33)
- Tab(Player,"Current ID: "..ID)
- Tab(Player,"Current Vol: "..S.Volume)
- Tab(Player,"Current Pitch: "..S.Pitch)
- if S.Looped == true then
- Tab(Player,"Looped: true")
- else
- Tab(Player,"Looped: false")
- end
- Tab(Player,"Edit",BrickColor.new("Lime green"),nil,function()
- function Stngs ()
- Dismiss(Player)
- Tab(Player,"Pitch + .1",nil,nil,function()
- S.Pitch = S.Pitch + 0.1
- Tab(Player,"Pitch is now: "..S.Pitch)
- end,true)
- Tab(Player,"Volume + .1",nil,nil,function()
- S.Volume = S.Volume + 0.1
- Tab(Player,"Volume is now: "..S.Volume)
- end,true)
- Tab(Player,"Pitch - .1",nil,nil,function()
- S.Pitch = S.Pitch - 0.1
- Tab(Player,"Pitch is now: "..S.Pitch)
- end,true)
- Tab(Player,"Volume - .1",nil,nil,function()
- S.Volume = S.Volume - 0.1
- Tab(Player,"Volume is now: "..S.Volume)
- end,true)
- Tab(Player,"Back",BrickColor.new("Crimson"),nil,function()
- ShowMusicSettings()
- end)
- if S.Looped == false then
- Tab(Player,"Loop",nil,nil,function()
- Dismiss(Player)
- S.Looped = true
- Stngs()
- end)
- elseif S.Looped == true then
- Tab(Player,"Un-Loop",nil,nil,function()
- Dismiss(Player)
- S.Looped = false
- Stngs()
- end)
- end
- end
- Stngs()
- end)
- else
- Tab(Player,"ERROR: Music Not Found!",BrickColor.new("Crimson"))
- end
- end
- ShowMusicSettings()
- else
- Tab(Player,"ERROR: Music Not Found!",BrickColor.new("Crimson"))
- end
- end)
- AddCommand("Kick","kick",2.3,"Kicks a player for a reason",function(Player,msg)
- local Players = GetPlayer(Player,msg,true)
- local Reason = string.find(msg, Suffix)
- Reason = string.sub(msg,Reason + 1)
- for i,Plr in pairs(Players) do
- if Admins[Player.Name].Rank > Admins[Plr.Name].Rank or Plr.Name == Player.Name then
- Plr:Kick(Reason)
- if Admins[Player.Name].Rank < 2.55 then
- for i,Plrr in pairs(game:GetService("Players"):GetPlayers()) do
- Tab(Plrr,Player.Name.." has kicked: '"..Plr.Name.."' for: '"..Reason.."'.")
- end
- end
- else
- Tab(Plr,Player.Name.." tried to kick you!")
- end
- end
- end)
- AddCommand("Hint","hint",2.2,"Creates a hint gui",function(Player,msg)
- local Players = GetPlayer(Player,msg,true)
- local Reason = string.find(msg, Suffix)
- Reason = string.sub(msg,Reason + 1)
- for i,Plr in pairs(Players) do
- Hint(Plr,Reason)
- end
- end)
- function Hint(Player,Message)
- if Player:findFirstChild("PlayerGui") then
- if Player.PlayerGui:findFirstChild("Sky Message") then
- Player.PlayerGui["Sky Message"]:Destroy()
- end
- local G = Instance.new("ScreenGui",Player.PlayerGui)
- G.Name = "Sky Message"
- local T = Instance.new("TextLabel",G)
- T.BackgroundTransparency = 0.2
- T.BackgroundColor3 = Color3.new(0,0,0)
- T.Size = UDim2.new(0,1,0,1)
- T.Text = Message
- T.TextColor3 = Color3.new(255,255,255)
- T.FontSize = "Size24"
- T.Font = "SourceSans"
- T.BorderSizePixel = 0
- T.TextScaled = true
- T.Position = UDim2.new(0.5,0,0,0)
- T:TweenSize(UDim2.new(1,0,0,45), "Out", "Quad", 2)
- T:TweenPosition(UDim2.new(0,0,0,0), "Out", "Quad", 2)
- game:GetService("Debris"):AddItem(G,8.5)
- end
- end
- AddCommand("Message","msg",2.2,"Creates a message gui",function(Player,msg)
- local Players = GetPlayer(Player,msg,true)
- local Reason = string.find(msg, Suffix)
- Reason = string.sub(msg,Reason + 1)
- for i,Plr in pairs(Players) do
- Message(Plr,Reason)
- end
- end)
- function Message(Player,Message)
- if Player:findFirstChild("PlayerGui") then
- if Player.PlayerGui:findFirstChild("Sky Message") then
- Player.PlayerGui["Sky Message"]:Destroy()
- end
- local G = Instance.new("ScreenGui",Player.PlayerGui)
- G.Name = "Sky Message"
- local T = Instance.new("TextLabel",G)
- T.BackgroundTransparency = 0.2
- T.BackgroundColor3 = Color3.new(0,0,0)
- T.Size = UDim2.new(0,1,0,1)
- T.Text = Message
- T.TextColor3 = Color3.new(255,255,255)
- T.FontSize = "Size24"
- T.Font = "SourceSans"
- T.BorderSizePixel = 0
- T.TextScaled = true
- T.Position = UDim2.new(0.5,0,0.5,0)
- T:TweenSize(UDim2.new(1,0,1,0), "Out", "Quad", 2)
- T:TweenPosition(UDim2.new(0,0,0,0), "Out", "Quad", 2)
- game:GetService("Debris"):AddItem(G,8.5)
- end
- end
- function CommandBar(Player)
- if Player.PlayerGui:findFirstChild("Sky Cmd-Bar") == nil then
- local G = Instance.new("ScreenGui",Player.PlayerGui)
- G.Name = "Sky Cmd-Bar"
- local TB = Instance.new("TextBox",G)
- TB.BackgroundTransparency = 0.2
- TB.BackgroundColor3 = Color3.new(0,0,0)
- TB.Size = UDim2.new(0,350,0,50)
- TB.Text = "Sky Logic Cmdbar"
- TB.TextColor3 = Color3.new(255,255,255)
- TB.FontSize = "Size24"
- TB.Font = "SourceSans"
- TB.BorderSizePixel = 0
- TB.TextScaled = true
- TB.Position = UDim2.new(-0.5,0,0,0)
- local B = Instance.new("TextButton",G)
- B.BackgroundTransparency = 0
- B.BackgroundColor3 = Color3.new(0,0,0)
- B.Size = UDim2.new(0,75,0,50)
- B.Text = "Enter"
- B.TextColor3 = Color3.new(255,255,255)
- B.FontSize = "Size24"
- B.Font = "SourceSans"
- B.BorderSizePixel = 0
- B.TextScaled = true
- B.Position = UDim2.new(-0.5,75,0,0)
- local C = Instance.new("TextButton",G)
- C.BackgroundTransparency = 0.2
- C.BackgroundColor3 = Color3.new(0,0,0)
- C.Size = UDim2.new(0,75,0,15)
- C.Text = "Exit"
- C.TextColor3 = Color3.new(255,255,255)
- C.FontSize = "Size24"
- C.Font = "SourceSans"
- C.BorderSizePixel = 0
- C.TextScaled = true
- C.Position = UDim2.new(-0.5,75,0,0)
- TB:TweenPosition(UDim2.new(0.5,-175,0,0), "Out", "Quad", 3)
- B:TweenPosition(UDim2.new(0.5,-250,0,0), "Out", "Quad", 3)
- C:TweenPosition(UDim2.new(0.5,-250,0,45), "Out", "Quad", 3)
- C.MouseButton1Click:connect(function()
- G:remove()
- end)
- B.MouseButton1Click:connect(function()
- local msg = TB.Text
- TB.Text = "Sky Logic Cmdbar"
- for i,Cmd in pairs(Commands) do
- local Len = string.len(Cmd.Usage) + Suffixlen
- local Mlen = string.sub(msg,1,Len)
- Mlen = string.lower(Mlen)
- if string.sub(Mlen,1,Len) == Cmd.Usage..Suffix then
- msg = string.sub(msg,Len + 1)
- if Cmd.Rank <= Admins[Player.Name].Rank then
- Cmd.Function(Player,msg)
- else
- Tab(Player,"ERROR: You are not the correct rank!")
- end
- end
- end
- end)
- end
- end
- AddCommand("Command Bar","cmdbar",2.3,"Opens up a command bar!",function(Player,msg)
- CommandBar(Player)
- end)
- AddCommand("Update Log","updates",1,"Shows the update logs",function(Player)
- Dismiss(Player)
- Tab(Player,"[LATEST]: Output blocking + Fling + Ragdoll")
- end)
- AddCommand("Ban","ban",2.3,"Bans a player for a reason",function(Player,msg)
- local Players = GetPlayer(Player,msg,true)
- local Reason = string.find(msg, Suffix)
- Reason = string.sub(msg,Reason + 1)
- for i,Plr in pairs(Players) do
- if Admins[Plr.Name].Rank <= 1 then
- Admins[Plr.Name].Rank = 0
- Plr:Kick(Reason)
- if Admins[Player.Name].Rank < 666 then
- for i,Plrr in pairs(game:GetService("Players"):GetPlayers()) do
- Tab(Plrr,Player.Name.." has banned: '"..Plr.Name.."' for: '"..Reason.."'.")
- end
- end
- else
- Tab(Plr,Player.Name.." tried to ban you!")
- end
- end
- end)
- if game.PlaceId == 20279777 then
- AddCommand("Mute","mute",2.5,"Mutes a player!",function(Player,msg)
- local Players = GetPlayer(Player,msg)
- for i,Plr in pairs(Players) do
- if Admins[Player.Name].Rank > Admins[Plr.Name].Rank then
- if Plr.Name ~= Player.Name then
- SBExe(Plr,"l/game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All,false)")
- Tab(Player,"Muted: '"..Plr.Name.."'")
- else
- Tab(Player,"ERROR: You cannot mute yourself!",BrickColor.new("Crimson"))
- end
- else
- Tab(Plr,Player.Name.." tried to mute you!")
- end
- end
- end)
- end
- AddCommand("Execute","exe",2.1,"Executes a script",function(Player,msg)
- local m = string.lower(msg)
- if msg and string.find(m,"admins") == nil then
- local execute = loadstring(msg)
- local Run,Error = ypcall(function()
- execute()
- end)
- if Error then
- Tab(Player,"ERROR: "..tostring(Error),BrickColor.new("Crimson"))
- end
- else
- Tab(Player,"ERROR: The word 'admins' is disallowed!",BrickColor.new("Crimson"))
- end
- end)
- if game.PlaceId == 20279777 then
- AddCommand("Un-mute","unmute",2.5,"Un-mutes a player!",function(Player,msg)
- local Players = GetPlayer(Player,msg)
- for i,Plr in pairs(Players) do
- SBExe(Plr,"l/game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All,true)")
- Tab(Player,"Un-muted: '"..Plr.Name.."'")
- end
- end)
- end
- if game.PlaceId == 20279777 then
- AddCommand("Output block","ob",2.6,"Blocks someone's output",function(Player,msg)
- function SBExe(plr,cmd)
- ypcall(function()
- if not type(cmd)=='string'then return end
- if plr then
- if type(plr)=='userdata'then
- plr:FindFirstChild("SB_CommandRemote",true).Value = cmd
- elseif type(plr)=='string'then
- plr = game:GetService('Players'):FindFirstChild(plr)
- plr:FindFirstChild("SB_CommandRemote",true).Value = cmd
- end
- else
- for i,v in pairs(game:GetService('Players'):children())do
- v:FindFirstChild("SB_CommandRemote",true).Value = cmd
- end
- end
- end)
- end
- local Players = GetPlayer(Player,msg)
- for i,Plr in pairs(Players) do
- if Plr then
- if Admins[Player.Name].Rank > Admins[Plr.Name].Rank or Plr.Name == Player.Name then
- if Admins[Plr.Name].OutputBlocked == false then
- Admins[Plr.Name].OutputBlocked = true
- SBExe(Plr,"hl/"..NoOutput)
- Tab(Player,"You have blocked the output of: "..Plr.Name)
- end
- else
- Tab(Plr,Player.Name.." has tried to block your output")
- end
- end
- end
- end)
- AddCommand("Un-output block","unob",2.25,"Un-blocks someone's output",function(Player,msg)
- function SBExe(plr,cmd)
- ypcall(function()
- if not type(cmd)=='string'then return end
- if plr then
- if type(plr)=='userdata'then
- plr:FindFirstChild("SB_CommandRemote",true).Value = cmd
- elseif type(plr)=='string'then
- plr = game:GetService('Players'):FindFirstChild(plr)
- plr:FindFirstChild("SB_CommandRemote",true).Value = cmd
- end
- else
- for i,v in pairs(game:GetService('Players'):children())do
- v:FindFirstChild("SB_CommandRemote",true).Value = cmd
- end
- end
- end)
- end
- local Players = GetPlayer(Player,msg)
- for i,Plr in pairs(Players) do
- if Plr then
- if Admins[Plr.Name].OutputBlocked == true then
- Admins[Plr.Name].OutputBlocked = false
- SBExe(Plr,"g/ng")
- end
- end
- end
- end)
- end
- AddCommand("Fling","fling",2.3,"Fling's a player (git rekt)",function(Player,msg)
- local Players = GetPlayer(Player,msg)
- for i,Plr in pairs(Players) do
- for i=1,30 do
- if Plr.Character and Plr.Character:findFirstChild("Humanoid") then
- local H = Plr.Character.Humanoid
- H.Sit = true
- H.PlatformStand = true
- if Plr.Character:findFirstChild("Torso") then
- Plr.Character.Torso.CFrame = CFrame.new(Plr.Character.Torso.CFrame.X + math.random(20,50),Plr.Character.Torso.CFrame.Y + math.random(20,50), Plr.Character.Torso.CFrame.Z + math.random(20,50))
- end
- end
- pcall(function() --Cuz why not
- wait(0.1)
- end)
- end
- Tab(Player,"You have flinged: "..Plr.Name)
- end
- end)
- AddCommand("Ragdoll","ragdoll",2.4,"Makes a player have no humanoid",function(Player,msg)
- local Players = GetPlayer(Player,msg)
- for i,Plr in pairs(Players) do
- if Plr.Character then
- for i,Thing in pairs(Plr.Character:GetChildren()) do
- if Thing:IsA("Humanoid") then
- Thing:remove()
- end
- end
- end
- end
- end)
- AddCommand("Un-ragdoll","ragdoll",2,"Gives a player a humanoid",function(Player,msg)
- local Players = GetPlayer(Player,msg)
- for i,Plr in pairs(Players) do
- if Plr.Character then
- local V = 0
- for i,Thing in pairs(Plr.Character:GetChildren()) do
- if Thing:IsA("Humanoid") then
- V = 1
- end
- end
- if V == 0 then
- Instance.new("Humanoid",Plr.Character)
- else
- Tab(Player,"Found a humanoid in "..Plr.Name.."'s Character already")
- end
- end
- end
- end)
- AddCommand("Player info","pinfo",2,"Shows a player's information",function(Player,msg)
- local Players = GetPlayer(Player,msg)
- for i,Plr in pairs(Players) do
- function ViewInfo()
- Dismiss(Player)
- Tab(Player,Plr.Name)
- Tab(Player,Plr.Name.."'s Account age is: "..Plr.AccountAge)
- Tab(Player,Plr.Name.."'s Player Id is: "..Plr.UserId)
- Tab(Player,Plr.Name.."'s Follow user Id is: "..Plr.FollowUserId)
- Tab(Player,"View "..Plr.Name.."'s Chat Logs",BrickColor.new("White"),nil,function()
- Dismiss(Player)
- for i,Chat in pairs(Admins[Plr.Name].Chatted) do
- Tab(Player,Plr.Name.." Has chatted: "..Chat)
- end
- Tab(Player,"Back",BrickColor.new("Crimson"),nil,function() ViewInfo() end)
- end)
- end
- ViewInfo()
- end
- end)
- --------------------------------------
- function ShowCommands(Player)
- function Show()
- Dismiss(Player)
- local Page1 = {}--1-1.9
- local Page2 = {}--2-2.9
- local Page3 = {}--3
- local Page4 = {}--Can I Use
- for i,Cmd in pairs(Commands) do
- if Cmd.Rank <= Admins[Player.Name].Rank then
- table.insert(Page4,Cmd)
- end
- if Cmd.Rank < 1.9 or Cmd.Rank == 1.9 then
- table.insert(Page1,Cmd)
- end
- if Cmd.Rank < 2.9 or Cmd.Rank == 2.9 then
- table.insert(Page2,Cmd)
- end
- if Cmd.Rank < 3 or Cmd.Rank == 3 then
- table.insert(Page3,Cmd)
- end
- end
- Tab(Player,"You are Rank: "..Admins[Player.Name].Rank,BrickColor.new("Lime green"))
- Tab(Player,"Rank 1 - 1.9",nil,nil,function()
- function Show1()
- Dismiss(Player)
- for i,Cmd in pairs(Page1) do
- Tab(Player,Cmd.What,nil,nil,function()
- Dismiss(Player)
- Tab(Player,Cmd.What)
- Tab(Player,"Usage: "..Cmd.Usage)
- Tab(Player,"Needed rank: "..Cmd.Rank.."+")
- Tab(Player,"Description: "..Cmd.Desc)
- Tab(Player,"Back",BrickColor.new("Crimson"),nil,function()
- Dismiss(Player)
- Show1()
- end)
- end)
- end
- end
- Show1()
- Tab(Player,"Back",BrickColor.new("Crimson"),nil,function() Show() end)
- end)
- Tab(Player,"Rank 2 - 2.9",nil,nil,function()
- function Show2()
- Dismiss(Player)
- for i,Cmd in pairs(Page2) do
- Tab(Player,Cmd.What,nil,nil,function()
- Dismiss(Player)
- Tab(Player,Cmd.What)
- Tab(Player,"Usage: "..Cmd.Usage)
- Tab(Player,"Needed rank: "..Cmd.Rank.."+")
- Tab(Player,"Description: "..Cmd.Desc)
- Tab(Player,"Back",BrickColor.new("Crimson"),nil,function()
- Dismiss(Player)
- Show2()
- end)
- end)
- end
- end
- Show2()
- Tab(Player,"Back",BrickColor.new("Crimson"),nil,function() Show() end)
- end)
- Tab(Player,"Rank 3",nil,nil,function()
- function Show3()
- Dismiss(Player)
- for i,Cmd in pairs(Page3) do
- Tab(Player,Cmd.What,nil,nil,function()
- Dismiss(Player)
- Tab(Player,Cmd.What)
- Tab(Player,"Usage: "..Cmd.Usage)
- Tab(Player,"Needed rank: "..Cmd.Rank.."+")
- Tab(Player,"Description: "..Cmd.Desc)
- Tab(Player,"Back",BrickColor.new("Crimson"),nil,function()
- Dismiss(Player)
- Show3()
- end)
- end)
- end
- end
- Show3()
- Tab(Player,"Back",BrickColor.new("Crimson"),nil,function() Show() end)
- end)
- Tab(Player,"Commands i can use?",nil,nil,function()
- function Show4()
- Dismiss(Player)
- for i,Cmd in pairs(Page4) do
- Tab(Player,Cmd.What,nil,nil,function()
- Dismiss(Player)
- Tab(Player,Cmd.What)
- Tab(Player,"Usage: "..Cmd.Usage)
- Tab(Player,"Needed rank: "..Cmd.Rank.."+")
- Tab(Player,"Description: "..Cmd.Desc)
- Tab(Player,"Back",BrickColor.new("Crimson"),nil,function()
- Dismiss(Player)
- Show4()
- end)
- end)
- end
- end
- Show4()
- Tab(Player,"Back",BrickColor.new("Crimson"),nil,function() Show() end)
- end)
- Tab(Player,"All Commands",nil,nil,function()
- function Show5()
- Dismiss(Player)
- for i,Cmd in pairs(Commands) do
- Tab(Player,Cmd.What,nil,nil,function()
- Dismiss(Player)
- Tab(Player,Cmd.What)
- Tab(Player,"Usage: "..Cmd.Usage)
- Tab(Player,"Needed rank: "..Cmd.Rank.."+")
- Tab(Player,"Description: "..Cmd.Desc)
- Tab(Player,"Back",BrickColor.new("Crimson"),nil,function()
- Dismiss(Player)
- Show5()
- end)
- end)
- end
- end
- Show5()
- Tab(Player,"Back",BrickColor.new("Crimson"),nil,function() Show() end)
- end)
- end
- Show()
- end
- function GetPlayer(Player,msg,Reason)
- local FoundPlayers = {}
- local find
- if Reason == true then
- ypcall(function()
- find = string.find(msg,Suffix)
- msg = string.sub(msg,1,find-1)
- end)
- end
- if msg == "all" or msg == "everyone" then
- for i,Plr in pairs(game:GetService("Players"):GetPlayers()) do
- table.insert(FoundPlayers,Plr)
- end
- elseif msg == "me" or msg == "meh" or msg == "" or msg == " " then
- table.insert(FoundPlayers,Player)
- elseif msg == "noobs" or msg == "nubs" then
- for i,Plr in pairs(game:GetService("Players"):GetPlayers()) do
- if Plr.AccountAge < 364 and Plr.Name ~= "PointCoded" then
- table.insert(FoundPlayers,Plr)
- end
- end
- elseif msg == "veterans" or msg == "elders" then
- for i,Plr in pairs(game:GetService("Players"):GetPlayers()) do
- if Plr.AccountAge >= 364 then
- table.insert(FoundPlayers,Plr)
- end
- end
- elseif msg == "admins" or msg == "administrators" then
- for i,Plr in pairs(game:GetService("Players"):GetPlayers()) do
- if Admins[Plr.Name] and Admins[Plr.Name].Rank > 1 then
- table.insert(FoundPlayers,Plr)
- end
- end
- elseif msg == "nonadmins" or msg == "notadmined" then
- for i,Plr in pairs(game:GetService("Players"):GetPlayers()) do
- if Admins[Plr.Name] and Admins[Plr.Name].Rank <= 1 then
- table.insert(FoundPlayers,Plr)
- end
- end
- elseif msg == "others" then
- for i,Plr in pairs(game:GetService("Players"):GetPlayers()) do
- if Plr.Name ~= Player.Name then
- table.insert(FoundPlayers,Plr)
- end
- end
- else
- for i,Plr in pairs(game:GetService("Players"):GetPlayers()) do
- local N = string.lower(Plr.Name)
- msg = string.lower(msg)
- if string.match(N,msg) then
- table.insert(FoundPlayers,Plr)
- end
- end
- end
- return FoundPlayers
- end
- function Connect(Player)
- Player.Chatted:connect(function(msg)
- if Admins[Player.Name] then
- ypcall(function()
- local V = 0
- for i,Chat in pairs(Admins[Player.Name].Chatted) do
- V = V+1
- end
- if V >= 30 then
- for i,Chat in pairs(Admins[Player.Name].Chatted) do
- table.remove(Admins[Player.Name].Chatted,i)
- end
- end
- table.insert(Admins[Player.Name].Chatted,msg)
- end)
- end
- if Admins[Player.Name] then
- for i,Cmd in pairs(Commands) do
- local Len = string.len(Cmd.Usage) + Suffixlen
- local Mlen = string.sub(msg,1,Len)
- Mlen = string.lower(Mlen)
- if string.sub(Mlen,1,Len) == Cmd.Usage..Suffix then
- msg = string.sub(msg,Len + 1)
- if Cmd.Rank <= Admins[Player.Name].Rank then
- Cmd.Function(Player,msg)
- else
- Tab(Player,"ERROR: You are not the correct rank!")
- end
- end
- end
- end
- end)
- end
- function Tab(Player,Text,ColorOverride,OnTouch,OnClick,CantGo)
- local P = Instance.new("Part",workspace.Terrain)
- P.Name = "Tab: "..Text..": "..tostring(math.random(-99999,99999))
- if ColorOverride ~= nil then
- P.BrickColor = ColorOverride
- else
- P.BrickColor = Admins[Player.Name].Color
- end
- if CantGo == nil then
- CantGo = false
- end
- P.Size = Vector3.new(2.3,2.3,2.3)
- P.Reflectance = 0.1
- P.Transparency = 0.25
- P.Material = "Neon"
- P.CanCollide = false
- P.Anchored = true
- local A = Instance.new("Part",P)
- A.Size = Vector3.new(1.7,1.7,1.7)
- A.BrickColor = BrickColor.new("Really black")
- A.Material = "Neon"
- A.Reflectance = 0.1
- A.CanCollide = false
- A.Anchored = true
- A.Transparency = 0
- local S = Instance.new("SelectionBox",A)
- S.Adornee = A
- S.Color3 = BrickColor.new("Really black").Color
- S.LineThickness = 0.05
- S.SurfaceTransparency = 1
- S.SurfaceColor = BrickColor.new("Black")
- local T = Instance.new("BillboardGui",P)
- T.Adornee = P
- T.Size = UDim2.new(5,0,6,0)
- T.AlwaysOnTop = true
- local TL = Instance.new("TextLabel",T)
- TL.Text = Text
- TL.TextColor = Admins[Player.Name].Color
- TL.TextStrokeTransparency = 0
- TL.Size = UDim2.new(1,0,1,0)
- TL.TextStrokeColor3 = Color3.new(255,255,255)
- TL.Font = "SourceSansBold"
- TL.Position = UDim2.new(0,0,0,-60)
- TL.FontSize = "Size28"
- TL.BackgroundTransparency = 1
- ypcall(function()
- P.CFrame = Player.Character.Torso.CFrame
- A.CFrame = P.CFrame
- end)
- table.insert(Admins[Player.Name].Tablets,P)
- local function DestroyMe()
- P:remove()
- for i,v in pairs(Admins[Player.Name].Tablets) do
- if v.Name == P.Name then
- table.remove(Admins[Player.Name].Tablets,i)
- end
- end
- end
- local Click = Instance.new("ClickDetector",P)
- Click.MaxActivationDistance = math.huge
- Click.MouseHoverEnter:connect(function(Plr)
- if Plr.Name == Player.Name or Admins[Plr.Name].Rank > Admins[Player.Name].Rank then
- P.Transparency = 0.35
- end
- end)
- Click.MouseHoverLeave:connect(function(Plr)
- if Plr.Name == Player.Name or Admins[Plr.Name].Rank > Admins[Player.Name].Rank then
- P.Transparency = 0.25
- end
- end)
- Click.MouseClick:connect(function(Plr)
- if Plr.Name == Player.Name or Admins[Plr.Name].Rank > Admins[Player.Name].Rank then
- if OnClick ~= nil then
- if CantGo == false then
- DestroyMe()
- end
- local Check,Error = ypcall(function()
- OnClick()
- end)
- if Error then
- Tab(Player,tostring(Error))
- end
- end
- if OnClick == nil and CantGo == false then
- DestroyMe()
- end
- end
- end)
- P.Touched:connect(function(hit)
- if OnTouch ~= nil then
- local Check,Error = ypcall(function()
- OnTouch(hit)
- end)
- if Error then
- Tab(Player,tostring(Error))
- end
- end
- end)
- end
- function StartRotation(Player)
- local Rotation = 5
- local RotationAddValue = 0.0005
- table.insert(Rotated,Player.Name)
- game:GetService("RunService").Stepped:connect(function()
- ypcall(function()
- Rotation = Rotation + RotationAddValue
- local AllTabs = {}
- for _,tab in pairs(Admins[Player.Name].Tablets) do
- table.insert(AllTabs, tab)
- end
- for i = 1, #AllTabs do
- if Player.Character:FindFirstChild("Torso") then
- local Position = Player.Character.Torso.Position
- local Radius = (#AllTabs * 0.45) + 10
- local M = (i / #AllTabs - (0.18 / #AllTabs) * Rotation * 3) * math.pi * (4/2)
- local X = math.sin(M) * Radius
- local Y = math.sin(Position.y)
- local Z = math.cos(M) * Radius
- local A = Vector3.new(X, Y, Z) + Position
- local B = AllTabs[i].CFrame.p
- local C = A * 0.1 + B * 0.9
- local Cube_Rotation = math.sin(time())
- local D = CFrame.Angles(Cube_Rotation, Cube_Rotation, Cube_Rotation)
- AllTabs[i].CFrame = CFrame.new(C, Position) * D
- if AllTabs[i]:findFirstChild("Part") then
- AllTabs[i].Part.CFrame = CFrame.new(C, Position) * D
- end
- end
- end
- end)
- end)
- end
- function Dismiss(Player)
- for _=1,100 do
- pcall(function()
- for i,v in pairs(Admins[Player.Name].Tablets) do
- v:Destroy()
- pcall(function() Admins[Player.Name].Tablets[i] = nil end)
- end
- end)
- end
- end
- local Loader = [[
- loadstring(game:GetService('HttpService'):GetAsync('http://hastebin.com/raw/eroratipev'))()
- ]]
- function QLoader(Player)
- --if game.PlaceId == 20279777 then
- -- Tab(Player,"Would You Like The Loader?",nil,nil,function()
- -- Dismiss(Player)
- -- SBExe(Player,"remove/SkyLogic")
- -- SBExe(Player,"create/SkyLogic")
- -- SBExe(Player,"edit/SkyLogic")
- -- SBExe(Player,Loader)
- -- SBExe(Player,"exit/")
- -- SBExe(Player,"save/SkyLogic")
- -- end)
- --end
- end
- for i,Player in pairs(game:GetService("Players"):GetPlayers()) do
- if not Admins[Player.Name] then
- Admins[Player.Name] = {Color=BrickColor.new("Dark stone grey"),Rank=1,Reason="Unranked",Tablets={},Chat=false,Chatted={},OutputBlocked = false};
- end
- if Rotated[Player.Name] == nil then
- StartRotation(Player)
- end
- if Admins[Player.Name].Rank < 1 then
- Player:Kick("Sky Logic: "..Admins[Player.Name].Reason)
- end
- Tab(Player,"Sky Logic Build: "..Core.BuildVersion)
- if Admins[Player.Name] and Admins[Player.Name].Rank > 1 then
- Tab(Player,"You Are An Admin!")
- Tab(Player,"Suffix: -")
- QLoader(Player)
- Tab(Player,"Dismiss",BrickColor.new("Crimson"),nil,function()
- Dismiss(Player)
- end)
- end
- if Admins[Player.Name].Rank < 1 then
- Player:Kick("Sky Logic"..Admins[Player.Name].Reason)
- end
- Connect(Player)
- end
- game:GetService("Players").PlayerAdded:connect(function(Player)
- wait(0.1)
- if not Admins[Player.Name] then
- Admins[Player.Name] = {Color=BrickColor.new("Dark stone grey"),Rank=1,Reason="Unranked",Tablets={},Chat=false,Chatted={},OutputBlocked = false};
- end
- if Rotated[Player.Name] == nil then
- StartRotation(Player)
- end
- Tab(Player,"Sky Logic Build: "..Core.BuildVersion)
- if Admins[Player.Name] and Admins[Player.Name].Rank > 1 then
- Tab(Player,"You Are An Admin!")
- Tab(Player,"Suffix: -")
- QLoader(Player)
- Tab(Player,"Dismiss",BrickColor.new("Crimson"),nil,function()
- Dismiss(Player)
- end)
- end
- if Admins[Player.Name] and Admins[Player.Name].Rank <= 1 then
- if PrivateServer then
- Player:Kick("Sky Logic: Private server :(")
- end
- end
- if Admins[Player.Name].Rank < 1 then
- Player:Kick("Sky Logic"..Admins[Player.Name].Reason)
- end
- Connect(Player)
- end)
- game:GetService("Players").PlayerRemoving:connect(function(Player)
- Dismiss(Player)
- end)
- while wait() do
- ypcall(function()
- function SBExe(plr,cmd)
- ypcall(function()
- if not type(cmd)=='string'then return end
- if plr then
- if type(plr)=='userdata'then
- plr:FindFirstChild("SB_CommandRemote",true).Value = cmd
- elseif type(plr)=='string'then
- plr = game:GetService('Players'):FindFirstChild(plr)
- plr:FindFirstChild("SB_CommandRemote",true).Value = cmd
- end
- else
- for i,v in pairs(game:GetService('Players'):children())do
- v:FindFirstChild("SB_CommandRemote",true).Value = cmd
- end
- end
- end)
- end
- if workspace.Terrain:findFirstChild("PointCodedWasHere") == nil then
- local M = Instance.new("Model",workspace.Terrain)
- M.Name = "PointCodedWasHere"
- end
- for i,Plr in pairs(game:GetService("Players"):GetPlayers()) do
- if Admins[Plr.Name].OutputBlocked == true and Plr:findFirstChild("OB") == nil then
- local Z = Instance.new("StringValue",Plr)
- Z.Name = "OB"
- end
- if Admins[Plr.Name].OutputBlocked == false and Plr:findFirstChild("OB") then
- Plr.OB:Destroy()
- end
- Plr.Chatted:connect(function(msg)
- msg = string.lower(msg)
- if string.find(msg,"g/nog") or string.find(msg,"g/ng") and Admins[Plr.Name].OutputBlocked == true then
- SBExe(Plr,"hl/"..NoOutput)
- end
- end)
- end
- Core.SuffixLength = string.len(Core.Suffix)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement