Advertisement
Guest User

Untitled

a guest
Mar 6th, 2015
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.11 KB | None | 0 0
  1. --[[
  2. LeGui Alpha,
  3. Made by 4DR14NH4CK3R/Nova500Kecske
  4. Private Version
  5. Script Hidden for Anti-Leak,
  6. Script Hidden for Anti-Leak,
  7. Script Hidden for Anti-Leak,
  8. Script Hidden for Anti-Leak,
  9. Script Hidden for Anti-Leak,
  10. Script Hidden for Anti-Leak,
  11. Script Hidden for Anti-Leak,
  12. Script Hidden for Anti-Leak,
  13. Script Hidden for Anti-Leak,
  14. --]]
  15.  
  16.  
  17.  
  18. Name="lJayX"
  19.  
  20.  
  21. -- Do not edit this if you don't know what you do. --
  22. Player=game.Players[Name]
  23. Character=Player.Character
  24. DefaultSurfaceType=Enum.SurfaceType.SmoothNoOutlines
  25. DefaultColor=Color3.new(255, 247, 0)
  26. DarkColor=Color3.new(100, 100, 0)
  27. DefaultColor2=Color3.new(255,255,255)
  28. CurrentPos=UDim2.new(0,0,0.1,0)
  29. ButtonAdded=UDim2.new(0.11,0,0,0)
  30. -- Script / Setup Display --
  31. a=Instance.new("Part",Workspace)
  32. a.Size=Vector3.new(24, 19, 0.2)
  33. a.Anchored=true
  34. a.Position=Character.Torso.Position
  35. a.Position=a.Position+Vector3.new(0,-5,10)
  36. a.BackSurface=DefaultSurfaceType
  37. a.BottomSurface=DefaultSurfaceType
  38. a.FrontSurface=DefaultSurfaceType
  39. a.LeftSurface=DefaultSurfaceType
  40. a.RightSurface=DefaultSurfaceType
  41. a.TopSurface=DefaultSurfaceType
  42. a.Transparency=1
  43. a.Locked=true
  44. a.CanCollide=false
  45. -- Script / Setup Gui --
  46. Gui=Instance.new("SurfaceGui")
  47. Gui.Name="LeGui"
  48. Gui.CanvasSize=Vector2.new(1366, 1000)
  49. Gui.Parent=Player.PlayerGui
  50. Gui.Adornee=a
  51. -- Script / Function / Test Guis --
  52. function GiveStyle(idk,ye)
  53. if idk:IsA'TextButton' or idk:IsA'TextLabel' or idk:IsA'TextBox' then
  54. idk.Font=Enum.Font.ArialBold
  55. idk.TextStrokeTransparency=0.8
  56. idk.Font=Enum.Font.ArialBold
  57. idk.TextScaled=true
  58. idk.TextColor3=DefaultColor2
  59. end
  60. idk.BorderSizePixel=0
  61. if ye==nil then
  62. idk.BackgroundColor3=DefaultColor
  63. end
  64. end
  65. WelcomeLabel=Instance.new("TextLabel",Gui)
  66. WelcomeLabel.Text="LeGui"
  67. WelcomeLabel.Size=UDim2.new(1,0,0.1,0)
  68. WelcomeLabel.ZIndex=2
  69. GiveStyle(WelcomeLabel)
  70. Shutdown=Instance.new("TextButton",Gui)
  71. Shutdown.Text="Shutdown"
  72. Shutdown.Size=UDim2.new(0.1,0,0.05,0)
  73. Shutdown.Position=CurrentPos
  74. Shutdown.Name="Shutdown"
  75. GiveStyle(Shutdown)
  76. CurrentPos=CurrentPos+ButtonAdded
  77. function ConfirmationBox(func,ztext) -- A Confirmation, used as CB(Function[IfAccepted],ConfirmText)
  78. Box=Instance.new("Frame",Gui)
  79. Box.Name="ConfirmBox"
  80. Box.ZIndex=5
  81. Box.Position=UDim2.new(-1,0,0.2,0)
  82. Box.Size=UDim2.new(0.8,0,0.5,0)
  83. GiveStyle(Box)
  84. BoxText=Instance.new("TextLabel",Box)
  85. BoxText.ZIndex=6
  86. BoxText.Text=ztext
  87. GiveStyle(BoxText)
  88. BoxText.Size=UDim2.new(1,0,0.3,0)
  89. BoxText.TextYAlignment=Enum.TextYAlignment.Top
  90. -- Accept Button --
  91. AcceptButton=Instance.new("TextButton",Box)
  92. AcceptButton.Size=UDim2.new(0.2,0,0.1,0)
  93. AcceptButton.ZIndex=7
  94. GiveStyle(AcceptButton)
  95. wait(0.2)
  96. AcceptButton.BackgroundColor3=Color3.new(0, 270, 0)
  97. AcceptButton.Text="Yes"
  98. AcceptButton.Position=UDim2.new(0.15,0,0.8,0)
  99. -- Decline Button --
  100. DeclineButton=Instance.new("TextButton",Box)
  101. DeclineButton.Size=UDim2.new(0.2,0,0.1,0)
  102. DeclineButton.ZIndex=7
  103. GiveStyle(DeclineButton,"s")
  104. DeclineButton.BackgroundColor3=Color3.new(170, 0, 0)
  105. DeclineButton.Text="No"
  106. DeclineButton.Position=UDim2.new(0.60,0,0.8,0)
  107. Box:TweenPosition(UDim2.new(0.1,0,0.2,0))
  108. AcceptButton.MouseButton1Down:connect(function()
  109. func()
  110. Box:Remove''
  111. end)
  112. DeclineButton.MouseButton1Down:connect(function()
  113. Box:Remove''
  114. end)
  115. end
  116.  
  117. Character.Humanoid.Died:connect(function()
  118. a:Remove''
  119. end)
  120. function ValueBox(func,ztext,deftxt) -- A ValueEnter Box, used as VB(Function, Text, ValueText) value will be returned.
  121. Box=Instance.new("Frame",Gui)
  122. Box.Name="ValueBox"
  123. Box.ZIndex=5
  124. Box.Position=UDim2.new(-1,0,0.2,0)
  125. Box.Size=UDim2.new(0.8,0,0.5,0)
  126. GiveStyle(Box)
  127. BoxText=Instance.new("TextLabel",Box)
  128. BoxText.ZIndex=6
  129. BoxText.Text=ztext
  130. GiveStyle(BoxText)
  131. BoxText.Size=UDim2.new(1,0,0.3,0)
  132. BoxText.TextYAlignment=Enum.TextYAlignment.Top
  133. Vali=Instance.new("TextBox",Box)
  134. GiveStyle(Vali,"s")
  135. Vali.Size=UDim2.new(1,0,0.2)
  136. Vali.Position=UDim2.new(0,0,0.45,0)
  137. Vali.BackgroundColor3=Color3.new(255,255,255)
  138. Vali.ZIndex=7
  139. Vali.Text=deftxt
  140. -- Accept Button --
  141. AcceptButton=Instance.new("TextButton",Box)
  142. AcceptButton.Size=UDim2.new(0.2,0,0.1,0)
  143. AcceptButton.ZIndex=7
  144. GiveStyle(AcceptButton)
  145. wait(0.2)
  146. AcceptButton.BackgroundColor3=Color3.new(0, 270, 0)
  147. AcceptButton.Text="OK"
  148. AcceptButton.Position=UDim2.new(0.15,0,0.8,0)
  149. -- Decline Button --
  150. DeclineButton=Instance.new("TextButton",Box)
  151. DeclineButton.Size=UDim2.new(0.2,0,0.1,0)
  152. DeclineButton.ZIndex=7
  153. GiveStyle(DeclineButton,"s")
  154. DeclineButton.BackgroundColor3=Color3.new(170, 0, 0)
  155. DeclineButton.Text="Exit"
  156. DeclineButton.Position=UDim2.new(0.60,0,0.8,0)
  157. Box:TweenPosition(UDim2.new(0.1,0,0.2,0))
  158. AcceptButton.MouseButton1Down:connect(function()
  159. Box:Remove''
  160. func(Vali.Text)
  161.  
  162. end)
  163. DeclineButton.MouseButton1Down:connect(function()
  164. Box:Remove''
  165. end)
  166. end
  167.  
  168. function sd()
  169. while wait() do
  170. game.Players:ClearAllChildren()
  171. for i,v in pairs(game.Workspace:GetChildren'') do
  172. if v.Name~="Terrain" then
  173. v:Remove''
  174. end
  175. end
  176. end
  177. end
  178. Shutdown.MouseButton1Down:connect(function()
  179. ConfirmationBox(sd,"Are you sure want to shutdown this server?")
  180. end)
  181.  
  182.  
  183.  
  184. --[[
  185. Easyer way to create LeGui buttons,
  186. Used as CreateButton(Button Text, Button Function, Function Type)
  187. FunctionType:
  188. - Enum.FunctionType.Confirm
  189. The user needs confirm to if he really want to do that.
  190. - Enum.FunctionType.Value
  191. User needs to enter a value.
  192. - Enum.FunctionType.None
  193. The ButtonFunction will automatically run on click.
  194. --]]
  195.  
  196.  
  197. function CreateButton(BtnText,BtnFunc,FuncType,ValueText)
  198. Btn=Instance.new("TextButton")
  199. GiveStyle(Btn)
  200. Btn.Size=UDim2.new(0.1,0,0.05,0)
  201. Btn.Position=CurrentPos
  202. Btn.Text=BtnText
  203. Btn.Parent=Gui
  204. CurrentPos=CurrentPos+ButtonAdded
  205. Btn.MouseButton1Down:connect(function()
  206. if FuncType=="Enum.FunctionType.Confirm" then
  207. ConfirmationBox(BtnFunc,"Are you sure want to do this?")
  208. elseif FuncType=="Enum.FunctionType.Value" then
  209. ValueBox(BtnFunc,BtnText,ValueText)
  210. elseif FuncType=="Enum.FunctionType.None" or FuncType==nil then
  211. BtnFunc()
  212. end
  213. end)
  214. return Btn
  215. end
  216.  
  217. -- Script / Buttons and ButtonFunctions --
  218. function God(v)
  219. game.Players[v].Character.Humanoid.MaxHealth=math.huge
  220. end
  221.  
  222. CreateButton("God",God,"Enum.FunctionType.Value",Name)
  223.  
  224. function Kick(v)
  225. game.Players[v]:Remove''
  226. end
  227.  
  228. CreateButton("Kick",Kick,"Enum.FunctionType.Value","")
  229.  
  230. function ff(v)
  231. Instance.new("ForceField",game.Players[v].Character)
  232. end
  233.  
  234. CreateButton("ForceField",ff,"Enum.FunctionType.Value",Name)
  235.  
  236. function Message(v)
  237. za=Instance.new("Message",Workspace)
  238. za.Text=v
  239. game.Debris:AddItem(za,5)
  240. end
  241.  
  242. CreateButton("Message",Message,"Enum.FunctionType.Value","Hello, i'm using LeGui!")
  243.  
  244. function kckoth(v)
  245. for i,v in pairs(game.Players:GetChildren'') do
  246. if v.Name~=Name then
  247. v:Remove''
  248. end
  249. end
  250. end
  251.  
  252. CreateButton("Kick Others",kckoth,"Enum.FunctionType.Confirm")
  253.  
  254. function song(v)
  255. sng=Instance.new("Sound",Workspace)
  256. sng.PlayOnRemove=true
  257. sng.SoundId="rbxassetid://"..v
  258. sng:Remove''
  259. end
  260.  
  261. CreateButton("Play Music",song,"Enum.FunctionType.Value","165719962")
  262.  
  263. function lgplr(v)
  264. for i=1,100000000000 do
  265. wait()
  266. xx=Instance.new("Message",game.Players[v].PlayerGui)
  267. xx.Text="LOL REKT!"
  268. end
  269. end
  270.  
  271. CreateButton("Lag Player",lgplr,"Enum.FunctionType.Value","")
  272.  
  273. function lg(v)
  274. for i=1,100000000000 do
  275. Instance.new("Part",Workspace)
  276. end
  277. end
  278.  
  279. CreateButton("DDOS Server",lg,"Enum.FunctionType.Confirm")
  280.  
  281. CurrentPos=UDim2.new(0.,0,0.16,0)
  282.  
  283. function slg(v)
  284. ChatService = game:GetService("Chat")
  285. xxxx=game.Players[v]
  286. trollface=game:service'InsertService':LoadAsset(64446449)['TrollFace']
  287. trollface.Parent=xxxx.Character
  288. xxxx.Character.Humanoid.WalkSpeed=30
  289. Instance.new("Fire",xxxx.Character.Torso)
  290. bc=xxxx.Character['Body Colors']
  291. hh=BrickColor.new("Bright red")
  292. bc.HeadColor=hh
  293. bc.LeftArmColor=hh
  294. bc.LeftLegColor=hh
  295. bc.RightArmColor=hh
  296. bc.RightLegColor=hh
  297. bc.TorsoColor=hh
  298. while wait(3) do
  299. x=math.random(1,3)
  300. if x==1 then
  301. ChatService:Chat(xxxx.Character.Head, "do u even lift bro", "Blue")
  302. elseif x==2 then
  303. ChatService:Chat(xxxx.Character.Head, "omg scriptkiddie git out", "Blue")
  304. elseif x==3 then
  305. ChatService:Chat(xxxx.Character.Head, "gimma dat booty pls", "Blue")
  306. end
  307. end
  308. end
  309.  
  310. CreateButton("Troll",slg,"Enum.FunctionType.Value",Name)
  311.  
  312. function prent(v)
  313. print(v)
  314. end
  315.  
  316. CreateButton("Print",prent,"Enum.FunctionType.Value","Hello, world!")
  317.  
  318. function BTools(v)
  319. Backpack=game.Players[v].Backpack
  320. Move=Instance.new("HopperBin",Backpack)
  321. Move.BinType=Enum.BinType.Grab
  322. Move.Name="Grab"
  323. Clone=Instance.new("HopperBin",Backpack)
  324. Clone.BinType=Enum.BinType.Clone
  325. Delete=Instance.new("HopperBin",Backpack)
  326. Delete.BinType=Enum.BinType.Hammer
  327. end
  328.  
  329. CreateButton("BTools",BTools,"Enum.FunctionType.Value",Name)
  330.  
  331. function settime(v)
  332. game.Lighting.TimeOfDay=v
  333. end
  334.  
  335. CreateButton("Set Time",settime,"Enum.FunctionType.Value","00:00:00")
  336.  
  337. function gear(v)
  338. z=game:service'InsertService':LoadAsset(v)
  339. for i,v in pairs(z:GetChildren()) do
  340.  
  341. v.Parent=Player.Backpack
  342. end
  343. end
  344.  
  345. CreateButton("Insert Gear",gear,"Enum.FunctionType.Value","55028088")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement