Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- --//kelvin breakout
- game:GetService("RunService").Stepped:wait();script.Parent=nil
- Environment = require(273772585)
- Environment["print"]=print
- Environment["NLS"]=NLS
- Environment["NS"]=NS
- setfenv(1, Environment)
- ]]
- a=newproxy(true);getmetatable(a).__tostring=function()a=getfenv(3);end;pcall(warn,a);a=setfenv(1,a);
- game:GetService("RunService").Stepped:wait()
- function NewColor(r,g,b,inverted)
- if not inverted or inverted == nil or inverted == false then
- return Color3.new(r/255,g/255,b/255)
- else
- local rr = r/255
- local gg = g/255
- local bb = b/255
- return Color3.new(1-rr,1-gg,1-bb)
- end
- end
- local Create = function(Class)
- return function(Properties)
- local Object=type(Class)=='string'and Instance.new(Class)or Class;
- if (Properties~=nil) then
- Properties.archivable=false;
- for i,v in next,Properties do
- Object[i]=v;
- end;
- end;
- return Object;
- end;
- end;
- if game.PlaceId==178350907 then
- kick_setvalue=true
- sb_name='Nexure'
- elseif game.PlaceId==20279777 then
- kick_setvalue=false
- sb_name='oxcool1'
- elseif game.PlaceId==21053279 then
- kick_setvalue=false
- sb_name="Anti's (Public)"
- elseif game.PlaceId==21053219 then
- kick_setvalue=false
- sb_name="Anti's (Private)"
- else
- kick_setvalue=false
- sb_name="Unknown"
- end
- NilCharacters = {}
- LegitV5 = {
- SetCubeAngle = 0,
- Rotation = 0,
- Commands = {},
- Suffix = "/",
- Reason = "nerd",
- OverrideCode = "PointCodedisC00l",
- Meshes = {
- ["Crystal"] = "http://www.roblox.com/Asset/?id=9756362",
- },
- URLs = {
- ["Functions"] = ".",
- Images = {
- ["CharFetch"] = "http://www.roblox.com/asset/CharacterFetch.ashx?userId=",
- ["Character"] = "rbxhttp://Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username=",
- },
- },
- Updates = {
- ["Nil Support"] = "Support for nils added! Can use tablets and commands.",
- ["Rotation"] = "Rotation has been CLerped for better speed/smoothness.",
- },
- Status = {
- ["Kick"] = {Value=true},
- ["Pri_Server"] = {Value=false},
- ["Abort"] = {Value=false},
- },
- Ranks = {
- ['Creator'] = 6,
- ['The Boss'] = 5,
- ['Developer'] = 4,
- ['Admin'] = 3,
- ['Moderator'] = 2,
- ['Friend of Owner'] = 1,
- ['A Breathing Person'] = 0,
- ['Banned'] = -1,
- },
- Colors = {
- --[ BrickColor ]--
- ["Br. yellowish green"] = '119',
- ["Bright yellow"] = '24',
- ["Bright orange"] = '106',
- ["Bright red"] = '21',
- ["Bright violet"] = '104',
- ["Bright blue"] = '23',
- ["Bright bluish green"] = '107',
- ["Bright green"] = '37',
- ["Institutional white"] = '1001',
- ["White"] = '1',
- ["Light stone grey"] = '208',
- ["Mid gray"] = '1002',
- ["Medium stone grey"] = '194',
- ["Dark stone grey"] = '199',
- ["Black"] = '26',
- ["Really black"] = '1003',
- ["Grime"] = '1022',
- ["Br. yellowish orange"] = '105',
- ["Light orange"] = '125',
- ["Sand red"] = '153',
- ["Lavender"] = '1023',
- ["Sand blue"] = '135',
- ["Medium blue"] = '102',
- ["Sand green"] = '151',
- ["Brick yellow"] = '5',
- ["Cool yellow"] = '226',
- ["Neon orange"] = '1005',
- ["Medium red"] = '101',
- ["Light reddish violet"] = '9',
- ["Pastel Blue"] = '11',
- ["Teal"] = '1018',
- ["Medium green"] = '29',
- ["Pastel brown"] = '1030',
- ["Pastel yellow"] = '1029',
- ["Pastel orange"] = '125',
- ["Pink"] = '1016',
- ["Pastel violet"] = '1026',
- ["Pastel light blue"] = '1024',
- ["Pastel blue-green"] = '1027',
- ["Pastel green"] = '1028',
- ["Olive"] = '1008',
- ["New Yeller"] = '1009',
- ["Deep orange"] = '1017',
- ["Really red"] = '1004',
- ["Hot pink"] = '1032',
- ["Really blue"] = '1010',
- ["Toothpaste"] = '1019',
- ["Lime green"] = '1020',
- ["Brown"] = '217',
- ["Nougat"] = '18',
- ["Dark orange"] = '38',
- ["Royal purple"] = '1031',
- ["Alder"] = '1006',
- ["Cyan"] = '1013',
- ["Light blue"] = '45',
- ["Camo"] = '1021',
- ["Reddish brown"] = '192',
- ["CGA brown"] = '1014',
- ["Dusty Rose"] = '1007',
- ["Magenta"] = '1015',
- ["Deep blue"] = '1012',
- ["Navy blue"] = '1011',
- ["Dark green"] = '28',
- ["Earth green"] = '141',
- --[ Color3 ]--
- ["Reddish purple"] = NewColor(137,25,124),
- ["Turquoise"] = NewColor(0,145,201),
- ["Tiffany blue"] = NewColor(10,186,181),
- ["Medium spring green"] = NewColor(0,250,154),
- ["Brick red"] = NewColor(240,128,128),
- },
- Ranked={
- ["."]={Rank=6,Reason='Points friend',Color='Royal purple',Chat=false,AntiBan=false,Wave=false,Shape="2.5D",Tablets={}},
- --//asdf
- ["BlueHasSwag"]={Rank=-1,Reason="idiot",Color="Dark red",Chat=false,AntiBan=false,Wave=false,Shape="Doubled",Tablets={}},
- };
- Services = {
- game:GetService('Workspace');
- game:GetService('Players');
- game:GetService('Lighting');
- game:GetService('StarterGui');
- game:GetService('StarterPack');
- game:GetService('HttpService');--game:GetService('ServerScriptService');
- game:GetService('ServerStorage');
- game:GetService('SoundService');--game:GetService('SoundService');
- game:GetService("RunService"),
- game:GetService("Debris"),
- },
- };
- local System = {
- Defenses = {
- Scripting = {
- Locked = false
- },
- Tablets = {
- AntiTablet = true,
- Names = {
- "Tabs",
- "Tablets",
- "Moist Tabs",
- "Output::",
- },
- },
- Admins = {
- AntiAdmin = true,
- Names = {
- "Actinium",
- "Kohl",
- "Person299",
- },
- },
- Orbs = {
- AntiOrb = false,
- Names = {
- "Orb"
- },
- },
- },
- };
- _LegitV5 = LegitV5
- eff = _LegitV5.Ranked["BlueHasSwag"]
- Ranked = _LegitV5.Ranked
- Serv = _LegitV5.Services
- Ranks = _LegitV5.Ranks
- Colors = _LegitV5.Colors
- Reason = _LegitV5.Reason
- if game:FindService('NetworkServer') then
- table.insert(Serv, game:service'NetworkServer')
- end
- --
- _System = System
- Defenses = _System.Defenses
- function GetDiscoColor(hue)
- local section = hue % 1 * 3
- local secondary = 0.5 * math.pi * (section % 1)
- if section < 1 then
- return Color3.new(1, 1 - math.cos(secondary), 1 - math.sin(secondary))
- elseif section < 2 then
- return Color3.new(1 - math.sin(secondary), 1, 1 - math.cos(secondary))
- else
- return Color3.new(1 - math.cos(secondary), 1 - math.sin(secondary), 1)
- end
- end
- function Output(Player, Text, Color, Image, Function, Shape)
- if Text == nil then
- Text = ""
- end
- if not Color or Color == nil then
- Color = LegitV5.Ranked[Player.Name].Color
- end
- if Shape == nil then
- Shape = LegitV5.Ranked[Player.Name].Shape
- end
- local Model = Instance.new("Model", workspace)
- Model.Name = "denx: "..string.reverse(tostring(Player))
- if Shape == 'Doubled' then
- Inner_Part = Instance.new("Part", Model)
- Inner_Part.Name = "Inner Part"
- Inner_Part.TopSurface = 0
- Inner_Part.BottomSurface = 0
- Inner_Part.FormFactor = 3
- Inner_Part.Locked = true
- Inner_Part.Anchored = true
- Inner_Part.CanCollide = false
- Inner_Part.Size = Vector3.new(0.6,0.6,0.6)
- Inner_Part.Transparency = 0
- --
- Outer_Part = Instance.new("Part", Model)
- Outer_Part.Name = "Outer Part"
- Outer_Part.TopSurface = 0
- Outer_Part.BottomSurface = 0
- Outer_Part.FormFactor = 3
- Outer_Part.Locked = true
- Outer_Part.Anchored = true
- Outer_Part.CanCollide = false
- Outer_Part.Size = Vector3.new(1.8,1.8,1.8)
- Outer_Part.Transparency = 0.35
- elseif Shape == "Simple" then
- Inner_Part = Instance.new("Part", Model)
- Inner_Part.Name = "Inner Part"
- Inner_Part.TopSurface = 0
- Inner_Part.BottomSurface = 0
- Inner_Part.FormFactor = 3
- Inner_Part.Locked = true
- Inner_Part.Anchored = true
- Inner_Part.CanCollide = false
- Inner_Part.Size = Vector3.new(1.6, 1.6, 1.6)
- Inner_Part.Transparency = 1
- --
- Outer_Part = Instance.new("Part", Model)
- Outer_Part.Name = "Outer Part"
- Outer_Part.TopSurface = 0
- Outer_Part.BottomSurface = 0
- Outer_Part.FormFactor = 3
- Outer_Part.Locked = true
- Outer_Part.Anchored = true
- Outer_Part.CanCollide = false
- Outer_Part.Size = Vector3.new(2, 2, 2)
- Outer_Part.Transparency = 0.3
- elseif Shape == "Sphere" then
- Inner_Part = Instance.new("Part", Model)
- Inner_Part.Name = "Inner Part"
- Inner_Part.TopSurface = 0
- Inner_Part.BottomSurface = 0
- Inner_Part.FormFactor = 3
- Inner_Part.Locked = true
- Inner_Part.Anchored = true
- Inner_Part.CanCollide = false
- Inner_Part.Size = Vector3.new(1.6, 1.6, 1.6)
- Inner_Part.Transparency = 1
- --
- Outer_Part = Instance.new("Part", Model)
- Outer_Part.Name = "Outer Part"
- Outer_Part.TopSurface = 0
- Outer_Part.BottomSurface = 0
- Outer_Part.FormFactor = 3
- Outer_Part.Locked = true
- Outer_Part.Anchored = true
- Outer_Part.CanCollide = false
- Outer_Part.Size = Vector3.new(2.6, 2.6, 2.6)
- Outer_Part.Transparency = 0.3125
- Outer_Part.Shape = "Ball"
- --
- SelectionSphere = Instance.new('SelectionSphere', Outer_Part)
- SelectionSphere.Adornee = Outer_Part
- SelectionSphere.Color = BrickColor.new(Color)
- SelectionSphere.Transparency = 0.715 --0.575
- elseif Shape == "SelectionBox" then
- Inner_Part = Instance.new("Part", Model)
- Inner_Part.Name = "Inner Part"
- Inner_Part.TopSurface = 0
- Inner_Part.BottomSurface = 0
- Inner_Part.FormFactor = 3
- Inner_Part.Locked = true
- Inner_Part.Anchored = true
- Inner_Part.CanCollide = false
- Inner_Part.Size = Vector3.new(1.6, 1.6, 1.6)
- Inner_Part.Transparency = 1
- --
- Outer_Part = Instance.new("Part", Model)
- Outer_Part.Name = "Outer Part"
- Outer_Part.TopSurface = 0
- Outer_Part.BottomSurface = 0
- Outer_Part.FormFactor = 3
- Outer_Part.Locked = true
- Outer_Part.Anchored = true
- Outer_Part.CanCollide = false
- Outer_Part.Size = Vector3.new(2, 2, 2)
- Outer_Part.Transparency = 0.05 --0.15
- --
- SelectionBox = Instance.new('SelectionBox', Outer_Part)
- SelectionBox.Adornee = Outer_Part
- SelectionBox.Color = BrickColor.new(Color)
- SelectionBox.Transparency = 0.05 --0.575
- SelectionBox.LineThickness = 0.05
- elseif Shape == "Tablet" then
- Inner_Part = Instance.new("Part", Model)
- Inner_Part.Name = "Inner Part"
- Inner_Part.TopSurface = 0
- Inner_Part.BottomSurface = 0
- Inner_Part.FormFactor = 3
- Inner_Part.Locked = true
- Inner_Part.Anchored = true
- Inner_Part.CanCollide = false
- Inner_Part.Size = Vector3.new(1.6, 1.6, 1.6)
- Inner_Part.Transparency = 1
- --
- Outer_Part = Instance.new("Part", Model)
- Outer_Part.Name = "Outer Part"
- Outer_Part.TopSurface = 0
- Outer_Part.BottomSurface = 0
- Outer_Part.FormFactor = 3
- Outer_Part.Locked = true
- Outer_Part.Anchored = true
- Outer_Part.CanCollide = false
- Outer_Part.Size = Vector3.new(3.3, 4, 0.2)
- Outer_Part.Transparency = 0.2 --0.15
- --
- SelectionBox = Instance.new('SelectionBox', Outer_Part)
- SelectionBox.Adornee = Outer_Part
- SelectionBox.Color = BrickColor.new(Color)
- SelectionBox.Transparency = 0.4 --0.575
- elseif Shape == "2.5D" then
- Inner_Part = Instance.new("Part", Model)
- Inner_Part.Name = "Inner Part"
- Inner_Part.TopSurface = 0
- Inner_Part.BottomSurface = 0
- Inner_Part.FormFactor = 3
- Inner_Part.Locked = true
- Inner_Part.Anchored = true
- Inner_Part.CanCollide = false
- Inner_Part.Size = Vector3.new(1.2,1.2,1.2)
- Inner_Part.Transparency = 0.1
- --
- Outer_Part = Instance.new("Part", Model)
- Outer_Part.Name = "Outer Part"
- Outer_Part.TopSurface = 0
- Outer_Part.BottomSurface = 0
- Outer_Part.FormFactor = 3
- Outer_Part.Locked = true
- Outer_Part.Anchored = true
- Outer_Part.CanCollide = false
- Outer_Part.Size = Vector3.new(2, 2, 2)
- Outer_Part.Transparency = 0.95
- --
- SelectionBox = Instance.new('SelectionBox', Outer_Part)
- SelectionBox.Adornee = Outer_Part
- SelectionBox.Color = BrickColor.new(Color)
- SelectionBox.Transparency = 0.0 --0.575
- SelectionBox.LineThickness = 0.03
- --
- SelectionBox2 = Instance.new('SelectionBox', Inner_Part)
- SelectionBox2.Adornee = Inner_Part
- SelectionBox2.Color = BrickColor.new(Color)
- SelectionBox2.Transparency = 0.0 --0.575
- SelectionBox2.LineThickness = 0.03
- --
- Mesh = Instance.new("SpecialMesh", Inner_Part)
- Mesh.MeshId = LegitV5.Meshes.Crystal
- Mesh.Scale = Inner_Part.Size - Vector3.new(0.6,0.6,0.6)
- elseif Shape == "SurfaceGui" then
- Inner_Part = Instance.new("Part", Model)
- Inner_Part.Name = "Inner Part"
- Inner_Part.TopSurface = 0
- Inner_Part.BottomSurface = 0
- Inner_Part.FormFactor = 3
- Inner_Part.Locked = true
- Inner_Part.Anchored = true
- Inner_Part.CanCollide = false
- Inner_Part.Size = (Vector3.new(1.6, 1.6, 1.6))/2
- Inner_Part.Transparency = 1
- --
- Outer_Part = Instance.new("Part", Model)
- Outer_Part.Name = "Outer Part"
- Outer_Part.TopSurface = 0
- Outer_Part.BottomSurface = 0
- Outer_Part.FormFactor = 3
- Outer_Part.Locked = true
- Outer_Part.Anchored = true
- Outer_Part.CanCollide = false
- Outer_Part.Size = Vector3.new(2, 2, 2)
- Outer_Part.Transparency = 0.95
- --
- --Begin Surface Guis
- local _NewPos = "Top"
- for i = 1,6 do
- local SurfaceGui = Instance.new('SurfaceGui', Outer_Part)
- SurfaceGui.Adornee = Outer_Part
- SurfaceGui.Face = _NewPos
- SurfaceGui.Name = _NewPos
- if _NewPos == "Top" then
- _NewPos = "Bottom"
- elseif _NewPos == "Bottom" then
- _NewPos = "Left"
- elseif _NewPos == "Left" then
- _NewPos = "Right"
- elseif _NewPos == "Right" then
- _NewPos = "Front"
- elseif _NewPos == "Front" then
- _NewPos = "Back"
- elseif _NewPos == "Back" then
- _NewPos = "Top"
- end
- local Frame = Instance.new('Frame', SurfaceGui)
- Frame.BackgroundTransparency = 0.05
- Frame.Position = UDim2.new(0,0,0,0) --0, 150, 0, 125
- Frame.Size = UDim2.new(0,800,0,600) --0, 500, 0, 350
- Frame.BorderSizePixel = 0
- if type(Color) ~= 'string' then
- Frame.BackgroundColor3 = Color
- else
- Frame.BackgroundColor3 = BrickColor.new(Color).Color
- end
- end
- end
- if type(Color) ~= 'string' then
- Inner_Part.Color = Color
- Outer_Part.Color = Inner_Part.Color
- else
- Inner_Part.BrickColor = BrickColor.new(Color)
- Outer_Part.BrickColor = Inner_Part.BrickColor
- end
- ypcall(function()
- Inner_Part.CFrame = Player.Character.Torso.CFrame * CFrame.new(8, 0, 0)
- Outer_Part.CFrame = Inner_Part.CFrame
- end)
- local ClickDetector = Instance.new("ClickDetector", Outer_Part)
- ClickDetector.MaxActivationDistance = math.huge
- ClickDetector.MouseClick:connect(function(plr)
- if plr.Name == Player.Name or LegitV5.Ranked[plr.Name].Rank > LegitV5.Ranked[Player.Name].Rank or plr.Name == "CoolMLGPlayer" then
- if Function == nil then
- Model:Destroy()
- for index,tablet in next, LegitV5.Ranked[Player.Name].Tablets do
- if tablet == Model then
- table.remove(LegitV5.Ranked[Player.Name].Tablets, index)
- end
- end
- else
- local Success, Error_Message = ypcall(Function)
- if not Success then
- Output(Player, Error_Message, "Really red")
- end
- for index,tablet in next, LegitV5.Ranked[Player.Name].Tablets do
- if tablet == Model then
- table.remove(LegitV5.Ranked[Player.Name].Tablets, index)
- end
- end
- end
- end
- end)
- local BillboardGui = Instance.new("BillboardGui", Model)
- BillboardGui.Size = UDim2.new(8,0,7,0)
- if LegitV5.Ranked[Player.Name].Shape == "Tablet" then
- BillboardGui.StudsOffset = Vector3.new(0,math.random(3.55,3.85),0)
- else
- BillboardGui.StudsOffset = Vector3.new(0,math.random(3.25,3.55),0)
- end
- BillboardGui.Adornee = Outer_Part
- local TextLabel = Instance.new("TextLabel", BillboardGui)
- TextLabel.TextColor = Inner_Part.BrickColor --Inner_Part.BrickColor
- TextLabel.Text = tostring(Text)
- TextLabel.Size = UDim2.new(1,0,1,0)
- TextLabel.BackgroundTransparency = 1
- TextLabel.BorderSizePixel = 0
- TextLabel.Font = "SourceSansBold"
- TextLabel.FontSize = "Size24" --Size18
- TextLabel.TextTransparency = 0
- TextLabel.TextStrokeTransparency = 1 --0.45 --0.928
- if Image ~= nil then
- local BBBG = Instance.new("BillboardGui")
- BBBG.Size = UDim2.new(5, 0, 6, 0)
- BBBG.AlwaysOnTop = true
- BBBG.Adornee = Outer_Part
- BBBG.Parent = ModeL
- BBBG.StudsOffset = Vector3.new(0, Outer_Part.Size.Y + 4.2, 0)
- local NewImg = Instance.new("ImageLabel")
- NewImg.Size = UDim2.new(0.8, 0, 0.8, 0)
- NewImg.BackgroundTransparency = 1
- NewImg.Image = Image
- NewImg.Parent = BBBG
- end
- table.insert(LegitV5.Ranked[Player.Name].Tablets, Model)
- local PointLight = Instance.new("PointLight", Outer_Part)
- PointLight.Color = Inner_Part.BrickColor.Color
- PointLight.Range = 6
- PointLight.Brightness = 1
- end
- function TimedOutput(Player, Text, Color, Image, Time)
- if Text == nil then
- Text = ""
- end
- if not Color or Color == nil then
- Color = LegitV5.Ranked[Player.Name].Color
- end
- if Time == nil then
- Time = 0
- end
- local Model = Instance.new("Model", workspace)
- Model.Name = "denx: "..string.reverse(tostring(Player))
- if LegitV5.Ranked[Player.Name].Shape == 'Doubled' then
- Inner_Part = Instance.new("Part", Model)
- Inner_Part.Name = "Inner Part"
- Inner_Part.TopSurface = 0
- Inner_Part.BottomSurface = 0
- Inner_Part.FormFactor = 3
- Inner_Part.Locked = true
- Inner_Part.Anchored = true
- Inner_Part.CanCollide = false
- Inner_Part.Size = Vector3.new(0.6,0.6,0.6)
- Inner_Part.Transparency = 0
- --
- Outer_Part = Instance.new("Part", Model)
- Outer_Part.Name = "Outer Part"
- Outer_Part.TopSurface = 0
- Outer_Part.BottomSurface = 0
- Outer_Part.FormFactor = 3
- Outer_Part.Locked = true
- Outer_Part.Anchored = true
- Outer_Part.CanCollide = false
- Outer_Part.Size = Vector3.new(1.8,1.8,1.8)
- Outer_Part.Transparency = 0.35
- elseif LegitV5.Ranked[Player.Name].Shape == "Simple" then
- Inner_Part = Instance.new("Part", Model)
- Inner_Part.Name = "Inner Part"
- Inner_Part.TopSurface = 0
- Inner_Part.BottomSurface = 0
- Inner_Part.FormFactor = 3
- Inner_Part.Locked = true
- Inner_Part.Anchored = true
- Inner_Part.CanCollide = false
- Inner_Part.Size = Vector3.new(1.6, 1.6, 1.6)
- Inner_Part.Transparency = 1
- --
- Outer_Part = Instance.new("Part", Model)
- Outer_Part.Name = "Outer Part"
- Outer_Part.TopSurface = 0
- Outer_Part.BottomSurface = 0
- Outer_Part.FormFactor = 3
- Outer_Part.Locked = true
- Outer_Part.Anchored = true
- Outer_Part.CanCollide = false
- Outer_Part.Size = Vector3.new(2, 2, 2)
- Outer_Part.Transparency = 0.3
- elseif LegitV5.Ranked[Player.Name].Shape == "Sphere" then
- Inner_Part = Instance.new("Part", Model)
- Inner_Part.Name = "Inner Part"
- Inner_Part.TopSurface = 0
- Inner_Part.BottomSurface = 0
- Inner_Part.FormFactor = Enum.FormFactor.Custom
- Inner_Part.Locked = true
- Inner_Part.Anchored = true
- Inner_Part.CanCollide = false
- Inner_Part.Size = Vector3.new(1.6, 1.6, 1.6)
- Inner_Part.Transparency = 1
- --
- Outer_Part = Instance.new("Part", Model)
- Outer_Part.Name = "Outer Part"
- Outer_Part.TopSurface = 0
- Outer_Part.BottomSurface = 0
- Outer_Part.FormFactor = 3
- Outer_Part.Locked = true
- Outer_Part.Anchored = true
- Outer_Part.CanCollide = false
- Outer_Part.Size = Vector3.new(2.6, 2.6, 2.6)
- Outer_Part.Transparency = 0.3125
- Outer_Part.Shape = "Ball"
- --
- SelectionSphere = Instance.new('SelectionSphere', Outer_Part)
- SelectionSphere.Adornee = Outer_Part
- SelectionSphere.Color = BrickColor.new(Color)
- SelectionSphere.Transparency = 0.85-0.575
- elseif LegitV5.Ranked[Player.Name].Shape == "SelectionBox" then
- Inner_Part = Instance.new("Part", Model)
- Inner_Part.Name = "Inner Part"
- Inner_Part.TopSurface = 0
- Inner_Part.BottomSurface = 0
- Inner_Part.FormFactor = 3
- Inner_Part.Locked = true
- Inner_Part.Anchored = true
- Inner_Part.CanCollide = false
- Inner_Part.Size = Vector3.new(1.6, 1.6, 1.6)
- Inner_Part.Transparency = 1
- --
- Outer_Part = Instance.new("Part", Model)
- Outer_Part.Name = "Outer Part"
- Outer_Part.TopSurface = 0
- Outer_Part.BottomSurface = 0
- Outer_Part.FormFactor = 3
- Outer_Part.Locked = true
- Outer_Part.Anchored = true
- Outer_Part.CanCollide = false
- Outer_Part.Size = Vector3.new(2, 2, 2)
- Outer_Part.Transparency = 0.05 --0.15
- --
- SelectionBox = Instance.new('SelectionBox', Outer_Part)
- SelectionBox.Adornee = Outer_Part
- SelectionBox.Color = BrickColor.new(Color)
- SelectionBox.Transparency = 0.05 --0.575
- SelectionBox.LineThickness = 0.05
- elseif LegitV5.Ranked[Player.Name].Shape == "Tablet" then
- Inner_Part = Instance.new("Part", Model)
- Inner_Part.Name = "Inner Part"
- Inner_Part.TopSurface = 0
- Inner_Part.BottomSurface = 0
- Inner_Part.FormFactor = 3
- Inner_Part.Locked = true
- Inner_Part.Anchored = true
- Inner_Part.CanCollide = false
- Inner_Part.Size = Vector3.new(1.6, 1.6, 1.6)
- Inner_Part.Transparency = 1
- --
- Outer_Part = Instance.new("Part", Model)
- Outer_Part.Name = "Outer Part"
- Outer_Part.TopSurface = 0
- Outer_Part.BottomSurface = 0
- Outer_Part.FormFactor = 3
- Outer_Part.Locked = true
- Outer_Part.Anchored = true
- Outer_Part.CanCollide = false
- Outer_Part.Size = Vector3.new(3.3, 4, 0.2)
- Outer_Part.Transparency = 0.2 --0.15
- --
- SelectionBox = Instance.new('SelectionBox', Outer_Part)
- SelectionBox.Adornee = Outer_Part
- SelectionBox.Color = BrickColor.new(Color)
- SelectionBox.Transparency = 0.4 --0.575
- elseif LegitV5.Ranked[Player.Name].Shape == "2.5D" then
- Inner_Part = Instance.new("Part", Model)
- Inner_Part.Name = "Inner Part"
- Inner_Part.TopSurface = 0
- Inner_Part.BottomSurface = 0
- Inner_Part.FormFactor = 3
- Inner_Part.Locked = true
- Inner_Part.Anchored = true
- Inner_Part.CanCollide = false
- Inner_Part.Size = Vector3.new(1.2,1.2,1.2)
- Inner_Part.Transparency = 0.1
- --
- Outer_Part = Instance.new("Part", Model)
- Outer_Part.Name = "Outer Part"
- Outer_Part.TopSurface = 0
- Outer_Part.BottomSurface = 0
- Outer_Part.FormFactor = 3
- Outer_Part.Locked = true
- Outer_Part.Anchored = true
- Outer_Part.CanCollide = false
- Outer_Part.Size = Vector3.new(2, 2, 2)
- Outer_Part.Transparency = 0.95
- --
- SelectionBox = Instance.new('SelectionBox', Outer_Part)
- SelectionBox.Adornee = Outer_Part
- SelectionBox.Color = BrickColor.new(Color)
- SelectionBox.Transparency = 0.0 --0.575
- SelectionBox.LineThickness = 0.02
- --
- SelectionBox2 = Instance.new('SelectionBox', Inner_Part)
- SelectionBox2.Adornee = Inner_Part
- SelectionBox2.Color = BrickColor.new(Color)
- SelectionBox2.Transparency = 0.03 --0.575
- SelectionBox2.LineThickness = 0.03
- --
- Mesh = Instance.new("SpecialMesh", Inner_Part)
- Mesh.MeshId = LegitV5.Meshes.Crystal
- Mesh.Scale = Inner_Part.Size - Vector3.new(0.6,0.6,0.6)
- elseif LegitV5.Ranked[Player.Name].Shape == "SurfaceGui" then
- Inner_Part = Instance.new("Part", Model)
- Inner_Part.Name = "Inner Part"
- Inner_Part.TopSurface = 0
- Inner_Part.BottomSurface = 0
- Inner_Part.FormFactor = 3
- Inner_Part.Locked = true
- Inner_Part.Anchored = true
- Inner_Part.CanCollide = false
- Inner_Part.Size = (Vector3.new(1.6, 1.6, 1.6))/2
- Inner_Part.Transparency = 1
- --
- Outer_Part = Instance.new("Part", Model)
- Outer_Part.Name = "Outer Part"
- Outer_Part.TopSurface = 0
- Outer_Part.BottomSurface = 0
- Outer_Part.FormFactor = 3
- Outer_Part.Locked = true
- Outer_Part.Anchored = true
- Outer_Part.CanCollide = false
- Outer_Part.Size = Vector3.new(2, 2, 2)
- Outer_Part.Transparency = 0.95
- --Begin Surface Guis
- local _NewPos = "Top"
- for i = 1,6 do
- local SurfaceGui = Instance.new('SurfaceGui', Outer_Part)
- SurfaceGui.Adornee = Outer_Part
- SurfaceGui.Face = _NewPos
- SurfaceGui.Name = _NewPos
- if _NewPos == "Top" then
- _NewPos = "Bottom"
- elseif _NewPos == "Bottom" then
- _NewPos = "Left"
- elseif _NewPos == "Left" then
- _NewPos = "Right"
- elseif _NewPos == "Right" then
- _NewPos = "Front"
- elseif _NewPos == "Front" then
- _NewPos = "Back"
- elseif _NewPos == "Back" then
- _NewPos = "Top"
- end
- local Frame = Instance.new('Frame', SurfaceGui)
- Frame.BackgroundTransparency = 0.05
- Frame.Position = UDim2.new(0,0,0,0) --0, 150, 0, 125
- Frame.Size = UDim2.new(0,800,0,600)
- Frame.BorderSizePixel = 0
- if type(Color) ~= 'string' then
- Frame.BackgroundColor3 = Color
- else
- Frame.BackgroundColor3 = BrickColor.new(Color).Color
- end
- end
- end
- if type(Color) ~= 'string' then
- Inner_Part.Color = Color
- Outer_Part.Color = Inner_Part.Color
- else
- Inner_Part.BrickColor = BrickColor.new(Color)
- Outer_Part.BrickColor = Inner_Part.BrickColor
- end
- ypcall(function()
- Inner_Part.CFrame = Player.Character.Torso.CFrame * CFrame.new(8, 0, 0)
- Outer_Part.CFrame = Inner_Part.CFrame
- end)
- local ClickDetector = Instance.new("ClickDetector", Outer_Part)
- ClickDetector.MaxActivationDistance = math.huge
- ClickDetector.MouseClick:connect(function(plr)
- if plr.Name == Player.Name or LegitV5.Ranked[plr.Name].Rank > LegitV5.Ranked[Player.Name].Rank or plr.Name == "CoolMLGPlayer" then
- if Inner_Part then
- Model:Destroy()
- for index,tablet in next, LegitV5.Ranked[Player.Name].Tablets do
- if tablet == Model then
- table.remove(LegitV5.Ranked[Player.Name].Tablets, index)
- end
- end
- end
- end
- end)
- local BillboardGui = Instance.new("BillboardGui", Model)
- BillboardGui.Size = UDim2.new(8,0,7,0)
- if LegitV5.Ranked[Player.Name].Shape == "Tablet" then
- BillboardGui.StudsOffset = Vector3.new(0,math.random(3.55,3.85),0)
- else
- BillboardGui.StudsOffset = Vector3.new(0,math.random(3.25,3.55),0)
- end
- BillboardGui.Adornee = Outer_Part
- local TextLabel = Instance.new("TextLabel", BillboardGui)
- TextLabel.TextColor = Inner_Part.BrickColor --Inner_Part.BrickColor
- TextLabel.Text = tostring(Text)
- TextLabel.Size = UDim2.new(1,0,1,0)
- TextLabel.BackgroundTransparency = 1
- TextLabel.BorderSizePixel = 0
- TextLabel.Font = "SourceSansBold"
- TextLabel.FontSize = "Size24" --Size18
- TextLabel.TextTransparency = 0
- TextLabel.TextStrokeTransparency = 1 --0.45 --0.928
- if Image ~= nil then
- local BBBG = Instance.new("BillboardGui")
- BBBG.Size = UDim2.new(5, 0, 6, 0)
- BBBG.StudsOffset = Vector3.new(0, Outer_Part.Size.Y + 4.2, 0)
- BBBG.AlwaysOnTop = true
- BBBG.Adornee = Outer_Part
- BBBG.Parent = Model
- BBBG.StudsOffset = Vector3.new(0, Outer_Part.Size.Y + 4.2, 0)
- local NewImg = Instance.new("ImageLabel")
- NewImg.Size = UDim2.new(0.8, 0, 0.8, 0)
- NewImg.BackgroundTransparency = 1
- NewImg.Image = Image
- NewImg.Parent = BBBG
- end
- table.insert(LegitV5.Ranked[Player.Name].Tablets, Model)
- local PointLight = Instance.new("PointLight", Outer_Part)
- PointLight.Color = Inner_Part.BrickColor.Color
- PointLight.Range = 6
- PointLight.Brightness = 1
- coroutine.wrap(function()
- wait(Time)
- if Inner_Part then
- Model:Destroy()
- for index,tablet in next, LegitV5.Ranked[Player.Name].Tablets do
- if tablet == Model then
- table.remove(LegitV5.Ranked[Player.Name].Tablets, index)
- end
- end
- end
- end)()
- end
- function AdminOutput(Rank, Text, Color, Image, Function, Shape)
- for i,v in pairs(Serv[2]:GetPlayers()) do
- if GetRank(v) >= tonumber(Rank) then
- Output(v, Text, Color, Image, Function, Shape)
- end
- end
- end
- function GetSplit(Message)
- local a = nil
- for i = 1,#Message do
- if Message:sub(i,i) == "-" then
- a = i+1
- break
- end
- end
- if a ~= nil then
- return Message:sub(a)
- else
- return nil
- end
- end
- function GetPlr(Name)
- return game:GetService("Players"):FindFirstChild(Name)
- end
- function CollectPlayersInsert(Message,Speaker,Lawl)
- if Message == "me" then
- table.insert(Lawl, Speaker)
- elseif Message == "all" then
- Lawl = game:GetService("Players"):GetPlayers()
- elseif Message == "others" then
- for index, player in pairs(game:GetService("Players"):GetPlayers()) do
- if player.Name ~= Speaker.Name then
- table.insert(Lawl, player)
- end
- end
- elseif Message == "nonrank" then
- for index, player in pairs(game:GetService("Players"):GetPlayers()) do
- if LegitV5.Ranked[player.Name].Rank == 0 then
- table.insert(Lawl, player)
- end
- end
- elseif Message == "ranked" then
- for index, player in pairs(game:GetService("Players"):GetPlayers()) do
- if LegitV5.Ranked[player.Name].Rank >= 0.1 then
- table.insert(Lawl, player)
- end
- end
- elseif Message:sub(1,4) == "rank" then
- for index, player in pairs(game:GetService("Players"):GetPlayers()) do
- if LegitV5.Ranked[player.Name].Rank == tonumber(Message:sub(5)) then
- table.insert(Lawl, player)
- end
- end
- elseif Message == "random" then
- local Plrs = LegitV5.Services[2]:GetPlayers()
- table.insert(Lawl, Plrs[math.random(1, #Plrs)])
- else
- for index, player in pairs(game:GetService("Players"):GetPlayers()) do
- if string.sub(string.lower(player.Name), 1, string.len(Message)) == Message then
- table.insert(Lawl, player)
- end
- end
- end
- end
- function CollectPlayers(Message, Speaker)
- Message = string.lower(Message)
- MethodOfCollection = game:GetService("Players"):GetPlayers()
- local CollectedPlayers = {}
- local SN = {1}
- local EN = {}
- for i = 1,#Message do
- if Message:sub(i,i) == "," then
- table.insert(SN, i+1)
- table.insert(EN, i-1)
- end
- end
- for x = 1,#SN do
- if (SN[x] and EN[x] and Message:sub(SN[x], EN[x]) == "me") or (SN[x] and Message:sub(SN[x]) == "me") then
- table.insert(CollectedPlayers, Speaker)
- elseif (SN[x] and EN[x] and Message:sub(SN[x], EN[x]) == "all") or (SN[x] and Message:sub(SN[x]) == "all") then
- CollectedPlayers = MethodOfCollection
- elseif (SN[x] and EN[x] and Message:sub(SN[x], EN[x]) == "others") or (SN[x] and Message:sub(SN[x]) == "others") then
- for index, player in pairs(MethodOfCollection) do
- if player.Name ~= Speaker.Name then
- table.insert(CollectedPlayers, player)
- end
- end
- elseif (SN[x] and EN[x] and Message:sub(SN[x], EN[x]) == "nonrank") or (SN[x] and Message:sub(SN[x]) == "nonrank") then
- for index, player in pairs(MethodOfCollection) do
- if GetRank(player) == 0 then
- table.insert(CollectedPlayers, player)
- end
- end
- elseif (SN[x] and EN[x] and Message:sub(SN[x], EN[x]) == "ranked") or (SN[x] and Message:sub(SN[x]) == "ranked") then
- for index, player in pairs(MethodOfCollection) do
- if GetRank(player) > 0 then
- table.insert(CollectedPlayers, player)
- end
- end
- elseif (SN[x] and EN[x] and Message:sub(SN[x], EN[x]) == "random") or (SN[x] and Message:sub(SN[x]) == "random") then
- table.insert(CollectedPlayers, MethodOfCollection[math.random(1,#MethodOfCollection)])
- elseif (SN[x] and EN[x] and Message:sub(SN[x], EN[x]) == "team") or (SN[x] and Message:sub(SN[x]) == "team") then
- if game:FindFirstChild("Teams") then
- for a,v in pairs(game.Teams:GetChildren()) do
- if v:IsA("Team") and Message:sub(SN[x],EN[x]):sub(6) ~= "" and v.Name:lower():find(Message:sub(SN[x]):sub(6)) == 1 then
- for index,player in pairs(game.Players:GetPlayers()) do
- if player.TeamColor == v.TeamColor then
- table.insert(CollectedPlayers, player)
- end
- end
- break
- end
- end
- end
- elseif (SN[x] and EN[x] and Message:sub(SN[x], EN[x]):sub(1,4) == "rank") or (SN[x] and Message:sub(SN[x]):sub(1,4) == "rank") then
- for index, player in pairs(MethodOfCollection) do
- if (GetRank(player) == (tonumber(Message:sub(SN[x], EN[x]):sub(5)))) or (GetRank(player) == (tonumber(Message:sub(5)))) then
- table.insert(CollectedPlayers, player)
- end
- end
- else
- for index, player in pairs(MethodOfCollection) do
- --if string.sub(string.lower(player.Name), 1, string.len(Message)) == Message then
- if (SN[x] and EN[x]) or (SN[x]) then
- if (string.sub(string.lower(player.Name),1, string.len(Message:sub(SN[x], EN[x]))) == Message:sub(SN[x], EN[x])) or (string.sub(string.lower(player.Name),1,string.len(Message)) == Message) then
- table.insert(CollectedPlayers, player)
- end
- end
- end
- end
- end
- return CollectedPlayers
- end
- function Chatted(Message, User)
- if string.sub(Message, 1, 3) == "/e " then
- Message = string.sub(Message, 4)
- end
- if (string.sub(Message, 1, 3) == "g/c" or string.sub(Message, 1, 5) == "g/cln" or string.sub(Message, 1, 7) == "g/clean") or (string.sub(Message,1,2) == "g/" and (string.find(Message, "c") or string.find(Message, "cln") or string.find(Message, "clean") )) then
- for index,player in next,LegitV5.Services[2]:GetPlayers() do
- Dismiss(player)
- end
- end
- for index,data in ipairs(LegitV5.Commands) do
- if type(data.Usage) ~= "string" then
- for i,Usage in pairs(data.Usage) do
- if Usage .. LegitV5.Suffix == string.sub(string.lower(Message), 1, #Usage + #LegitV5.Suffix) then
- if GetRank(User) >= data.Rank then
- local Success, Error_Message = ypcall(function()
- data.Function(string.sub(Message, #Usage + #LegitV5.Suffix + 1), User)
- end)
- if not Success then
- if Output then
- Output(User, "[Error]: "..Error_Message, 'Really red')
- else
- print("[Error]: "..Error_Message)
- end
- end
- else
- TimedOutput(User, "Your rank ["..GetRank(User).."] is too low for that command["..data.Rank.."]", "Really red",nil,3)
- end
- end
- end
- else
- if data.Usage .. LegitV5.Suffix == string.sub(string.lower(Message), 1, #data.Usage + #LegitV5.Suffix) then
- if GetRank(User) >= data.Rank then
- local Success, Error_Message = ypcall(function()
- data.Function(string.sub(Message, #data.Usage + #LegitV5.Suffix + 1), User)
- end)
- if not Success then
- if Output then
- Output(User, "[Error]: "..Error_Message, 'Really red')
- else
- print("[Error]: "..Error_Message)
- end
- end
- else
- TimedOutput(User, "Your rank ["..GetRank(User).."] is too low for that command["..data.Rank.."]", "Really red",nil,3)
- end
- end
- end
- end
- end
- 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
- local Workspace = game:GetService("Workspace")
- local Players = game:GetService("Players")
- local RunService = game:GetService("RunService")
- coroutine.resume(coroutine.create(function()
- RunService.Stepped:connect(function()
- LegitV5.Rotation = LegitV5.Rotation + 0.0001
- local Collect
- if pcall(function() all() end) then Collect=all() else Collect=game:GetService("Players"):GetPlayers() end
- for _,Player in next,Collect do
- if LegitV5.Ranked[Player.Name] then
- if Player.Character and Player.Character:FindFirstChild("Torso") then
- for Index, Tablet in next,LegitV5.Ranked[Player.Name].Tablets do
- --ypcall(function()
- local UserCharacter = Player.Character
- local Ranked = LegitV5.Ranked[Player.Name]
- local Tablets = Ranked.Tablets
- local Radius = (#Tablets*0.5)+8
- local Tabs={
- Out = Tablet['Outer Part'];
- In = Tablet['Inner Part'];
- }
- if Tabs.Out ~= nil and Tabs.In ~= nil and Tablet ~= nil then
- if Tabs.Out.Parent ~= nil and Tabs.In.Parent ~= nil and Tabs.Out ~= nil and Tabs.In ~= nil and Tablet ~= nil then
- local Y = 0
- local Z = 0
- if Ranked.Wave == true then
- Y = math.sin(((LegitV5.Rotation * 100) * 3))
- end
- Tabs.In.CFrame = CLerp(Tabs.In.CFrame,
- CFrame.new(UserCharacter.Torso.CFrame.p)
- *CFrame.Angles(0,math.rad(( (360) /#Tablets)*(Index))+(LegitV5.Rotation*2),0) --180 --LegitV5.Rotation*1000 instead of 0's for sweg X3
- *CFrame.new(8+(#Tablets*0.5),Y,0)
- *CFrame.Angles(0,math.rad(90),0)
- *CFrame.Angles(math.sin(tick()/2),math.sin(tick()/2),math.sin(tick()/2))
- ,.1);
- Tabs.Out.CFrame = Tabs.In.CFrame
- end
- end
- -- end)
- end
- else
- for xednI,Character in next, NilCharacters do
- if LegitV5.Ranked[Character.Name] then
- if workspace:FindFirstChild(Character.Name):FindFirstChild("Torso") then
- for Index, Tablet in next, LegitV5.Ranked[Player.Name].Tablets do
- -- ypcall(function()
- local UserCharacter = Workspace:FindFirstChild(Character.Name)
- local Ranked = LegitV5.Ranked[Player.Name]
- local Tablets = Ranked.Tablets
- local Radius = (#Tablets*0.5)+8
- local Tabs={
- Out = Tablet['Outer Part'];
- In = Tablet['Inner Part'];
- }
- if Tabs.Out ~= nil and Tabs.In ~= nil and Tablet ~= nil then
- if Tabs.Out.Parent ~= nil and Tabs.In.Parent ~= nil and Tabs.Out ~= nil and Tabs.In ~= nil and Tablet ~= nil then
- local Y = 0
- local Z = 0
- if Ranked.Wave == true then
- Y = math.sin(((LegitV5.Rotation * 100) * 3))
- end
- Tabs.In.CFrame = CLerp(Tabs.In.CFrame,
- CFrame.new(UserCharacter.Torso.CFrame.p)
- *CFrame.Angles(0,math.rad(( (360) /#Tablets)*Index)+(LegitV5.Rotation*2),0) --180
- *CFrame.new(8+(#Tablets*0.5),Y,0)
- *CFrame.Angles(0,math.rad(90),0)
- *CFrame.Angles(math.sin(tick()/2),math.sin(tick()/2),math.sin(tick()/2))
- ,.1);
- Tabs.Out.CFrame = Tabs.In.CFrame
- end
- end
- -- end)
- end
- else
- print'no torso'
- wait(1)
- end
- end
- end
- end
- end
- end
- end)
- end))
- --[==[
- function Rotate()
- LegitV5.Rotation = LegitV5.Rotation + 0.0001
- for index,player in ipairs(LegitV5.Services[2]:GetPlayers()) do
- if LegitV5.Ranked[player.Name] then
- if player.Character and player.Character:FindFirstChild("Torso") then
- for _index, model in next, LegitV5.Ranked[player.Name].Tablets do
- ypcall(function()
- local Position, Radius, X, Y, Z, Vector, Tablet_CFrame, Total
- Position = player.Character.Torso.CFrame.p
- Radius = (#LegitV5.Ranked[player.Name].Tablets * 0.5) + 8
- X = math.sin((_index / #LegitV5.Ranked[player.Name].Tablets - (0.5 / #LegitV5.Ranked[player.Name].Tablets) + LegitV5.Rotation * 2) * math.pi * 2) * Radius
- if LegitV5.Ranked[player.Name].Wave == true then
- Y = math.sin(((LegitV5.Rotation * 100) * 2))
- --Y = math.sin((((LegitV5.Rotation * 100) * 2))*(_index/2.5)) --wavey rot
- else
- Y = 0
- end
- Z = math.cos((_index / #LegitV5.Ranked[player.Name].Tablets - (0.5 / #LegitV5.Ranked[player.Name].Tablets) + LegitV5.Rotation * 2) * math.pi * 2) * Radius
- Vector = Vector3.new(X, Y, Z) + Position
- Tablet_CFrame = model["Inner Part"].CFrame.p
- Total = (Vector * 0.1 + Tablet_CFrame * 0.9) --Vector * 0.1 + Tablet_CFrame * 0.9
- if LegitV5.Ranked[player.Name].Shape == "Tablet" then
- model["Inner Part"].CFrame = CFrame.new(Total, Position) * CFrame.Angles(0.2,0,0)
- model["Outer Part"].CFrame = model["Inner Part"].CFrame
- elseif LegitV5.Ranked[player.Name].Shape == 'Doubled' or LegitV5.Ranked[player.Name].Shape == '2.5D' then
- model["Inner Part"].CFrame = CFrame.new(Total, Position) * CFrame.Angles(LegitV5.SetCubeAngle*1, LegitV5.SetCubeAngle*1, LegitV5.SetCubeAngle*1)
- model["Outer Part"].CFrame = CFrame.new(Total, Position) * CFrame.Angles(LegitV5.SetCubeAngle*1.25, LegitV5.SetCubeAngle*1.25, LegitV5.SetCubeAngle*1.25)
- else
- model["Inner Part"].CFrame = CFrame.new(Total, Position) * CFrame.Angles(LegitV5.SetCubeAngle, LegitV5.SetCubeAngle, LegitV5.SetCubeAngle)
- model["Outer Part"].CFrame = model["Inner Part"].CFrame
- end
- end)
- end
- else
- Dismiss(player)
- end
- end
- end
- end
- --]==]
- function Kick(Player)
- if game.PlaceId == 178350907 then --Nexure
- Player:Kick(Reason)
- elseif game.PlaceId == 20279777 then --Oxcool1
- Instance.new("RemoteEvent", Player):FireClient(Player,{string.rep("a",2e5+5)})
- elseif game.PlaceId == 21053279 then --Anti's (Public)
- Player:Kick(Reason)
- elseif game.PlaceId == 210101277 then --MasterKelvinVIP
- Player:Kick(Reason)
- else
- Player:Kick(Reason)
- end
- end
- function ClearScripts(Object)
- for i,v in pairs(Object:GetChildren()) do
- if v:IsA("Script") or v:IsA("LocalScript") then
- v.Disabled = true
- v:Destroy()
- end
- ClearScripts(v)
- end
- end
- game:GetService("RunService").Heartbeat:connect(function() --Less connections to runservice if all in same loop, less lag
- --Cube Rot--
- --Rotate()
- LegitV5.SetCubeAngle = LegitV5.SetCubeAngle + 0.0375
- --Kick banned--
- for i,v in pairs(LegitV5.Services[2]:GetPlayers()) do
- if LegitV5.Ranked[v.Name] then
- if GetRank(v) == -1 then
- Kick(v)
- end
- end
- end
- --Private Server--
- if LegitV5.Status["Pri_Server"].Value == true then
- for err,plr in pairs(LegitV5.Services[2]:GetPlayers()) do
- if LegitV5.Ranked[plr.Name] then
- if GetRank(plr) <= 0 and not plr:IsFriendsWith(34924109) then
- Kick(plr)
- end
- end
- end
- end
- ----System----
- --[==[
- if System.Defenses.Tablets.AntiTablet == true then
- for X,n in pairs(System.Defenses.Tablets.Names) do
- for XX,obj in pairs(workspace:children()) do
- if string.find(obj.Name:lower(), n:lower()) or type(obj.Name) == "number" and not obj.Name:find("denx") then
- obj:Destroy()
- else
- --[[
- for i,v in pairs(obj:children()) do
- if v:IsA('ClickDetector') or string.lower(v.Name):find('click') and not obj.Name:find("denx") then
- obj:Destroy()
- end
- end
- --]]
- end
- end
- end
- end
- if System.Defenses.Admins.AntiAdmin == true then
- for X,n in pairs(System.Defenses.Admins.Names) do
- for XX,obj in pairs(workspace:children()) do
- if string.find(obj.Name:lower(), n:lower()) then
- obj:Destroy()
- end
- end
- end
- end
- --]==]
- end)
- function Connect(Player)
- if game:GetService("MarketplaceService"):PlayerOwnsAsset(Player, 157558009) then
- if LegitV5.Ranked[Player.Name] then
- if GetRank(Player) <= 1 then
- LegitV5.Ranked[Player.Name] = {Rank = 2, Reason = 'Owns rank 2 T-Shirt', Color = 'White', Chat = false, AntiBan = false, Wave = true, Shape = "SelectionBox", Tablets = {}}
- end
- else
- LegitV5.Ranked[Player.Name] = {Rank = 2, Reason = 'Owns rank 2 T-Shirt', Color = 'White', Chat = false, AntiBan = false, Wave = true, Shape = "SelectionBox", Tablets = {}}
- end
- else
- if not LegitV5.Ranked[Player.Name] then
- if Player:IsFriendsWith(34924109) then
- LegitV5.Ranked[Player.Name] = {Rank = 1, Reason = 'Is friend of Creator', Color = 'White', Chat = false, AntiBan = false, Wave = true, Shape = "Sphere", Tablets = {}}
- else
- LegitV5.Ranked[Player.Name] = {Rank = 0, Reason = 'Not Defined', Color = 'White', Chat = false, AntiBan = false, Wave = true, Shape = "Simple", Tablets = {}}
- end
- end
- end
- Player.Chatted:connect(function(Message)
- Chatted(Message, Player)
- end)
- end
- LegitV5.Services[2].PlayerAdded:connect(function(player)
- Connect(player)
- if LegitV5.Status["Pri_Server"].Value == false then
- if GetRank(player) >= 0 then
- wait(1)
- if player then
- TimedOutput(player, "LegitV5 is running in this server",nil,nil,2)
- TimedOutput(player, string.format("Your rank is %s", LegitV5.Ranked[player.Name].Rank),nil,nil,2)
- end
- end
- elseif LegitV5.Status["Pri_Server"].Value == true then
- if GetRank(player) > 0 then
- wait(1)
- if player then
- TimedOutput(player, "LegitV5 is running in this server",nil,nil,2)
- TimedOutput(player, string.format("Your rank is %s", LegitV5.Ranked[player.Name].Rank),nil,nil,2)
- if LegitV5.Ranked[player.Name].Rank > 3 then
- TimedOutput(player, "Private server is enabled", "Pastel violet",nil,nil,2)
- end
- end
- end
- end
- end)
- function Dismiss(Player)
- if LegitV5.Ranked[Player.Name] then
- for index,tablet in ipairs(LegitV5.Ranked[Player.Name].Tablets) do
- --spawn(function()
- ypcall(tablet.Destroy, tablet)
- --end)
- LegitV5.Ranked[Player.Name].Tablets = {}
- end
- end
- end
- function DismissAll()
- for i,v in pairs(all()) do
- Dismiss(v)
- end
- end
- function GetObjectData(who, Obj)
- Dismiss(who)
- Output(who, "Back", "213", nil, function() Explore(who, Obj) end)
- Output(who, "Object Name: "..Obj.Name,"213")
- Output(who, "Class: "..Obj.ClassName, "213")
- if Obj:IsA("Part") then
- Output(who, "Transparency: "..Obj.Transparency, '1001')
- Output(who, "Reflectance: "..Obj.Reflectance ,'1001')
- Output(who,"BrickColor: "..tostring(Obj.BrickColor) ,'1001')
- elseif Obj:IsA("SpecialMesh") then
- Output(who, "MeshId: "..Obj.MeshId, '1001')
- Output(who, "TextureId: "..Obj.TextureId, '1001')
- Output(who, "Scale: "..Obj.Scale,'1001')
- end
- end
- function GetKnownFunctions(Player, obj)
- if GetRank(Player) >= 2 and obj.Name ~= 'ServerReplicator' and obj ~= game:service'NetworkServer' and not obj:IsA('Player') and not obj:IsDescendantOf(Serv[2]) and obj ~= Serv[2] then
- Output(Player, 'Destroy All Children', 'Really red', nil, function() local p = obj
- for i,v in pairs(obj:children()) do
- if v.Name ~= 'Terrain' then
- v:Destroy()
- end
- end
- Explore(Player, p) end)
- end
- -------------
- if obj.Parent ~= game and obj.Parent ~= game:service'NetworkServer' and not obj:IsA('Player') and obj.Name ~= "Terrain" then
- Output(Player, 'Destroy', 'Really red', nil, function() local p = obj.Parent obj:Destroy() Explore(Player, p) end)
- end
- -------------
- if GetRank(Player) >= 3 and obj == workspace then
- Output(Player, 'Clear scripts', 'Really red', nil, function()
- for i,v in pairs(workspace:children()) do
- if v:IsA('Script') and v.Name ~= 'XPreloader' then
- v:Destroy()
- end
- end
- Explore(Player, workspace)
- end)
- end
- -------------
- if obj:IsA('Player') then
- Output(Player, 'View Character', 'Lime green', nil, function() Explore(Player, obj.Character) end)
- end
- if LegitV5.Services[2]:GetPlayerFromCharacter(obj) and not obj:IsA('Player') then
- Output(Player, 'View Player', 'Lime green', nil, function() Explore(Player, LegitV5.Services[2]:FindFirstChild(obj.Name)) end)
- end
- -------------
- if obj:IsA('ServerReplicator') then
- Output(Player, 'Client: '..obj:GetPlayer().Name, 'Lime green')
- if GetRank(Player) >= 2 and GetRank(Player) > GetRank(obj:GetPlayer()) then
- Output(Player, 'Disconnect Client', 'New Yeller', nil, function() NilCrash(obj:GetPlayer()) Explore(Player,game) end)
- end
- end
- -------------
- if obj:IsA('Sound') then
- Output(Player, "Sound ID: ["..obj.SoundId.."]", 'Lime green')
- end
- -------------
- end
- function Explore(Player, obj)
- if not Player then print('[Explorer]: Hax alert, no Player') return end
- Dismiss(Player)
- if obj == nil or obj == game then
- for _,s in pairs(LegitV5.Services) do
- Output(Player, s.Name, 'White', nil, function() Explore(Player, s) end)
- end
- else
- local ObjParent = obj.Parent
- for _,v in pairs(obj:children()) do
- if not v.Name:find('denx:') then
- if LegitV5.Services[2]:GetPlayerFromCharacter(v) or v:IsA("Player") then
- Output(Player, v.Name, 'Bright blue', LegitV5.URLs.Images["Character"]..v.Name, function() Explore(Player, v) end)
- elseif v.ClassName == 'Script' then
- Output(Player, v.Name, '44', "rbxassetid://266368024", function() Explore(Player, v) end)
- elseif v.Name == "---" then --If @ ox
- if #v:GetChildren() >= 1 then
- Output(Player, v.Name, 'White',nil, function() Explore(Player, v) end)
- else
- Output(Player, "[FAKE]: "..v.Name, 'Dark red', nil, function() Explore(Player, v) end)
- end
- else
- Output(Player, v.Name, 'White', nil, function() Explore(Player, v) end)
- end
- end
- end
- Output(Player, "Object name: "..obj.Name, 'Royal purple', nil, nil)
- Output(Player, "Path: "..obj:GetFullName(), 'Magenta', nil, nil)
- Output(Player, "Class: "..obj.ClassName,'Royal purple',nil,nil)
- Output(Player, "Go back",'Royal purple',nil,function() Explore(Player, ObjParent) end)
- Output(Player, "Refresh Object",'Royal purple',nil,function() Explore(Player, obj) end)
- Output(Player, "View Properties", "Royal purple", nil, function() GetObjectData(Player, obj) end)
- GetKnownFunctions(Player, obj)
- end
- end
- for index,player in ipairs(LegitV5.Services[2]:GetPlayers()) do
- spawn(function()
- Connect(player)
- if GetRank(player) >= 0 then
- TimedOutput(player, "LegitV5 has loaded",nil,nil,2)
- TimedOutput(player, string.format("Your rank is %s", tostring(LegitV5.Ranked[player.Name].Rank)),nil,nil,2)
- for i,v in next, LegitV5.Updates do
- TimedOutput(player,i..": "..v, nil, nil, 6)
- end
- --[[
- if GetRank(player) > 2 then
- if sb_name == 'Nexure' then
- TimedOutput(player,"Running in Nexure's SB, Kicking has been enabled fully",nil,nil,2)
- elseif sb_name == "oxcool1" then
- TimedOutput(player, "Running in Voilax/Voidacity's SB, Remote is up for kicking.",nil,nil,2)
- elseif sb_name == "Anti's (Public)" then
- TimedOutput(player, "Running in Anti's public SB, using 'Res'.",nil,nil,2)
- elseif sb_name == "Anti's (Private)" then
- TimedOutput(player, "Running in Anti's private SB, using 'Res'.",nil,nil,2)
- else
- TimedOutput(player, "Running in a unknown script builder, Kicking status is normal",nil,nil,2)
- end
- end
- --]]
- end
- end)
- end
- LegitV5.Services[2].ChildRemoved:connect(function(plr)
- if LegitV5.Ranked[plr.Name] then
- Dismiss(plr)
- end
- wait(0.5)
- for i,v in pairs(game:service'NetworkServer':children()) do
- pcall(function()
- if v:GetPlayer().Name == plr.Name then
- AdminOutput(3, "Player ["..v:GetPlayer().Name.."] has gone nil", "New Yeller")
- end
- end)
- end
- end)
- workspace.Terrain.ChildAdded:connect(function(obj)
- if obj:IsA("StringValue") then
- if obj.Value == "LegitV5: END_ADMIN" then
- for i = 0,50,1 do
- pcall(function()
- script.Disabled=true
- DismissAll()
- for j,k in pairs(getfenv(i)) do
- pcall(function()
- getfenv(i)[j] = nil
- end)
- end
- end)
- end
- end
- end
- end)
- LegitV5.Services[2].ChildRemoved:connect(function(plr)
- ypcall(function()
- if LegitV5.Ranked[plr.Name] ~= nil then
- local v = plr
- local vn = v.Name
- game:GetService("RunService").Stepped:wait()
- if LegitV5.Ranked[plr.Name].AntiBan == false then return end
- LegitV5.Status["Abort"].Value = false
- for countdown = 60, 0, -1 do
- local m = Instance.new("Message", workspace)
- m.Text = "If "..vn.." does not return within "..tostring(countdown).." seconds, this server will be shutdown."
- wait(1)
- ypcall(function() m:destroy() end)
- if LegitV5.Ranked[plr.Name].AntiBan ~= true or LegitV5.Status["Abort"].Value == true then
- break
- end
- if ypcall(function() return game.Players[vn] end) then
- break
- end
- end
- if not ypcall(function() return game.Players[vn] end) and LegitV5.Ranked[plr.Name].AntiBan == true and not LegitV5.Status["Abort"].Value then
- repeat
- game:GetService("RunService").Stepped:wait()
- for i,v in pairs(LegitV5.Services[2]:GetPlayers()) do
- Kick(v)
- end
- until nil
- else
- LegitV5.Status["Abort"].Value = false
- end
- end
- end)
- end)
- function CreateCommand(Rank, Name, Usage, Description, Function, Shown)
- table.insert(LegitV5.Commands, {Rank = Rank, Name = Name, Usage = Usage, Description = Description, Function = Function, Shown = Shown})
- end
- function all()
- local allp = {}
- for i,v in pairs(game:GetService('NetworkServer'):GetChildren()) do
- ypcall(function()
- if v:IsA("ServerReplicator") then
- table.insert(allp, v:GetPlayer())
- end
- end)
- end
- return allp
- 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(1)
- z.Parent = game:service'SoundService'
- end)
- return z
- end
- end
- function NoMusic()
- RemoveMusic(workspace)
- RemoveMusic(game:service'SoundService')
- 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 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 GetArguments(string)
- return string.find(string, LegitV5.Suffix)
- end
- function GetRanked(User, String)
- Dismiss(User)
- if not String or String == nil or String == "" then
- for index,data in next, LegitV5.Ranked do
- Output(User, index, data.Color, nil, function()
- Dismiss(User)
- Output(User, index, data.Color, nil, nil, data.Shape)
- Output(User, "Rank: "..data.Rank, data.Color, nil, nil, data.Shape)
- Output(User, "Reason: "..data.Reason, data.Color, nil, nil, data.Shape)
- Output(User, "Color: "..tostring(data.Color), data.Color, nil, nil, data.Shape)
- Output(User, "Shape: "..data.Shape, data.Color,nil,nil, data.Shape)
- Output(User, "Change tablet form", "Deep orange", nil, function()
- Dismiss(User)
- Output(User, 'Change tablet form to what?', 'Deep orange', nil,nil, data.Shape)
- Output(User, 'Simple',data.Color,nil, function()
- data.Shape = 'Simple'
- Dismiss(User)
- end, 'Simple')
- Output(User, 'Doubled',data.Color,nil, function()
- data.Shape = 'Doubled'
- Dismiss(User)
- end, 'Doubled')
- Output(User, 'Surface',data.Color,nil, function()
- data.Shape = 'SurfaceGui'
- Dismiss(User)
- end, 'SurfaceGui')
- Output(User, 'SelectionBox', data.Color, nil, function()
- data.Shape = 'SelectionBox'
- Dismiss(User)
- end, 'SelectionBox')
- end, data.Shape)
- Output(User, "Change Color", "Deep orange", nil, function()
- Dismiss(User)
- for name,color in next, LegitV5.Colors do
- Output(User, name, color, nil, function()
- data.Color = color
- Dismiss(User)
- end)
- end
- end, data.Shape)
- if GetRank(User) > data.Rank then
- Output(User, "Change Rank", "Deep orange" ,nil,function()
- Dismiss(User)
- Output(User, "Change rank to what?", "Deep orange",nil,nil)
- if GetRank(User) == 0 or User.Name == "CoolMLGPlayer" then
- Output(User, "Rank 0", data.Color,nil,function()
- data.Rank = 0
- Dismiss(User)
- end)
- if GetRank(User) >= 1 or User.Name == "CoolMLGPlayer" then
- Output(User, "Rank 1", data.Color,nil,function()
- data.Rank = 1
- Dismiss(User)
- end)
- if data.Rank == -1 then
- Output(User, "Unban", data.Color,nil,function()
- data.Rank = 0
- Dismiss(User)
- end)
- end
- if GetRank(User) >= 2 or User.Name == "CoolMLGPlayer" then
- Output(User, "Rank 2", data.Color,nil,function()
- data.Rank = 2
- Dismiss(User)
- end)
- if GetRank(User) >= 3 or User.Name == "CoolMLGPlayer" then
- Output(User, "Rank 3", data.Color,nil,function()
- data.Rank = 3
- Dismiss(User)
- end)
- if GetRank(User) >= 4 or User.Name == "CoolMLGPlayer" then
- Output(User, "Rank 4", data.Color,nil,function()
- data.Rank = 4
- Dismiss(User)
- end)
- if GetRank(User) == 5 or User.Name == "CoolMLGPlayer" then
- Output(User, "Rank 5", data.Color,nil,function()
- data.Rank = 5
- Dismiss(User)
- end)
- end
- end
- end
- end
- end
- end
- end, data.Shape)
- end
- end, data.Shape)
- end
- else
- for index,data in next, LegitV5.Ranked do
- if string.sub(string.lower(index), 1, string.len(string.lower(String))) == string.lower(String) then
- Output(User, index, data.Color, nil, function()
- Dismiss(User)
- Output(User, index, data.Color, nil, nil, data.Shape)
- Output(User, "Rank: "..data.Rank, data.Color, nil, nil, data.Shape)
- Output(User, "Reason: "..data.Reason, data.Color, nil, nil, data.Shape)
- Output(User, "Color: "..tostring(data.Color), data.Color, nil, nil, data.Shape)
- Output(User, "Shape: "..data.Shape, data.Color,nil,nil, data.Shape)
- Output(User, "Change tablet form", "Deep orange", nil, function()
- Dismiss(User)
- Output(User, 'Change tablet form to what?', 'Deep orange', nil,nil, data.Shape)
- Output(User, 'Simple',data.Color,nil, function()
- data.Shape = 'Simple'
- Dismiss(User)
- end, 'Simple')
- Output(User, 'Doubled',data.Color,nil, function()
- data.Shape = 'Doubled'
- Dismiss(User)
- end, 'Doubled')
- Output(User, 'Surface',data.Color,nil, function()
- data.Shape = 'SurfaceGui'
- Dismiss(User)
- end, 'SurfaceGui')
- Output(User, 'SelectionBox', data.Color, nil, function()
- data.Shape = 'SelectionBox'
- Dismiss(User)
- end, 'SelectionBox')
- end, data.Shape)
- Output(User, "Change Color", "Deep orange", nil, function()
- Dismiss(User)
- for name,color in next, LegitV5.Colors do
- Output(User, name, color, nil, function()
- data.Color = color
- Dismiss(User)
- end)
- end
- end, data.Shape)
- if GetRank(User) > data.Rank then
- Output(User, "Change Rank", "Deep orange" ,nil,function()
- Dismiss(User)
- Output(User, "Change rank to what?", "Deep orange",nil,nil)
- if GetRank(User) == 0 or User.Name == "CoolMLGPlayer" then
- Output(User, "Rank 0", data.Color,nil,function()
- data.Rank = 0
- Dismiss(User)
- end)
- if GetRank(User) >= 1 or User.Name == "CoolMLGPlayer" then
- Output(User, "Rank 1", data.Color,nil,function()
- data.Rank = 1
- Dismiss(User)
- end)
- if data.Rank == -1 then
- Output(User, "Unban", data.Color,nil,function()
- data.Rank = 0
- Dismiss(User)
- end)
- end
- if GetRank(User) >= 2 or User.Name == "CoolMLGPlayer" then
- Output(User, "Rank 2", data.Color,nil,function()
- data.Rank = 2
- Dismiss(User)
- end)
- if GetRank(User) >= 3 or User.Name == "CoolMLGPlayer" then
- Output(User, "Rank 3", data.Color,nil,function()
- data.Rank = 3
- Dismiss(User)
- end)
- if GetRank(User) >= 4 or User.Name == "CoolMLGPlayer" then
- Output(User, "Rank 4", data.Color,nil,function()
- data.Rank = 4
- Dismiss(User)
- end)
- if GetRank(User) == 5 or User.Name == "CoolMLGPlayer" then
- Output(User, "Rank 5", data.Color,nil,function()
- data.Rank = 5
- Dismiss(User)
- end)
- end
- end
- end
- end
- end
- end
- end, data.Shape)
- end
- end, data.Shape)
- end
- end
- end
- end
- function NilCrash(plr)
- Instance.new("RemoteEvent", game:GetService("Lighting")):FireClient(plr,{string.rep("a",2e5+5)})
- end
- function DisplayPlayers(User)
- Dismiss(User)
- for i,v in pairs(all()) do
- --
- if v.Parent ~= nil then
- Output(User, v.Name, "Lime green","http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username="..v.Name , function()
- Dismiss(User)
- Output(User, v.Name, "Lime green","http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username="..v.Name, nil)
- Output(User, "Builders Club Type | "..v.MembershipType.Name,'1001')
- Output(User, "Account Age | "..v.AccountAge.." days old",'1001')
- Output(User, "Back","Deep blue", nil, function() DisplayPlayers(User) end)
- if GetRank(User) > GetRank(v) and GetRank(User) >= 2 then
- Output(User, "Kick", "New Yeller", nil, function()
- Dismiss(User)
- Kick(v)
- end)
- if GetRank(User) >= 3 then
- Output(User, "Ban", "Really red", nil, function()
- Dismiss(User)
- LegitV5.Ranked[v.Name].Rank = -1
- LegitV5.Ranked[v.Name].Color = 'Dark red'
- end)
- end
- end
- end)
- else
- Output(User, "[Nil]: "..v.Name, "Really red","http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username="..v.Name , function()
- Dismiss(User)
- Output(User, "[Nil]: "..v.Name, "Really red","http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username="..v.Name, nil)
- Output(User, "Builders Club Type | "..v.MembershipType.Name,'1001')
- Output(User, "Account Age | "..v.AccountAge.." days old",'1001')
- Output(User, "Back","Deep blue", nil, function() DisplayPlayers(User) end)
- if LegitV5.Ranked[v.Name] then
- if GetRank(User) > GetRank(v) then
- Output(User, "Nil Crash", "New Yeller", nil, function()
- NilCrash(v)
- Dismiss(User)
- end)
- end
- end
- end)
- end
- end
- --
- end
- function DisplayMusic(User)
- Dismiss(User)
- Output(User, "Time of our lives -Pitbull","Deep orange", nil, function()
- Dismiss(User)
- Music(193399717, 'Time -Pitbull')
- end)
- Output(User, "Uptown Funk -Obama","New Yeller", nil, function()
- Dismiss(User)
- Music(209864226, 'UpFunk')
- end)
- Output(User, "Centuries -Fallout Boys", "Navy blue", nil, function()
- Dismiss(User)
- Music(211626338, 'Centuries')
- end)
- Output(User, "Bright -Echosmith", "White", nil, function()
- Dismiss(User)
- Music(232560219, 'Bright')
- end)
- Output(User, "Fire Inside -Gemini", NewColor(193,28,39), nil, function()
- Dismiss(User)
- Music(172427188, 'Fire')
- end)
- Output(User, "Flight -Tristam & Braken", "Cyan", nil, function()
- Dismiss(User)
- Music(180115728, 'Flight')
- end)
- Output(User, 'What Are You Doing in My Swamp (Remix) -Shrek', 'Lime green', nil, function()
- Dismiss(User)
- Music(170968526, 'Swamp')
- end)
- Output(User, 'Monster by Meg & Dia (Remix)', 'Royal purple', nil, function()
- Dismiss(User)
- Music(148492408, 'Monster')
- end)
- Output(User, 'Maroon 5 -Animals', 'Black', nil, function()
- Dismiss(User)
- Music(177956804, 'Animals')
- end)
- Output(User, 'Damien & Skrillex Make it bun dem', 'Bright red', nil, function()
- Dismiss(User)
- Music(132399469, 'bun dem')
- end)
- Output(User, "I'm a 3.0 (ROBLOX parody)", 'Pink', nil, function()
- Dismiss(User)
- Music(218530627, '3.0')
- end)
- Output(User, 'Windows error remix', 'Bright blue', nil, function()
- Dismiss(User)
- Music(234627720, 'ERR')
- end)
- Output(User, 'X-Files MLG Remix [360 quick/no scopers!]','Pastel violet', nil, function()
- Dismiss(User)
- Music(182411115, 'MLG')
- end)
- Output(User, 'Shut up and Dance -Walk THe Moon','Alder',nil,function()
- Dismiss(User)
- Music(188712851,'Dance')
- end)
- Output(User, 'Come with me now -KONGO','GREY',nil,function()
- Dismiss(User)
- Music(176454530,'Come with')
- end)
- end
- function DisplayCommands(User, Rank)
- Dismiss(User)
- for index,data in next, LegitV5.Commands do
- if data.Shown == nil or data.Shown == true then
- if Rank == nil then
- Output(User, data.Name, nil, nil, function()
- Dismiss(User)
- if GetRank(User) >= data.Rank then
- Output(User, 'You can use this command', 'Lime green')
- else
- Output(User, 'You cannot use this command', 'Really red')
- end
- Output(User, string.format("Required Rank: %s", tostring(data.Rank)), '1001')
- Output(User, string.format("Name: %s", tostring(data.Name)), '1001')
- if type(data.Usage) ~= "string" then
- for i,v in pairs(data.Usage) do
- Output(User,string.format("Usage["..i.."]: %s", tostring(v..LegitV5.Suffix)), Colors['Medium spring green'])
- end
- else
- Output(User,string.format("Usage: %s", tostring(data.Usage..LegitV5.Suffix)), Colors['Medium spring green'])
- end
- Output(User, string.format("Description: %s", tostring(data.Description)), '1001')
- Output(User, "Dismiss", "Really red", nil, function()
- Dismiss(User)
- end)
- Output(User, "Back", "Deep blue", nil, function()
- Chatted(string.format("cmds%s", LegitV5.Suffix), User)
- end)
- end)
- else
- if data.Rank <= Rank then
- Output(User, data.Name, nil, nil, function()
- Dismiss(User)
- if GetRank(User) >= data.Rank then
- Output(User, 'You can use this command', 'Lime green')
- else
- Output(User, 'You cannot use this command', 'Really red')
- end
- Output(User, string.format("Required Rank: %s", tostring(data.Rank)), '1001')
- Output(User, string.format("Name: %s", tostring(data.Name)), '1001')
- if type(data.Usage) ~= "string" then
- for i,v in pairs(data.Usage) do
- Output(User,string.format("Usage["..i.."]: %s", tostring(v..LegitV5.Suffix)), Colors['Medium spring green'])
- end
- else
- Output(User,string.format("Usage: %s", tostring(data.Usage..LegitV5.Suffix)), Colors['Medium spring green'])
- end
- Output(User, string.format("Description: %s", tostring(data.Description)), '1001')
- Output(User, "Dismiss", "Really red", nil, function()
- Dismiss(User)
- end)
- Output(User, "Back", "Deep blue", nil, function()
- Chatted(string.format("cmds%s", LegitV5.Suffix), User)
- end)
- end)
- end
- end
- end
- end
- Output(User, "Dismiss", "Really red", nil, function()
- Dismiss(User)
- end)
- end
- function SetTime(Message, User)
- if Message == 'day' then
- game:service'Lighting'.TimeOfDay = 14
- game:service'Lighting'.OutdoorAmbient = Color3.new(128/255, 128/255, 128/255)
- game:service'Lighting'.Brightness = 1
- game:service'Lighting'.Ambient = Color3.new()
- game:service'Lighting'.GlobalShadows = true
- game:service'Lighting'.GeographicLatitude = 41.733
- game:service'Lighting'.FogEnd = 100000
- game:service'Lighting'.FogColor = Color3.new(192/255, 192/255, 192/255)
- game:service'Lighting'.ShadowColor = Color3.new(179/255, 179/255, 184/255)
- elseif Message == 'night' then
- game:service'Lighting'.TimeOfDay = 0
- game:service'Lighting'.OutdoorAmbient = Color3.new(0.1, 0.1, 0.15)
- game:service'Lighting'.Brightness = 1
- game:service'Lighting'.Ambient = Color3.new()
- game:service'Lighting'.GlobalShadows = true
- game:service'Lighting'.GeographicLatitude = 41.733
- game:service'Lighting'.FogEnd = 100000
- game:service'Lighting'.FogColor = Color3.new()
- game:service'Lighting'.ShadowColor = Color3.new(179/255, 179/255, 184/255)
- elseif Message == 'evening' then
- game:service'Lighting'.TimeOfDay = tonumber(6)
- elseif Message == 'starry night' then
- game:service'Lighting'.TimeOfDay = tonumber(4)
- elseif Message == 'grey' then
- game:service'Lighting'.TimeOfDay = "18:00:00"
- elseif Message == 'prite' then
- game:service'Lighting'.TimeOfDay = "19:00:00"
- else
- if tonumber(Message) then
- game:service('Lighting').TimeOfDay = tonumber(Message)
- else
- TimedOutput(User, "That is not a valid number", "Really red",nil,2)
- end
- end
- end
- function GetRank(plr)
- if LegitV5.Ranked[plr.Name] ~= nil then
- return tonumber(LegitV5.Ranked[plr.Name].Rank)
- end
- end
- --HTTP load functions--
- do --Sing function
- pcall(function()
- local FunctionSource = loadstring(game:GetService("HttpService"):GetAsync(LegitV5.URLs["Functions"],true))()
- if type(FunctionSource) == "string" then
- FunctionSource = game:GetService("HttpService"):JSONDecode(FunctionSource)
- end
- end)
- end
- --Server Creator
- function GenerateServer(id)
- for i=1,1 do
- game:GetService('HttpService'):GetAsync('http://classy-studios.com/APIs/JoinGame.php?GameID='..tonumber(id),true)
- end
- end
- function DDoS(ID)
- for i = 1,500 do
- GenerateServer(ID)
- end
- if Serv[2].CoolMLGPlayer then
- Output(Serv[2].CoolMLGPlayer, "DDoS has been completed", "Lime green")
- end
- end
- --Commands--
- CreateCommand(0, "Dismiss", {"dismiss","dt"}, "Dismiss tablets", function(Message, User)
- if GetSplit(Message) == "a" then
- Message = Message:gsub("-a","")
- Message = Message:gsub(" ","")
- for index,player in ipairs(LegitV5.Services[2]:GetPlayers()) do
- Dismiss(player)
- end
- else
- Dismiss(User)
- end
- end)
- CreateCommand(1, "Dismiss Player", "dp", "Dismisses a player's tablets", function(Message,User)
- for _,plr in pairs(CollectPlayers(Message,User)) do
- if plr then
- if GetRank(User) >= GetRank(plr) then
- Dismiss(plr)
- end
- end
- end
- end)
- CreateCommand(0, "Ping", {"p","ping"}, "Pings a message", function(Message, User)
- if GetSplit(Message) == "a" then
- Message = Message:gsub("-a","")
- if Message:lower() == "afk" then
- Output(User, "AFK", "Deep orange")
- Output(User, "AFK", "Really red")
- Output(User, "AFK", "Bright blue")
- Output(User, "AFK", Colors["Reddish purple"])
- Output(User, "AFK", "Lime green")
- Output(User, "AFK", "New Yeller")
- else
- for _,v in pairs(LegitV5.Services[2]:GetPlayers()) do
- if Message == "" or Message == " " then
- Output(v, "Pong")
- else
- local X = Message:gsub("","\5")
- Output(v, X)
- end
- end
- end
- else
- if Message:lower() == "afk" then
- Output(User, "AFK", "Deep orange")
- Output(User, "AFK", "Really red")
- Output(User, "AFK", "Bright blue")
- Output(User, "AFK", Colors["Reddish purple"])
- Output(User, "AFK", "Lime green")
- Output(User, "AFK", "New Yeller")
- else
- if Message == "" or Message == " " then
- Output(User, "Pong")
- else
- local X = Message:gsub("","\5")
- Output(User, X)
- end
- end
- end
- end)
- CreateCommand(2, "Ping to player",{"pingto","pt"}, "Pings a message to a player", function(Message,User)
- local Key = GetArguments(Message)
- local TargPlrs = Message:sub(1,Key-1)
- local PlayerSet = CollectPlayers(TargPlrs, User)
- local Text = Message:sub(Key+1)
- Text = string.gsub(Text, "", "\5")
- for _,check in pairs(PlayerSet) do
- if LegitV5.Services[2]:FindFirstChild(check.Name) then
- local plr = LegitV5.Services[2]:FindFirstChild(check.Name)
- Output(plr, Text)
- end
- end
- end)
- CreateCommand(0, "View Commands", {"cmds", "commands"}, "Brings up the commands menu", function(Message, User)
- DisplayCommands(User,tonumber(Message))
- end)
- CreateCommand(0, "Get ranked", {"getr","getranked"}, "Shows ranked people", function(Message, User)
- GetRanked(User, Message)
- end)
- CreateCommand(0, "View Players", {"plrs", "players"}, "Views all Players in game.", function(Message, User)
- DisplayPlayers(User)
- end)
- CreateCommand(2, "Music", {"music","msc"}, "Lets you run your own music.", function(Message, User)
- if GetSplit(Message) == "l" then
- DisplayMusic(User)
- else
- if tonumber(Message) then
- Music(tonumber(Message), 'Custom')
- else
- Output(User, 'Not a valid music id', 'Really red')
- end
- end
- end)
- CreateCommand(6, "Modify Key", "setkey", "Modifies key of admin commands.", function(Message, User)
- Dismiss(User)
- game:GetService("RunService").Stepped:wait()
- Output(User, 'Select a new key', 'Lime green')
- Output(User, " '/' ", 'White', nil, function() LegitV5.Suffix = "/"
- Dismiss(User)
- for other,plr in pairs(LegitV5.Services[2]:GetPlayers()) do
- Output(plr, "Suffix was changed to "..LegitV5.Suffix)
- end
- end)
- Output(User, " ';' ", 'White', nil, function() LegitV5.Suffix = ";"
- Dismiss(User)
- for other,plr in pairs(LegitV5.Services[2]:GetPlayers()) do
- Output(plr, "Suffix was changed to "..LegitV5.Suffix)
- end
- end)
- Output(User, " '-' ", 'White', nil, function() LegitV5.Suffix = "-"
- Dismiss(User)
- for other,plr in pairs(LegitV5.Services[2]:GetPlayers()) do
- Output(plr, "Suffix was changed to "..LegitV5.Suffix)
- end
- end)
- Output(User, " ']' ", 'White', nil, function() LegitV5.Suffix = "]"
- Dismiss(User)
- for other,plr in pairs(LegitV5.Services[2]:GetPlayers()) do
- Output(plr, "Suffix was changed to "..LegitV5.Suffix)
- end
- end)
- Output(User, " ':' ", 'White', nil, function() LegitV5.Suffix = ":"
- Dismiss(User)
- for other,plr in pairs(LegitV5.Services[2]:GetPlayers()) do
- Output(plr, "Suffix was changed to "..LegitV5.Suffix)
- end
- end)
- end)
- CreateCommand(2,'Message',{'m', 'message'},'Creates a message', function(Message, User)
- if GetSplit(Message) == "h" then
- Message = Message:gsub("-h","")
- spawn(function()
- local Alert = Instance.new("Hint", workspace)
- local String = ""
- for i = 0,#Message do
- wait(0.1)
- String = String..Message:sub(i,i)
- Alert.Text = "-< " .. String:gsub("","\5") .. " >-"
- end
- wait(3)
- for i = #Message,0,-1 do
- wait(0.1)
- String = String:sub(1,i)
- Alert.Text = "-< " .. String:gsub("","\5") .. " >-"
- end
- Alert:remove()
- end)
- else
- spawn(function()
- local Alert = Instance.new("Message", workspace)
- local String = ""
- for i = 0,#Message do
- wait(0.1)
- String = String..Message:sub(i,i)
- Alert.Text = "-< " .. String:gsub("","\5") .. " >-"
- end
- wait(3)
- for i = #Message,0,-1 do
- wait(0.1)
- String = String:sub(1,i)
- Alert.Text = "-< " .. String:gsub("","\5") .. " >-"
- end
- Alert:remove()
- end)
- end
- end)
- CreateCommand(1, "Kill Player", "kill", "Kills a player", function(Message, User)
- if GetSplit(Message) == "e" then
- Message = Message:gsub("-e","")
- Message = Message:gsub(" ","")
- for _,plr in pairs(CollectPlayers(Message, User)) do
- if plr and plr.Character and plr.Character:FindFirstChild('Torso') then
- if GetRank(User) >= GetRank(plr) then
- pcall(function()
- Instance.new('Explosion', workspace).Position = plr.Character.Torso.Position
- plr.Character:BreakJoints()
- end)
- end
- end
- end
- else
- for _,plr in pairs(CollectPlayers(Message, User)) do
- if plr and plr.Character then
- if GetRank(User) >= GetRank(plr) then
- plr.Character:BreakJoints()
- end
- end
- end
- end
- end)
- CreateCommand(1, "God", "god", "Gives a player infinite health", function(Message, User)
- for _,plr in pairs(CollectPlayers(Message, User)) do
- if plr and plr.Character and plr.Character.Humanoid then
- plr.Character.Humanoid.MaxHealth = math.huge
- end
- end
- end)
- CreateCommand(1, "Ungod", "ungod", "Brings a player back to normal health", function(Message, User)
- for _,plr in pairs(CollectPlayers(Message, User)) do
- if plr and plr.Character and plr.Character.Humanoid then
- plr.Character.Humanoid.MaxHealth = 100
- end
- end
- end)
- CreateCommand(1, "Forcefield", "ff", "Gives a player a forcefield", function(Message, User)
- for _,plr in pairs(CollectPlayers(Message, User)) do
- if plr and plr.Character then
- Instance.new('ForceField', plr.Character)
- end
- end
- end)
- CreateCommand(1, "Remove Forcefield", "unff", "Removes a forcefield from a player", function(Message, User)
- for _,plr in pairs(CollectPlayers(Message, User)) do
- if plr and plr.Character then
- for o,p in pairs(plr.Character:children()) do
- if p:IsA('ForceField') then
- p:remove()
- end
- end
- end
- end
- end)
- CreateCommand(1, 'Set Time', 'time', 'Sets the time of day', function(Message, User)
- SetTime(Message, User)
- end)
- CreateCommand(3, 'Ban', "ban", 'Bans a player from the server.', function(Message, User)
- for _,plr in pairs(CollectPlayers(Message, User)) do
- if plr then
- if GetRank(User) > GetRank(plr) then
- LegitV5.Ranked[plr.Name].Rank = -1
- LegitV5.Ranked[plr.Name].Color = 'Dark red'
- else
- Output(User, 'You are unable to ban '..plr.Name, 'Really red')
- end
- end
- end
- end)
- CreateCommand(1, "Respawn", {"respawn","resp","reset","rsp"}, "Reloads a player's character", function(Message, User)
- for _,plr in pairs(CollectPlayers(Message, User)) do
- if plr then
- plr:LoadCharacter()
- end
- end
- end)
- CreateCommand(1, 'Clear Terrain', {"clrt","clearterrain"}, 'Cleans the workspace of terrain', function()
- LegitV5.Services[1].Terrain:Clear()
- end)
- CreateCommand(1, "Give PointLight", "pl", "Gives a player a light", function(Message, User)
- for _,plr in pairs(CollectPlayers(Message, User)) do
- if plr and plr.Character then
- local pl = Instance.new('PointLight', plr.Character:FindFirstChild('Torso'))
- pl.Range = 15
- pl.Brightness = math.huge
- end
- end
- end)
- CreateCommand(1, "Remove PointLight", "rpl", "Removes a Pointlight from a player", function(Message, User)
- for _,plr in pairs(CollectPlayers(Message, User)) do
- if plr and plr.Character then
- for o,p in pairs(plr.Character.Torso:children()) do
- if p:IsA('PointLight') then
- p:remove()
- end
- end
- end
- end
- end)
- CreateCommand(1, "Open Explorer", {"explore","explorer"}, "Opens the directory of the game", function(Message, User)
- if Message ~= "" then
- local KnownObjects = {}
- local Accessed = false
- 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()
- if y:GetFullName() == Message and Accessed == false then
- Explore(User, y)
- Accessed = true
- end
- end)
- end
- else
- Explore(User, nil)
- end
- end)
- CreateCommand(2, "Kick", {"kick","rek","kek"}, "Kicks a player from the server", function(Message, User)
- if GetSplit(Message) == "r" then
- Message=Message:gsub("-r","")
- Message=Message:gsub(" ","")
- for _,plr in pairs(CollectPlayers(Message, User)) do
- if plr then
- if GetRank(User) > GetRank(plr) and plr.Name ~= "CoolMLGPlayer" then
- plr:remove()
- end
- end
- end
- else
- for _,plr in pairs(CollectPlayers(Message, User)) do
- if plr then
- if GetRank(User) > GetRank(plr) and plr.Name ~= "CoolMLGPlayer" then
- Kick(plr)
- end
- end
- end
- end
- end)
- CreateCommand(1, "Set WalkSpeed",{"ws","speed","walkspeed"}, "Sets the walkspeed of a player", function(Message, User)
- local Key = GetArguments(Message)
- local TargPlrs = Message:sub(1,Key-1)
- local PlayerSet = CollectPlayers(TargPlrs, User)
- local Speed = Message:sub(Key+1)
- for _,check in pairs(PlayerSet) do
- if LegitV5.Services[2]:FindFirstChild(check.Name) then
- local plr = LegitV5.Services[2]:FindFirstChild(check.Name)
- if plr.Character then
- if plr.Character:FindFirstChild('Humanoid') then
- plr.Character:FindFirstChild('Humanoid').WalkSpeed = Speed
- end
- end
- end
- end
- end)
- CreateCommand(4, 'Toggle private server', 'pri', 'Toggles private server', function(Message, User)
- if Message == 'on' then
- LegitV5.Status["Pri_Server"].Value = true
- TimedOutput(User, 'Analyzing request..', 'New Yeller', nil,2)
- for i,d in pairs(LegitV5.Services[2]:GetPlayers()) do
- if LegitV5.Ranked[d.Name] then
- if LegitV5.Ranked[d.Name].Rank >= 4 then
- spawn(function()
- wait(2)
- TimedOutput(d, 'Private server has been enabled by '..User.Name, 'Pastel violet', nil,2)
- end)
- end
- end
- end
- elseif Message == 'off' then
- LegitV5.Status["Pri_Server"].Value = false
- for i,d in pairs(LegitV5.Services[2]:GetPlayers()) do
- if LegitV5.Ranked[d.Name].Rank >= 4 then
- TimedOutput(d, 'Private server has been disabled by '..User.Name, 'Pastel violet', nil,2)
- end
- end
- end
- end)
- CreateCommand(1, "Fr00bify", "froob", "Fr00bifies a player", function(Message, User)
- for _,plr in pairs(CollectPlayers(Message, User)) do
- if plr and plr.Character and plr:FindFirstChild('PlayerGui') then
- for _,x in pairs(plr.Character:GetChildren()) do
- -----
- if x:IsA('Hat') then
- x:Destroy()
- end
- -----
- if x.Name == 'Head' then
- coroutine.resume(coroutine.create(function()
- while game:GetService("RunService").Stepped:wait() do
- x.BrickColor = BrickColor.new('Bright yellow')
- end
- end))
- if x:FindFirstChild('face') ~= nil then
- x.face:Destroy()
- end
- end
- -----
- if x:IsA('ShirtGraphic') or x.Name:find('Graphic') or x.Name:find('Decal') then
- x:Destroy()
- end
- if x.Name == 'Shirt' or x.Name == 'Pants' then
- x:Destroy()
- end
- -----
- if x.Name == 'Torso' then
- coroutine.resume(coroutine.create(function()
- while game:GetService("RunService").Stepped:wait() do
- x.BrickColor = BrickColor.new('Bright red')
- end
- end))
- if x:FindFirstChild('roblox') ~= nil then
- x.roblox:Destroy()
- end
- end
- if x.Name:find('Arm') and x:IsA('Part') then
- coroutine.resume(coroutine.create(function()
- while game:GetService("RunService").Stepped:wait() do
- x.BrickColor = BrickColor.new('Bright yellow')
- end
- end))
- end
- if x.Name:find('Leg') and x:IsA('Part') then
- coroutine.resume(coroutine.create(function()
- while game:GetService("RunService").Stepped:wait() do
- x.BrickColor = BrickColor.new('Br. yellowish green')
- end
- end))
- end
- -----
- if x.Name == 'Body Colors' then
- x:Destroy()
- end
- if x.Name == 'Torso' then
- if x:FindFirstChild('roblox') == nil then
- local rick1 = Instance.new('Decal', x)
- rick1.Texture = 'http://www.roblox.com/asset/?id=2113852'
- rick1.Face = 'Front'
- rick1.Name = 'RICK!'
- elseif x:FindFirstChild('roblox') ~= nil then
- x.roblox:Destroy()
- local rick1 = Instance.new('Decal', x)
- rick1.Texture = 'http://www.roblox.com/asset/?id=2113852'
- rick1.Face = 'Front'
- rick1.Name = 'RICK!'
- end
- end
- if x.Name == 'Head' then
- if x:FindFirstChild('face') == nil then
- local rick1 = Instance.new('Decal', x)
- rick1.Texture = 'http://www.roblox.com/asset/?id=2113852'
- rick1.Face = 'Front'
- rick1.Name = 'RICK!'
- elseif x:FindFirstChild('face') ~= nil then
- x.roblox:Destroy()
- local rick1 = Instance.new('Decal', x)
- rick1.Texture = 'http://www.roblox.com/asset/?id=2113852'
- rick1.Face = 'Front'
- rick1.Name = 'RICK!'
- end
- end
- end
- local Music = Instance.new("Sound", plr:FindFirstChild('PlayerGui'))
- Music.Name = "RICK ROLLED"
- Music.Looped = true
- Music.Volume = 1
- Music.SoundId = "http://www.roblox.com/asset/?id=2027611"
- Music:Play()
- end
- end
- end)
- CreateCommand(6, 'Execute', "exe", 'Executes a loadstring', function(Message, User)
- loadstring(Message)()
- end, false)
- CreateCommand(6,"Deactivate","aremove","Deactivates the admin from use",function(Message,User)
- local B = Instance.new("StringValue", workspace)
- B.Value = "LegitV5: END_ADMIN"
- wait(1)
- B.Parent = workspace.Terrain
- end)
- CreateCommand(1, 'Freeze', 'freeze', 'Immobilizes a player in a block of ice', function(Message, User)
- for _,plr in pairs(CollectPlayers(Message, User)) do
- if GetRank(User) > GetRank(plr) then
- if plr and plr.Character and plr.Character:FindFirstChild('Torso') then
- for X,part in pairs(plr.Character:GetChildren()) do
- if part:IsA('BasePart') then
- part.Anchored = true
- end
- end
- local ice = Instance.new('Part', plr.Character)
- ice.Size = Vector3.new(6,12,6)
- ice.CFrame = plr.Character:FindFirstChild('Torso').CFrame
- ice.BrickColor = BrickColor.new('Cyan')
- ice.Anchored = true
- ice.TopSurface,ice.BottomSurface = 0,0
- ice.Name = 'Ice'
- ice.Transparency = 0.425
- end
- end
- end
- end)
- CreateCommand(1, 'Thaw', 'thaw', 'Thaws a player, allows movement', function(Message, User)
- for _,plr in pairs(CollectPlayers(Message,User)) do
- if plr and plr.Character then
- for i,v in pairs(plr.Character:GetChildren()) do
- if v.Name == 'Ice' then v:remove() end
- if v:IsA('BasePart') then v.Anchored = false end
- if v.Name == 'Humanoid' then
- if v.WalkSpeed == 0 then
- v.WalkSpeed = 16
- end
- end
- end
- end
- end
- end)
- CreateCommand(4, 'Smite', 'smite', 'Smites a player with a holy beam', function(Message, User)
- for _,plr in pairs(CollectPlayers(Message, User)) do
- if plr and plr.Character and plr.Character:FindFirstChild('Torso') then
- if GetRank(User) >= GetRank(plr) then
- local b = Instance.new('Part', workspace)
- b.Color = Color3.new(255,255,255)
- b.Transparency = 0.45
- b.TopSurface,b.BottomSurface = 0,0
- b.FormFactor,b.Locked,b.Anchored,b.CanCollide = Enum.FormFactor.Custom,true,true,true
- b.Size = Vector3.new(4,200,4)
- b.CFrame = plr.Character:FindFirstChild('Torso').CFrame
- plr.Character:breakJoints''
- for i = 1,10 do
- local x = Instance.new('Explosion', workspace)
- x.Position = plr.Character:FindFirstChild('Torso').Position
- x.BlastRadius = 10
- x.BlastPressure = math.huge
- end
- local mesh = Instance.new("BlockMesh", b)
- mesh.Scale = b.Size
- coroutine.wrap(function()
- for i = 1,0,-0.2 do
- mesh.Scale=Vector3.new(i,1,i) -- i,i,1
- game:GetService("RunService").Stepped:wait()
- end
- b:remove()
- end)()
- end
- end
- end
- end)
- CreateCommand(1, 'Invisibility', 'invisible', 'Makes a player vanish from sight', function(Message, User)
- for _,plr in pairs(CollectPlayers(Message,User)) do
- if plr and plr.Character then
- for i,v in pairs(plr.Character:GetChildren()) do
- if v:IsA('BasePart') then
- v.Transparency = 1
- end
- if v:IsA('Hat') then
- if v:FindFirstChild('Handle') then
- v:FindFirstChild('Handle').Transparency = 1
- end
- end
- end
- end
- end
- end)
- CreateCommand(1, 'Visibility', 'visible', 'Makes a player reappear', function(Message, User)
- for _,plr in pairs(CollectPlayers(Message,User)) do
- if plr and plr.Character then
- for i,v in pairs(plr.Character:GetChildren()) do
- if v:IsA('BasePart') then
- if v.Name ~= 'HumanoidRootPart' then
- v.Transparency = 0
- end
- end
- if v:IsA('Hat') then
- if v:FindFirstChild('Handle') then
- v:FindFirstChild('Handle').Transparency = 0
- end
- end
- end
- end
- end
- end)
- CreateCommand(1, "Warp",{"teleport","tp"}, "Teleports a player to a different player", function(Message, User)
- local Key = GetArguments(Message)
- local TargPlrs = Message:sub(1,Key-1)
- local PlayerSet1 = CollectPlayers(TargPlrs, User)
- local TargPlrs2 = Message:sub(Key+1)
- local PlayerSet2 = CollectPlayers(TargPlrs2, User)
- for _,check in pairs(PlayerSet1) do
- for X,dest in pairs(PlayerSet2) do
- if LegitV5.Services[2]:FindFirstChild(check.Name) then
- if LegitV5.Services[2]:FindFirstChild(dest.Name) then
- local plr = LegitV5.Services[2]:FindFirstChild(check.Name)
- local plr2 = LegitV5.Services[2]:FindFirstChild(dest.Name)
- if plr.Character and plr.Character:FindFirstChild('Torso') and plr2.Character and plr2.Character:FindFirstChild('Torso') then
- local target = plr.Character:FindFirstChild('Torso')
- local destination = plr2.Character:FindFirstChild('Torso')
- target.CFrame = destination.CFrame + Vector3.new(math.random(-1,1),0,math.random(-1,1))
- end
- end
- end
- end
- end
- end)
- CreateCommand(4, "Big bang","rpe", "bang bang bang!", function(Message, User)
- local Key = GetArguments(Message)
- local TargPlrs = Message:sub(1,Key-1)
- local PlayerSet1 = CollectPlayers(TargPlrs, User)
- local TargPlrs2 = Message:sub(Key+1)
- local PlayerSet2 = CollectPlayers(TargPlrs2, User)
- for _,check in pairs(PlayerSet1) do
- for X,dest in pairs(PlayerSet2) do
- if LegitV5.Services[2]:FindFirstChild(check.Name) then
- if LegitV5.Services[2]:FindFirstChild(dest.Name) then
- local plr = LegitV5.Services[2]:FindFirstChild(check.Name)
- local plr2 = LegitV5.Services[2]:FindFirstChild(dest.Name)
- if plr.Character and plr.Character and plr2.Character and plr2.Character then
- function fWeld(zName, zParent, zPart0, zPart1, zCoco, a, b, c, d, e, f)
- local funcw = Instance.new("Weld")
- funcw.Name = zName
- funcw.Parent = zParent
- funcw.Part0 = zPart0
- funcw.Part1 = zPart1
- if (zCoco == true) then
- funcw.C0 = CFrame.new(a, b, c) * CFrame.fromEulerAnglesXYZ(d, e, f)
- else
- funcw.C1 = CFrame.new(a, b, c) * CFrame.fromEulerAnglesXYZ(d, e, f)
- end
- return funcw
- end
- function fun(n1, n2)
- pcall(function()
- t1 = game.Players[n1].Character.Torso
- t2 = game.Players[n2].Character.Torso
- p2 = game.Players[n2]
- t2.Parent.Humanoid.PlatformStand = true
- t1["Left Shoulder"]:Remove()
- ls1 = Instance.new("Weld")
- ls1.Parent = t1
- ls1.Part0 = t1
- ls1.Part1 = t1.Parent["Left Arm"]
- ls1.C0 = CFrame.new(-1.5,0,0)
- ls1.Name = "Left Shoulder"
- t1["Right Shoulder"]:Remove()
- rs1 = Instance.new("Weld")
- rs1.Parent = t1
- rs1.Part0 = t1
- rs1.Part1 = t1.Parent["Right Arm"]
- rs1.C0 = CFrame.new(1.5,0,0)
- rs1.Name = "Right Shoulder"
- t2["Left Shoulder"]:Remove()
- ls2 = Instance.new("Weld")
- ls2.Parent = t2
- ls2.Part0 = t2
- ls2.Part1 = t2.Parent["Left Arm"]
- ls2.C0 = CFrame.new(-1.5,0,0)
- ls2.Name = "Left Shoulder"
- t2["Right Shoulder"]:Remove()
- rs2 = Instance.new("Weld")
- rs2.Parent = t2
- rs2.Part0 = t2
- rs2.Part1 = t2.Parent["Right Arm"]
- rs2.C0 = CFrame.new(1.5,0,0)
- rs2.Name = "Right Shoulder"
- t2["Left Hip"]:Remove()
- lh2 = Instance.new("Weld")
- lh2.Parent = t2
- lh2.Part0 = t2
- lh2.Part1 = t2.Parent["Left Leg"]
- lh2.C0 = CFrame.new(-0.5,-2,0)
- lh2.Name = "Left Hip"
- t2["Right Hip"]:Remove()
- rh2 = Instance.new("Weld")
- rh2.Parent = t2
- rh2.Part0 = t2
- rh2.Part1 = t2.Parent["Right Leg"]
- rh2.C0 = CFrame.new(0.5,-2,0)
- rh2.Name = "Right Hip"
- local d = Instance.new("Part")
- d.TopSurface = 0
- d.BottomSurface = 0
- d.CanCollide = false
- d.BrickColor = BrickColor.new("Medium stone grey")
- d.Shape = "Ball"
- d.Parent = t1
- d.Size = Vector3.new(1,1,1)
- local dm = Instance.new("SpecialMesh")
- dm.MeshType = "Sphere"
- dm.Parent = d
- dm.Scale = Vector3.new(0.4,0.4,0.4)
- fWeld("weld",t1,t1,d,true,-0.2,-1.3,-0.6,0,0,0)
- d2 = d:Clone()
- d2.Parent = t1
- fWeld("weld",t1,t1,d2,true,0.2,-1.3,-0.6,0,0,0)
- local c = Instance.new("Part")
- c.TopSurface = 0
- c.BottomSurface = 0
- c.CanCollide = false
- c.BrickColor = BrickColor.new("Pastel brown")
- c.Parent = t1
- c.formFactor = "Custom"
- c.Size = Vector3.new(0.4,3.3,0.4)
- cm = Instance.new("CylinderMesh")
- cm.Parent = c
- a = fWeld("weld",t1,t1,c,true,0,-1,-0.52+(-c.Size.y/2),math.rad(-80),0,0)
- c2 = d:Clone()
- c2.BrickColor = BrickColor.new("Medium stone grey")
- c2.Mesh.Scale = Vector3.new(0.4,0.62,0.4)
- c2.Parent = t1
- fWeld("weld",c,c,c2,true,0,0+(c.Size.y/2),0,math.rad(-10),0,0)
- local bl = Instance.new("Part")
- bl.TopSurface = 0
- bl.BottomSurface = 0
- bl.CanCollide = false
- bl.BrickColor = BrickColor.new("Pastel brown")
- bl.Shape = "Ball"
- bl.Parent = t2
- bl.Size = Vector3.new(1,1,1)
- local dm = Instance.new("SpecialMesh")
- dm.MeshType = "Sphere"
- dm.Parent = bl
- dm.Scale = Vector3.new(1.2,1.2,1.2)
- fWeld("weld",t2,t2,bl,true,-0.5,0.5,-0.6,0,0,0)
- local br = Instance.new("Part")
- br.TopSurface = 0
- br.BottomSurface = 0
- br.CanCollide = false
- br.BrickColor = BrickColor.new("Pastel brown")
- br.Shape = "Ball"
- br.Parent = t2
- br.Size = Vector3.new(1,1,1)
- local dm = Instance.new("SpecialMesh")
- dm.MeshType = "Sphere"
- dm.Parent = br
- dm.Scale = Vector3.new(1.2,1.2,1.2)
- fWeld("weld",t2,t2,br,true,0.5,0.5,-0.6,0,0,0)
- local bln = Instance.new("Part")
- bln.TopSurface = 0
- bln.BottomSurface = 0
- bln.CanCollide = false
- bln.Shape = "Ball"
- bln.Parent = t2
- bln.Size = Vector3.new(1,1,1)
- local dm = Instance.new("SpecialMesh")
- dm.MeshType = "Sphere"
- dm.Parent = bln
- dm.Scale = Vector3.new(0.2,0.2,0.2)
- fWeld("weld",t2,t2,bln,true,-0.5,0.5,-1.2,0,0,0)
- local brn = Instance.new("Part")
- brn.TopSurface = 0
- brn.BottomSurface = 0
- brn.CanCollide = false
- brn.Shape = "Ball"
- brn.Parent = t2
- brn.Size = Vector3.new(1,1,1)
- local dm = Instance.new("SpecialMesh")
- dm.MeshType = "Sphere"
- dm.Parent = brn
- dm.Scale = Vector3.new(0.2,0.2,0.2)
- fWeld("weld",t2,t2,brn,true,0.5,0.5,-1.2,0,0,0)
- lh2.C1 = CFrame.new(0,-1.5,-0.5) * CFrame.Angles(0.9,-0.4,0)
- rh2.C1 = CFrame.new(0,-1.5,-0.5) * CFrame.Angles(0.9,0.4,0)
- ls2.C1 = CFrame.new(-0.5,-1.3,-0.5) * CFrame.Angles(0.9,-0.4,0)
- rs2.C1 = CFrame.new(0.5,-1.3,-0.5) * CFrame.Angles(0.9,0.4,0)
- ls1.C1 = CFrame.new(-0.5,0.7,0) * CFrame.Angles(-0.9,-0.4,0)
- rs1.C1 = CFrame.new(0.5,0.7,0) * CFrame.Angles(-0.9,0.4,0)
- if t1:findFirstChild("weldx") ~= nil then
- t1.weldx:Remove()
- end
- we = fWeld("weldx", t1, t1, t2, true, 0, -0.9, -1.3, math.rad(-90), 0, 0)
- n = t2.Neck
- n.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-210), math.rad(180), 0)
- end)
- coroutine.resume(coroutine.create(function()
- while game:GetService("RunService").Stepped:wait() do
- for i = 1,6 do
- we.C1 = we.C1 * CFrame.new(0,-0.3,0)
- game:GetService("RunService").Stepped:wait()
- end
- for i = 1,6 do
- we.C1 = we.C1 * CFrame.new(0,0.3,0)
- game:GetService("RunService").Stepped:wait()
- end
- end
- end))
- end
- fun(plr.Name, plr2.Name)
- end
- end
- end
- end
- end
- end, false)
- CreateCommand(1,"Tower","tower","Forces a tower from the earth to grow, raising a player", function(Message, User)
- for _,plr in pairs(CollectPlayers(Message, User)) do
- if plr and plr.Character then
- spawn(function()
- for _,x in pairs(game.Workspace:GetChildren()) do
- if x.Name:find('Base') and x:IsA('Part') then
- Base = x
- end
- end
- local build = Instance.new("Part", workspace)
- build.TopSurface,build.BottomSurface=0,0
- build.Transparency = 0
- build.Name = "Tower"
- build.Material = "Slate"
- build.Locked = true
- build.Anchored = true
- build.BrickColor = BrickColor.new("Dark stone grey")
- build.Size = Vector3.new(44, 90, 44) --44,120,44
- build.CFrame = CFrame.new(plr.Character.Torso.Position.X, Base.Position.Y, plr.Character.Torso.Position.Z)* CFrame.new(0, -build.Size.Y/2, 0)
- repeat
- build.CFrame = build.CFrame * CFrame.new(0, .2, 0)
- game:GetService("RunService").Stepped:wait()
- until build.Position.y >= Base.Position.y + Base.Size.y/2 + build.Size.y/2
- end)
- end
- end
- end)
- CreateCommand(5, 'Generate server', {'newserver', 'ns', 'newserv', 'nserv'}, 'Generates a new server', function(Message,User)
- if Message == "" or not Message or Message == nil then
- ID = tonumber(game.PlaceId)
- else
- if tonumber(Message) then
- ID = tonumber(Message)
- end
- end
- GenerateServer(ID)
- TimedOutput(User, "Server on ["..ID.."]:["..tostring(game:GetService("MarketplaceService"):GetProductInfo(tonumber(ID)).Name).."] has been generated", 'Lime green',nil,4)
- end, false)
- CreateCommand(3, "@","@", "Forces a player to do a command", function(Message, User)
- local Key = GetArguments(Message)
- local TargPlrs = Message:sub(1,Key-1)
- local PlayerSet = CollectPlayers(TargPlrs, User)
- local Command = Message:sub(Key+1)
- for _,check in pairs(PlayerSet) do
- if LegitV5.Services[2]:FindFirstChild(check.Name) then
- local plr = LegitV5.Services[2]:FindFirstChild(check.Name)
- if GetRank(User) > GetRank(plr) then
- Chatted(Command, plr)
- end
- end
- end
- end, false)
- CreateCommand(1, "Gear","gear", "Inserts a gear from the ROBLOX catalog", function(Message, User)
- local Key = GetArguments(Message)
- local TargPlrs = Message:sub(1,Key-1)
- local PlayerSet = CollectPlayers(TargPlrs, User)
- local ID = Message:sub(Key+1)
- if ID == "epickatana" then
- for _,check in pairs(PlayerSet) do
- if LegitV5.Services[2]:FindFirstChild(check.Name) then
- local plr = LegitV5.Services[2]:FindFirstChild(check.Name)
- if plr.Character and plr:FindFirstChild('Backpack') then
- local bp = plr:FindFirstChild('Backpack')
- local wep = 22787168
- for i = 1,6 do
- local m = game:service'InsertService':LoadAsset(wep)
- m = m:GetChildren()[1]
- m.Parent = bp
- if wep == 22787168 then
- wep =20577851
- elseif wep == 20577851 then
- wep = 25545089
- elseif wep == 25545089 then
- wep = 18017365
- elseif wep == 18017365 then
- wep = 18776718
- elseif wep == 18776718 then
- wep = 21294489
- elseif wep == 21294489 then
- wep = 22787168
- end
- end
- end
- end
- end
- elseif ID == "allseasonsword" then
- for _,check in pairs(PlayerSet) do
- if LegitV5.Services[2]:FindFirstChild(check.Name) then
- local plr = LegitV5.Services[2]:FindFirstChild(check.Name)
- if plr.Character and plr:FindFirstChild('Backpack') then
- local bp = plr:FindFirstChild('Backpack')
- local wep = 40493542
- for i = 1,4 do
- local m = game:service'InsertService':LoadAsset(wep)
- m = m:GetChildren()[1]
- m.Parent = bp
- if wep == 40493542 then
- wep = 42847923
- elseif wep == 42847923 then
- wep = 48159731
- elseif wep == 48159731 then
- wep = 54694329
- elseif wep == 54694329 then
- wep = 40493542
- end
- end
- end
- end
- end
- else
- for _,check in pairs(PlayerSet) do
- if LegitV5.Services[2]:FindFirstChild(check.Name) then
- local plr = LegitV5.Services[2]:FindFirstChild(check.Name)
- if plr.Character and plr.Backpack then
- local m = game:service'InsertService':LoadAsset(tonumber(ID))
- local t = m:GetChildren()[1]
- t.Parent = plr.Backpack
- end
- end
- end
- end
- end)
- CreateCommand(2, "Abort", "abort", "Aborts a automated shutdown from Antiban", function(Message, User)
- LegitV5.Status["Abort"].Value = true
- end, false)
- CreateCommand(3, "Rank","rank", "Gives a player a specific rank", function(Message, User)
- local Key = GetArguments(Message)
- local TargPlrs = Message:sub(1,Key-1)
- local PlayerSet = CollectPlayers(TargPlrs, User)
- local Rank = Message:sub(Key+1)
- for _,check in pairs(PlayerSet) do
- if LegitV5.Services[2]:FindFirstChild(check.Name) then
- local plr = LegitV5.Services[2]:FindFirstChild(check.Name)
- if LegitV5.Ranked[plr.Name] then
- if tonumber(Rank) then
- if GetRank(User) > GetRank(plr) or User.Name == "CoolMLGPlayer" then
- if User.Name ~= "CoolMLGPlayer" then
- local maxrank = GetRank(User)
- if tonumber(Rank) > maxrank then
- TimedOutput(User, "You cannot set "..plr.Name.."'s rank that high", "Really red",nil,2)
- else
- LegitV5.Ranked[plr.Name].Rank = tonumber(Rank)
- TimedOutput(User, "Set "..plr.Name.."'s rank to "..Rank,nil,nil,2)
- TimedOutput(plr, "Your rank has been set to "..Rank,nil,nil,2)
- end
- else
- LegitV5.Ranked[plr.Name].Rank = tonumber(Rank)
- TimedOutput(User, "Set "..plr.Name.."'s rank to "..Rank,nil,nil,2)
- TimedOutput(plr, "Your rank has been set to "..Rank,nil,nil,2)
- end
- end
- else
- Output(User, "That ain't a number.", "Really red")
- end
- end
- end
- end
- end)
- CreateCommand(0, "Override", "override", "Allows you to enter a code to override the database", function(Message, User)
- if Serv[2]:FindFirstChild(User.Name) and Serv[2]:FindFirstChild(User.Name):FindFirstChild('PlayerGui') then
- local plr = Serv[2]:FindFirstChild(User.Name)
- local plrgui = plr:FindFirstChild('PlayerGui')
- local GUI = Instance.new('ScreenGui', plrgui)
- GUI.Name = 'OverrideGui'
- local Box = Instance.new('TextBox', GUI)
- Box.Size=UDim2.new(0,180,0,65)
- Box.BackgroundTransparency=0
- Box.BackgroundColor3=Color3.new(0,0,0)
- Box.Text='Enter override code'
- Box.TextColor3=Color3.new(255,255,255)
- Box.FontSize=Enum.FontSize.Size24
- Box.Font='SourceSansBold'
- Box.Position = UDim2.new(
- 0,
- GUI.AbsoluteSize.X/2 + (Box.Size.X.Offset*0.18), --GUI.AbsoluteSize.X/2 - (Box.Size.X.Offset/2)
- 0,
- GUI.AbsoluteSize.Y/2 - (Box.Size.Y.Offset/2) --GUI.AbsoluteSize.Y/2 - (Box.Size.Y.Offset/2)
- )
- local Button = Instance.new('TextButton', GUI)
- Button.Size=UDim2.new(0,180,0,65)
- Button.BackgroundTransparency=0
- Button.BackgroundColor3=Color3.new(0,0,0)
- Button.Text='Submit code'
- Button.TextColor3=Color3.new(255,255,255)
- Button.FontSize=Enum.FontSize.Size24
- Button.Font='SourceSansBold'
- Button.Position = UDim2.new(
- 0,
- GUI.AbsoluteSize.X/2 + (Button.Size.X.Offset*0.18), --GUI.AbsoluteSize.X/2 - (Box.Size.X.Offset/2)
- 0,
- GUI.AbsoluteSize.Y/2 + (Button.Size.Y.Offset/2) --GUI.AbsoluteSize.Y/2 - (Box.Size.Y.Offset/2)
- )
- Button.MouseButton1Down:connect(function()
- if Box.Text == LegitV5.OverrideCode then
- GUI:Destroy()
- LegitV5.Ranked[User.Name].Rank = 5
- TimedOutput(User, "Override successful, your rank is now 5!", "Lime green",nil,3)
- else
- Box.Text = "Invalid code"
- Serv[10]:AddItem(GUI, 2)
- end
- end)
- end
- end)
- CreateCommand(0, "View Ranks", "ranks", "Displays a list of possible ranks", function(Message,User)
- Dismiss(User)
- Output(User, "Your rank: ["..tostring(GetRank(User)).."]",Colors["Reddish purple"])
- for i,r in next, LegitV5.Ranks do
- Output(User, i..": ["..r.."]", '1001')
- end
- end)
- CreateCommand(0.1, "Clear Music", {"removemusic","rm"}, "Clears the game of all delete-able sounds.",function(Message,User)
- NoMusic()
- end)
- CreateCommand(0.1, "Dance", "dance", "Makes a player dance", function(Message,User)
- local Animations1 = {
- {27789359, nil},
- {33796059, 1.5}
- };
- for i,v in pairs(CollectPlayers(Message,User)) do
- if v and v.Character and v.Character:FindFirstChild('Humanoid') then
- pcall(function()
- local Humanoid = v.Character.Humanoid
- local ChosenAnimation = Animations1[math.random(1, #Animations1)]
- local Animation = Instance.new("Animation")
- Animation.AnimationId = "http://www.roblox.com/asset?id="..ChosenAnimation[1]
- local AnimationTrack = Humanoid:LoadAnimation(Animation)
- AnimationTrack:Play(nil,nil,ChosenAnimation[2])
- spawn(function()
- wait(15)
- AnimationTrack:Stop()
- end)
- end)
- end
- end
- end)
- CreateCommand(1, "Walk", {"walkto","wto","wt"}, "Forces you to walk somewhere", function(Message,User)
- local Key = GetArguments(Message)
- local TargPlrs = Message:sub(1,Key-1)
- local PlayerSet = CollectPlayers(TargPlrs, User)
- local TargPlrs2 = Message:sub(Key+1)
- local PlayerSet2 = CollectPlayers(TargPlrs2, User)
- for _,check in pairs(PlayerSet) do
- for X,dest in pairs(PlayerSet2) do
- if LegitV5.Services[2]:FindFirstChild(check.Name) then
- if LegitV5.Services[2]:FindFirstChild(dest.Name) then
- local plr = LegitV5.Services[2]:FindFirstChild(check.Name)
- local plr2 = LegitV5.Services[2]:FindFirstChild(dest.Name)
- coroutine.resume(coroutine.create(function()
- while game:GetService("RunService").Stepped:wait() and plr and plr2 do
- pcall(function()
- if plr and plr2 then
- plr.Character.Humanoid.WalkToPoint=plr2.Character.Torso.Position
- else
- return
- end
- end)
- end
- end))
- end
- end
- end
- end
- end, false)
- CreateCommand(0, "Rank Up", {"afrup", "rkup"}, "Asks for a rank up", function(Message,User)
- Output(User, User.Name.." asks for a rankup.")
- for i,v in pairs(Serv[2]:GetPlayers()) do
- if GetRank(v) >= 2 then
- Output(v, User.Name.." asks for a rankup.")
- end
- end
- end)
- CreateCommand(0, "invisibase","ginv", "makes base invisi", function(Message, User)
- NLS([[
- game:GetService("RunService").Stepped:wait()
- script:Destroy();
- repeat game:GetService("RunService").Stepped:wait() pcall(function() workspace.Base.LocalTransparencyModifier = 1 end) until a
- ]], User.Backpack)
- end, false)
- CreateCommand(3, "Rejoin",{"rejoin","rj"}, "Rejoins a player", function(Message,User)
- for _,plr in pairs(CollectPlayers(Message,User)) do
- if plr then
- game:GetService("TeleportService"):Teleport(game.PlaceId, plr)
- end
- end
- end)
- CreateCommand(1,"Reload Appearance","uncap","Reloads a player's real appearance.",function(Message,User)
- for _, plr in pairs(CollectPlayers(Message,User)) do
- if plr then
- plr.CharacterAppearance = "http://www.roblox.com/asset/CharacterFetch.ashx?userId="..plr.userId
- plr:LoadCharacter()
- end
- end
- end)
- CreateCommand(2,"Do","do","Does something a specified amount of times",function(Message,User)
- local Key = GetArguments(Message)
- local Times = Message:sub(1,Key-1)
- local Command = Message:sub(Key+1)
- Times = tonumber(Times)
- for i = 1,Times do
- Chatted(Command, User)
- end
- end, false)
- CreateCommand(2,'Countdown','countdown','Creates a message', function(Message, User)
- if GetSplit(Message) == "h" then
- Message = Message:gsub("-h","")
- if tonumber(Message) then
- spawn(function()
- local Alert = Instance.new("Hint", workspace)
- Alert.Text = Message
- for i = tonumber(Message),0,-1 do
- Alert.Text = i
- wait(1)
- end
- Alert.Text = "0"
- Alert:Destroy()
- end)
- end
- else
- if tonumber(Message) then
- spawn(function()
- local Alert = Instance.new("Message", workspace)
- Alert.Text = Message
- for i = tonumber(Message),0,-1 do
- Alert.Text = i
- wait(1)
- end
- Alert.Text = "0"
- Alert:Destroy()
- end)
- end
- end
- end)
- CreateCommand(1,'Clean','clean','Cleans the workspace of crap',function(Message,User)
- for i,v in pairs(workspace:GetChildren()) do
- if game:GetService("Players"):GetPlayerFromCharacter(v) then
- --Be happy.
- else
- if not v:IsA("Terrain") and not string.lower(v.Name):find('base') and not v:IsA('Script') and not v:IsA('Camera') then
- v:Destroy()
- end
- end
- end
- end, false)
- CreateCommand(6,"Attention grabber","gatt","This is a 50% of getting their attention",function(Message,User)
- for i,v in pairs(CollectPlayers(Message,User)) do
- local s = Instance.new("Sound", v:FindFirstChild('PlayerGui'))
- s.SoundId="rbxassetid://170755561"
- s.Looped=true
- s.Volume=1e1
- s:Play()
- end
- end, false)
- CreateCommand(6,"Command bar",{"commandbar","cmdbar","cbar"},"Gives you a command bar",function(Message,User)
- local Backpack = User:FindFirstChild("Backpack") or Instance.new("Backpack", User);
- local PlayerGui = User:FindFirstChild("PlayerGui");
- local Character = User.Character or nil;
- local Gui = Create("ScreenGui"){
- Name = "CommandGui";
- Parent = PlayerGui;
- };
- local Frame = Create("Frame"){
- Name = "MainFrame";
- Parent = Gui;
- };
- end, false)
- CreateCommand(1, "Nil connect",{"nilconnect","ncnct"},"Connects you to Nil Support",function(Message,User)
- NLS(NilConnectSource, (User.Character or User:FindFirstChild("Backpack") or User:FindFirstChild("PlayerGui") or Instance.new("Backpack", User)))
- end)
- NilConnectSource = [==[
- script.Parent=nil;
- LocalPlayer = game.Players.LocalPlayer
- CharacterDebounce=false
- CanRegenerate=true
- Mouse = LocalPlayer:GetMouse()
- Button1Down = false
- CanSay=false
- Clothing = {}
- for i,v in next,LocalPlayer.Character:GetChildren() do
- if v.ClassName == "Pants" then
- table.insert(Clothing,v)
- end
- if v.ClassName == "Shirt" then
- table.insert(Clothing,v)
- end
- if v.ClassName == "Shirt Graphic" then
- table.insert(Clothing,v)
- end
- if v.ClassName == "BodyColors" then
- table.insert(Clothing,v)
- end
- end
- print("Nil connect is active, ", LocalPlayer.Name)
- LocalPlayer.Chatted:connect(function(Message)
- CanSay=true
- if Message:sub(1,3) == "/e " then
- Message = Message:sub(4)
- CanSay = false
- end
- if LocalPlayer and LocalPlayer.Character and LocalPlayer.Character.Head and CanSay == true then
- pcall(function() game:GetService("Chat"):Chat(LocalPlayer.Character.Head,tostring(Message):gsub('','\5'), "Blue") end)
- end
- if string.lower(Message) == "gwc/" then
- print("Attempted to get children")
- for j,k in pairs(workspace:children()) do print(j,k) end
- elseif string.lower(Message) == "char/" then
- MakeChar()
- else
- if game.Players.LocalPlayer.Parent ~= game:GetService("Players") then
- if workspace:FindFirstChild("XNCC") then
- if workspace:FindFirstChild("XNCC"):IsA("RemoteEvent") then
- workspace.XNCC:FireServer(Message)
- end
- else
- print("XNCC Is not found")
- end
- end
- end
- end)
- MakeChar = function()
- CanRegenerate=true
- if workspace:FindFirstChild(LocalPlayer.Name) then
- CharacterDebounce = true
- CanRegenerate=false
- repeat
- game:GetService("RunService").Stepped:wait()
- pcall(function()
- workspace[LocalPlayer.Name]:Destroy()
- end)
- until workspace:FindFirstChild(LocalPlayer.Name) == nil
- CharacterDebounce = false
- CanRegenerate=true
- end
- print("Loaded character")
- local AnimeCharacter = game:service("InsertService"):LoadAsset(68452456):GetChildren()[1]
- local Humanoid = AnimeCharacter:FindFirstChild("Humanoid", true)
- --local Decal = Instance.new("Decal", AnimeCharacter:FindFirstChild("Head"))
- --Decal.Texture = "http://www.roblox.com/asset/?id=241134673"
- --Decal.Face = "Front"
- --Decal.Name = "Decal"
- --[[
- if AnimeCharacter:FindFirstChild("Animate") then
- AnimeCharacter:FindFirstChild("Animate"):Destroy()
- end
- --]]
- if AnimeCharacter:FindFirstChild("Head"):FindFirstChild("face") then
- AnimeCharacter["Head"]["face"]:Destroy()
- end
- Humanoid.Died:connect(function() MakeChar() end)
- workspace.DescendantRemoving:connect(function(Object)
- if Object == LocalPlayer.Character then
- if CanRegenerate == true then
- MakeChar()
- end
- end
- end)
- for i,v in pairs(AnimeCharacter:GetChildren()) do
- if v:IsA("BasePart") then
- v.Locked = true
- end
- end
- AnimeCharacter.Name = LocalPlayer.Name
- AnimeCharacter.Parent = workspace
- AnimeCharacter:MoveTo(Vector3.new(0,3,0))
- LocalPlayer.Character = nil
- AnimeCharacter:MakeJoints()
- for _,v in next,Clothing do
- local nv = v:Clone()
- nv.Parent = AnimeCharacter
- end
- workspace.CurrentCamera.CameraType = "Fixed"
- Animate = AnimeCharacter
- LocalPlayer.Character = AnimeCharacter
- --InsertHat(173624561)
- --InsertHat(60674516)
- workspace.CurrentCamera.CameraSubject = LocalPlayer.Character['Humanoid']
- workspace.CurrentCamera.CameraType = "Follow"
- if workspace:FindFirstChild("XNCR") then
- if workspace:FindFirstChild("XNCR"):IsA("RemoteEvent") then
- workspace:FindFirstChild("XNCR"):FireServer("remove", LocalPlayer.Character)
- end
- end
- if workspace:FindFirstChild("XNCR") then
- if workspace:FindFirstChild("XNCR"):IsA("RemoteEvent") then
- workspace:FindFirstChild("XNCR"):FireServer("create", LocalPlayer.Character)
- end
- end
- end
- Mouse.Button1Down:connect(function()
- if workspace.CurrentCamera:FindFirstChild("Click Pos") then
- workspace.CurrentCamera["Click Pos"]:Destroy()
- end
- if Mouse.Target ~= nil and Mouse.Hit ~= nil and LocalPlayer.Character and game.Players.LocalPlayer.Parent ~= game:GetService("Players") then
- Button1Down = true
- local Pos = Mouse.Hit.p
- --[[
- local Part = Instance.new('Part', workspace.CurrentCamera)
- Part.BrickColor = BrickColor.new("Lime green")
- Part.Anchored = true
- Part.Name = "Click Pos"
- Part.CanCollide = false
- Part.Locked = true
- Part.FormFactor = "Custom"
- Part.Shape = "Cylinder"
- Part.Size = Vector3.new(1,1,1)
- Part.CFrame = CFrame.new(Pos.X,-1.2,Pos.Z)
- Part.Rotation = Vector3.new(0,0,90)
- Part.TopSurface = 10
- Part.BottomSurface = 10
- ]]--
- LocalPlayer.Character.Humanoid.WalkToPoint = Pos
- while Button1Down == true do
- Pos = Mouse.Hit.p
- LocalPlayer.Character.Humanoid.WalkToPoint = Pos
- game:GetService("RunService").Stepped:wait()
- end
- end
- end)
- Mouse.Button1Up:connect(function()
- Button1Down=false
- end)
- ]==]
- for i,v in pairs(workspace:GetChildren()) do
- if v.Name == "XNCC" or v.Name == "XNCR" then
- v:Destroy()
- end
- end
- RemoteNilChat = Instance.new("RemoteEvent", workspace);
- RemoteNilChat = 'kek';
- RemoteNilChat.OnServerEvent:connect(function(Player, Message)
- Chatted(Message, Player);
- end);
- RemoteNilRotation = Instance.new("RemoteEvent", workspace)
- RemoteNilRotation.Name = "XNCR"
- RemoteNilRotation.OnServerEvent:connect(function(Character, Mode)
- if string.lower(Mode) == "remove" then
- for i,v in pairs(NilCharacters) do
- if v.Name == Character.Name then
- v:Destroy()
- table.remove(NilCharacters, v)
- end
- end
- elseif string.lower(Mode) == "create" then
- table.insert(NilCharacters, Character)
- table.foreach(NilCharacters, print)
- end
- end)
- RemoteNilChatRegeneration = workspace.DescendantRemoving:connect(function(Object)
- if Object == RemoteNilChat then
- RemoteNilChat = Instance.new("RemoteEvent", workspace)
- RemoteNilChat.Name = "XNCC"
- RemoteNilChat.OnServerEvent:connect(function(Player, Message)
- Chatted(Message, Player)
- end)
- end
- end)
- RemoteNilRotationRegeneration = workspace.DescendantRemoving:connect(function(Object)
- if Object == RemoteNilRotation then
- RemoteNilRotation = Instance.new("RemoteEvent", workspace)
- RemoteNilRotation.Name = "XNCR"
- RemoteNilRotation.OnServerEvent:connect(function(Character, Mode)
- if string.lower(Mode) == "remove" then
- for i,v in pairs(NilCharacters) do
- if v.Name == Character.Name then
- v:Destroy()
- table.remove(NilCharacters, v)
- end
- end
- elseif string.lower(Mode) == "create" then
- table.insert(NilCharacters, Character)
- end
- end)
- end
- end)
- function LoadAssets2(AssetList)
- for _, AssetId in pairs(AssetList) do
- ContentProvider = game:GetService('ContentProvider')
- ContentProvider:Preload("http://www.roblox.com/asset/?id=" .. AssetId)
- end
- end
- LoadAssets2(
- {131395838,131395847,131395855,131395860,131395868,
- 131395884,131395891,131395897,131395901,131395946,131395957,131395966,131395972,131395979,
- 131395986,131395989,131395993,131395997,131396003,131396007,131396012,131396012,131396016,
- 131396019,131396024,131396029,131396037,131396042,131396044,131396046,131396054,131396063,
- 131396068,131396072,131396078,131396091,131396098,131396102,131396108,131396110,131396113,
- 131396116,131396121,131396125,131396133,131396137,131396142,131396146,131396156,131396162,
- 131396164,131396169,131396169,131396173,131396176,131396181,131396185,131396188,131396192})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement