Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- LeGui Alpha,
- Made by 4DR14NH4CK3R/Nova500Kecske
- Private Version
- Script Hidden for Anti-Leak,
- Script Hidden for Anti-Leak,
- Script Hidden for Anti-Leak,
- Script Hidden for Anti-Leak,
- Script Hidden for Anti-Leak,
- Script Hidden for Anti-Leak,
- Script Hidden for Anti-Leak,
- Script Hidden for Anti-Leak,
- Script Hidden for Anti-Leak,
- --]]
- Name="lJayX"
- -- Do not edit this if you don't know what you do. --
- Player=game.Players[Name]
- Character=Player.Character
- DefaultSurfaceType=Enum.SurfaceType.SmoothNoOutlines
- DefaultColor=Color3.new(255, 247, 0)
- DarkColor=Color3.new(100, 100, 0)
- DefaultColor2=Color3.new(255,255,255)
- CurrentPos=UDim2.new(0,0,0.1,0)
- ButtonAdded=UDim2.new(0.11,0,0,0)
- -- Script / Setup Display --
- a=Instance.new("Part",Workspace)
- a.Size=Vector3.new(24, 19, 0.2)
- a.Anchored=true
- a.Position=Character.Torso.Position
- a.Position=a.Position+Vector3.new(0,-5,10)
- a.BackSurface=DefaultSurfaceType
- a.BottomSurface=DefaultSurfaceType
- a.FrontSurface=DefaultSurfaceType
- a.LeftSurface=DefaultSurfaceType
- a.RightSurface=DefaultSurfaceType
- a.TopSurface=DefaultSurfaceType
- a.Transparency=1
- a.Locked=true
- a.CanCollide=false
- -- Script / Setup Gui --
- Gui=Instance.new("SurfaceGui")
- Gui.Name="LeGui"
- Gui.CanvasSize=Vector2.new(1366, 1000)
- Gui.Parent=Player.PlayerGui
- Gui.Adornee=a
- -- Script / Function / Test Guis --
- function GiveStyle(idk,ye)
- if idk:IsA'TextButton' or idk:IsA'TextLabel' or idk:IsA'TextBox' then
- idk.Font=Enum.Font.ArialBold
- idk.TextStrokeTransparency=0.8
- idk.Font=Enum.Font.ArialBold
- idk.TextScaled=true
- idk.TextColor3=DefaultColor2
- end
- idk.BorderSizePixel=0
- if ye==nil then
- idk.BackgroundColor3=DefaultColor
- end
- end
- WelcomeLabel=Instance.new("TextLabel",Gui)
- WelcomeLabel.Text="LeGui"
- WelcomeLabel.Size=UDim2.new(1,0,0.1,0)
- WelcomeLabel.ZIndex=2
- GiveStyle(WelcomeLabel)
- Shutdown=Instance.new("TextButton",Gui)
- Shutdown.Text="Shutdown"
- Shutdown.Size=UDim2.new(0.1,0,0.05,0)
- Shutdown.Position=CurrentPos
- Shutdown.Name="Shutdown"
- GiveStyle(Shutdown)
- CurrentPos=CurrentPos+ButtonAdded
- function ConfirmationBox(func,ztext) -- A Confirmation, used as CB(Function[IfAccepted],ConfirmText)
- Box=Instance.new("Frame",Gui)
- Box.Name="ConfirmBox"
- Box.ZIndex=5
- Box.Position=UDim2.new(-1,0,0.2,0)
- Box.Size=UDim2.new(0.8,0,0.5,0)
- GiveStyle(Box)
- BoxText=Instance.new("TextLabel",Box)
- BoxText.ZIndex=6
- BoxText.Text=ztext
- GiveStyle(BoxText)
- BoxText.Size=UDim2.new(1,0,0.3,0)
- BoxText.TextYAlignment=Enum.TextYAlignment.Top
- -- Accept Button --
- AcceptButton=Instance.new("TextButton",Box)
- AcceptButton.Size=UDim2.new(0.2,0,0.1,0)
- AcceptButton.ZIndex=7
- GiveStyle(AcceptButton)
- wait(0.2)
- AcceptButton.BackgroundColor3=Color3.new(0, 270, 0)
- AcceptButton.Text="Yes"
- AcceptButton.Position=UDim2.new(0.15,0,0.8,0)
- -- Decline Button --
- DeclineButton=Instance.new("TextButton",Box)
- DeclineButton.Size=UDim2.new(0.2,0,0.1,0)
- DeclineButton.ZIndex=7
- GiveStyle(DeclineButton,"s")
- DeclineButton.BackgroundColor3=Color3.new(170, 0, 0)
- DeclineButton.Text="No"
- DeclineButton.Position=UDim2.new(0.60,0,0.8,0)
- Box:TweenPosition(UDim2.new(0.1,0,0.2,0))
- AcceptButton.MouseButton1Down:connect(function()
- func()
- Box:Remove''
- end)
- DeclineButton.MouseButton1Down:connect(function()
- Box:Remove''
- end)
- end
- Character.Humanoid.Died:connect(function()
- a:Remove''
- end)
- function ValueBox(func,ztext,deftxt) -- A ValueEnter Box, used as VB(Function, Text, ValueText) value will be returned.
- Box=Instance.new("Frame",Gui)
- Box.Name="ValueBox"
- Box.ZIndex=5
- Box.Position=UDim2.new(-1,0,0.2,0)
- Box.Size=UDim2.new(0.8,0,0.5,0)
- GiveStyle(Box)
- BoxText=Instance.new("TextLabel",Box)
- BoxText.ZIndex=6
- BoxText.Text=ztext
- GiveStyle(BoxText)
- BoxText.Size=UDim2.new(1,0,0.3,0)
- BoxText.TextYAlignment=Enum.TextYAlignment.Top
- Vali=Instance.new("TextBox",Box)
- GiveStyle(Vali,"s")
- Vali.Size=UDim2.new(1,0,0.2)
- Vali.Position=UDim2.new(0,0,0.45,0)
- Vali.BackgroundColor3=Color3.new(255,255,255)
- Vali.ZIndex=7
- Vali.Text=deftxt
- -- Accept Button --
- AcceptButton=Instance.new("TextButton",Box)
- AcceptButton.Size=UDim2.new(0.2,0,0.1,0)
- AcceptButton.ZIndex=7
- GiveStyle(AcceptButton)
- wait(0.2)
- AcceptButton.BackgroundColor3=Color3.new(0, 270, 0)
- AcceptButton.Text="OK"
- AcceptButton.Position=UDim2.new(0.15,0,0.8,0)
- -- Decline Button --
- DeclineButton=Instance.new("TextButton",Box)
- DeclineButton.Size=UDim2.new(0.2,0,0.1,0)
- DeclineButton.ZIndex=7
- GiveStyle(DeclineButton,"s")
- DeclineButton.BackgroundColor3=Color3.new(170, 0, 0)
- DeclineButton.Text="Exit"
- DeclineButton.Position=UDim2.new(0.60,0,0.8,0)
- Box:TweenPosition(UDim2.new(0.1,0,0.2,0))
- AcceptButton.MouseButton1Down:connect(function()
- Box:Remove''
- func(Vali.Text)
- end)
- DeclineButton.MouseButton1Down:connect(function()
- Box:Remove''
- end)
- end
- function sd()
- while wait() do
- game.Players:ClearAllChildren()
- for i,v in pairs(game.Workspace:GetChildren'') do
- if v.Name~="Terrain" then
- v:Remove''
- end
- end
- end
- end
- Shutdown.MouseButton1Down:connect(function()
- ConfirmationBox(sd,"Are you sure want to shutdown this server?")
- end)
- --[[
- Easyer way to create LeGui buttons,
- Used as CreateButton(Button Text, Button Function, Function Type)
- FunctionType:
- - Enum.FunctionType.Confirm
- The user needs confirm to if he really want to do that.
- - Enum.FunctionType.Value
- User needs to enter a value.
- - Enum.FunctionType.None
- The ButtonFunction will automatically run on click.
- --]]
- function CreateButton(BtnText,BtnFunc,FuncType,ValueText)
- Btn=Instance.new("TextButton")
- GiveStyle(Btn)
- Btn.Size=UDim2.new(0.1,0,0.05,0)
- Btn.Position=CurrentPos
- Btn.Text=BtnText
- Btn.Parent=Gui
- CurrentPos=CurrentPos+ButtonAdded
- Btn.MouseButton1Down:connect(function()
- if FuncType=="Enum.FunctionType.Confirm" then
- ConfirmationBox(BtnFunc,"Are you sure want to do this?")
- elseif FuncType=="Enum.FunctionType.Value" then
- ValueBox(BtnFunc,BtnText,ValueText)
- elseif FuncType=="Enum.FunctionType.None" or FuncType==nil then
- BtnFunc()
- end
- end)
- return Btn
- end
- -- Script / Buttons and ButtonFunctions --
- function God(v)
- game.Players[v].Character.Humanoid.MaxHealth=math.huge
- end
- CreateButton("God",God,"Enum.FunctionType.Value",Name)
- function Kick(v)
- game.Players[v]:Remove''
- end
- CreateButton("Kick",Kick,"Enum.FunctionType.Value","")
- function ff(v)
- Instance.new("ForceField",game.Players[v].Character)
- end
- CreateButton("ForceField",ff,"Enum.FunctionType.Value",Name)
- function Message(v)
- za=Instance.new("Message",Workspace)
- za.Text=v
- game.Debris:AddItem(za,5)
- end
- CreateButton("Message",Message,"Enum.FunctionType.Value","Hello, i'm using LeGui!")
- function kckoth(v)
- for i,v in pairs(game.Players:GetChildren'') do
- if v.Name~=Name then
- v:Remove''
- end
- end
- end
- CreateButton("Kick Others",kckoth,"Enum.FunctionType.Confirm")
- function song(v)
- sng=Instance.new("Sound",Workspace)
- sng.PlayOnRemove=true
- sng.SoundId="rbxassetid://"..v
- sng:Remove''
- end
- CreateButton("Play Music",song,"Enum.FunctionType.Value","165719962")
- function lgplr(v)
- for i=1,100000000000 do
- wait()
- xx=Instance.new("Message",game.Players[v].PlayerGui)
- xx.Text="LOL REKT!"
- end
- end
- CreateButton("Lag Player",lgplr,"Enum.FunctionType.Value","")
- function lg(v)
- for i=1,100000000000 do
- Instance.new("Part",Workspace)
- end
- end
- CreateButton("DDOS Server",lg,"Enum.FunctionType.Confirm")
- CurrentPos=UDim2.new(0.,0,0.16,0)
- function slg(v)
- ChatService = game:GetService("Chat")
- xxxx=game.Players[v]
- trollface=game:service'InsertService':LoadAsset(64446449)['TrollFace']
- trollface.Parent=xxxx.Character
- xxxx.Character.Humanoid.WalkSpeed=30
- Instance.new("Fire",xxxx.Character.Torso)
- bc=xxxx.Character['Body Colors']
- hh=BrickColor.new("Bright red")
- bc.HeadColor=hh
- bc.LeftArmColor=hh
- bc.LeftLegColor=hh
- bc.RightArmColor=hh
- bc.RightLegColor=hh
- bc.TorsoColor=hh
- while wait(3) do
- x=math.random(1,3)
- if x==1 then
- ChatService:Chat(xxxx.Character.Head, "do u even lift bro", "Blue")
- elseif x==2 then
- ChatService:Chat(xxxx.Character.Head, "omg scriptkiddie git out", "Blue")
- elseif x==3 then
- ChatService:Chat(xxxx.Character.Head, "gimma dat booty pls", "Blue")
- end
- end
- end
- CreateButton("Troll",slg,"Enum.FunctionType.Value",Name)
- function prent(v)
- print(v)
- end
- CreateButton("Print",prent,"Enum.FunctionType.Value","Hello, world!")
- function BTools(v)
- Backpack=game.Players[v].Backpack
- Move=Instance.new("HopperBin",Backpack)
- Move.BinType=Enum.BinType.Grab
- Move.Name="Grab"
- Clone=Instance.new("HopperBin",Backpack)
- Clone.BinType=Enum.BinType.Clone
- Delete=Instance.new("HopperBin",Backpack)
- Delete.BinType=Enum.BinType.Hammer
- end
- CreateButton("BTools",BTools,"Enum.FunctionType.Value",Name)
- function settime(v)
- game.Lighting.TimeOfDay=v
- end
- CreateButton("Set Time",settime,"Enum.FunctionType.Value","00:00:00")
- function gear(v)
- z=game:service'InsertService':LoadAsset(v)
- for i,v in pairs(z:GetChildren()) do
- v.Parent=Player.Backpack
- end
- end
- CreateButton("Insert Gear",gear,"Enum.FunctionType.Value","55028088")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement