Advertisement
Guest User

LV Combat Gui

a guest
Jan 18th, 2018
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.50 KB | None | 0 0
  1. local plr = game.Players.LocalPlayer
  2. local mouse = plr:GetMouse()
  3.  
  4. mouse.KeyDown:connect(function(key)
  5. if key == "z" then
  6. game.ReplicatedStorage.Events.ToolRequests:FireServer("MP5", "CellPhone")
  7. elseif key == "x" then
  8. game.ReplicatedStorage.Events.ToolRequests:FireServer("FAMAS", "CellPhone")
  9. elseif key == "c" then
  10. game.ReplicatedStorage.Events.MedicineGiver:FireServer("Medikit", true)
  11. elseif key == "l" then
  12. game.ReplicatedStorage.Events.MedicineGiver:FireServer("Amphetamines", true)
  13. elseif key == "p" then
  14. game.ReplicatedStorage.Events.MedicineGiver:FireServer("Morphine", true)
  15. end
  16. end)
  17.  
  18. local ScreenGui = Instance.new("ScreenGui", game.CoreGui)
  19. ScreenGui.Name = "Robbing GUI"
  20. ScreenGui.ResetOnSpawn = false
  21.  
  22. local Frame = Instance.new("Frame", ScreenGui)
  23. Frame.Active = true
  24. Frame.BackgroundColor3 = Color3.new(31/255, 31/255, 31/255)
  25. Frame.BackgroundTransparency = 0.5
  26. Frame.BorderSizePixel = 0
  27. Frame.Position = UDim2.new(0, 10, 0.5, -100)
  28. Frame.Size = UDim2.new(0, 140, 0, 200)
  29. Frame.Draggable = true
  30.  
  31. local Folder = Instance.new("Folder", ScreenGui)
  32.  
  33. local Example = Instance.new("TextButton", Folder)
  34. Example.BackgroundColor3 = Color3.new(255/255, 255/255, 255/255)
  35. Example.BackgroundTransparency = 0.1
  36. Example.BorderSizePixel = 0
  37. Example.Size = UDim2.new(1, 0, 0, 20)
  38. Example.Visible = false
  39. Example.Font = Enum.Font.SourceSans
  40. Example.FontSize = Enum.FontSize.Size14
  41.  
  42. local Value = Instance.new("BoolValue", Example)
  43. Value.Name = "Value"
  44.  
  45. local Title = Instance.new("TextLabel", Frame)
  46. Title.BackgroundColor3 = Color3.new(255/255, 255/255, 255/255)
  47. Title.BackgroundTransparency = 0.1
  48. Title.BorderSizePixel = 0
  49. Title.Name = "Title"
  50. Title.Size = UDim2.new(1, 0, 0, 20)
  51. Title.Font = Enum.Font.SourceSansBold
  52. Title.FontSize = Enum.FontSize.Size14
  53. Title.Text = "LV Combat GUI"
  54.  
  55. local Buttons = Instance.new("ScrollingFrame", Frame)
  56. Buttons.BackgroundColor3 = Color3.new(0, 0, 0)
  57. Buttons.BackgroundTransparency = 0.9
  58. Buttons.BorderSizePixel = 0
  59. Buttons.Name = "Buttons"
  60. Buttons.Position = UDim2.new(0, 5, 1, -175)
  61. Buttons.Size = UDim2.new(0, 130, 0, 170)
  62. Buttons.BottomImage = ""
  63. Buttons.ScrollBarThickness = 0
  64. Buttons.TopImage = ""
  65.  
  66. -- Functions
  67.  
  68. local amount = 0
  69. local bamount = 0
  70. local bamount2 = 0
  71.  
  72.  
  73. CreateButton = function(name, text, parent)
  74. local Button = Instance.new("TextButton", parent)
  75. Button.BackgroundColor3 = Color3.new(255/255, 255/255, 255/255)
  76. Button.BackgroundTransparency = 0.1
  77. Button.BorderSizePixel = 0
  78. Button.Name = name
  79. Button.Position = UDim2.new(0, 0, 0, 20*bamount)
  80. Button.Size = UDim2.new(1, 0, 0, 20)
  81. Button.Visible = true
  82. Button.Font = Enum.Font.SourceSans
  83. Button.FontSize = Enum.FontSize.Size14
  84. Button.Text = text
  85. bamount = bamount + 1
  86. return Button
  87. end
  88.  
  89. -- Buttons
  90.  
  91. local GetMP5 = CreateButton("GetMP5", "Purchase MP5 (z)", Buttons)
  92. local GetFAMAS = CreateButton("GetFAMAS", "Purchase FAMAS (x)", Buttons)
  93. local Amps = CreateButton("Amps", "Get Amphes (l)", Buttons)
  94. local Morp = CreateButton("Morp", "Get Morphine (p)", Buttons)
  95. local Medk = CreateButton("Medk", "Get Meds (c)", Buttons)
  96. local Sports = CreateButton("Sports", "Get Sports Car", Buttons)
  97. local CarBomb = CreateButton("CarBomb", "Buy Car Bomb", Buttons)
  98. local Bail = CreateButton("Bail", "Quick Bail (m)", Buttons)
  99.  
  100. GetMP5.MouseButton1Down:connect(function()
  101. game.ReplicatedStorage.Events.ToolRequests:FireServer("MP5", "CellPhone")
  102. end)
  103.  
  104. GetFAMAS.MouseButton1Down:connect(function()
  105. game.ReplicatedStorage.Events.ToolRequests:FireServer("FAMAS", "CellPhone")
  106. end)
  107.  
  108. Amps.MouseButton1Down:connect(function()
  109. game.ReplicatedStorage.Events.MedicineGiver:FireServer("Amphetamines", true)
  110. end)
  111.  
  112.  
  113. Morp.MouseButton1Down:connect(function()
  114. game.ReplicatedStorage.Events.MedicineGiver:FireServer("Morphine", true)
  115. end)
  116.  
  117. Meds.MouseButton1Down:connect(function()
  118. game.ReplicatedStorage.Events.MedicineGiver:FireServer("Medikit", true)
  119. end)
  120.  
  121. Sports.MouseButton1Down:connect(function()
  122. game.ReplicatedStorage.Events.CarShopGiver:FireServer(false, "Sports Car")
  123. end)
  124.  
  125. Bail.MouseButton1Down:connect(function()
  126. game.ReplicatedStorage.Events.JailTimeRequest:FireServer(game.Player.LocalPlayer.UserId, "Unarrest")
  127. end)
  128.  
  129.  
  130. CarBomb.MouseButton1Down:connect(function()
  131. game.Workspace.BombShop.Needed.Garage.Position = game.Players.LocalPlayer.Character.Torso.Position
  132. end)
  133.  
  134. game:GetService("RunService").RenderStepped:connect(function()
  135. game.Players.LocalPlayer.PlayerGui:FindFirstChild("AntiSpeedHack").Disabled = true
  136. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement