Advertisement
Guest User

GUI underpaste

a guest
Dec 17th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.24 KB | None | 0 0
  1. -- Gui made by TheUniCoder, v3rm: lilbit
  2. -- Instances:
  3. local SpeedGui = Instance.new("ScreenGui")
  4. local SpeedFrame = Instance.new("Frame")
  5. local Start = Instance.new("TextButton")
  6. local Stop = Instance.new("TextButton")
  7. local Diamonds = Instance.new("TextButton")
  8. local Cred = Instance.new("TextLabel")
  9. local Cred2 = Instance.new("TextLabel")
  10. --Properties:
  11. SpeedGui.Name = "SpeedGui"
  12. SpeedGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  13.  
  14. SpeedFrame.Name = "SpeedFrame"
  15. SpeedFrame.Parent = SpeedGui
  16. SpeedFrame.BackgroundColor3 = Color3.new(0.890196, 0, 0)
  17. SpeedFrame.BorderColor3 = Color3.new(0, 0, 0)
  18. SpeedFrame.Position = UDim2.new(0.0680212006, 0, 0.235294119, 0)
  19. SpeedFrame.Size = UDim2.new(0, 176, 0, 212)
  20.  
  21. Start.Name = "Start"
  22. Start.Parent = SpeedFrame
  23. Start.BackgroundColor3 = Color3.new(0, 0, 0)
  24. Start.BorderColor3 = Color3.new(0, 0, 0)
  25. Start.Position = UDim2.new(0.0227272734, 0, 0.207547158, 0)
  26. Start.Size = UDim2.new(0, 168, 0, 50)
  27. Start.Font = Enum.Font.Fantasy
  28. Start.Text = "Start"
  29. Start.TextColor3 = Color3.new(1, 0, 0)
  30. Start.TextSize = 30
  31.  
  32. Stop.Name = "Stop"
  33. Stop.Parent = SpeedFrame
  34. Stop.BackgroundColor3 = Color3.new(0, 0, 0)
  35. Stop.BorderColor3 = Color3.new(0, 0, 0)
  36. Stop.Position = UDim2.new(0.0227272734, 0, 0.471698105, 0)
  37. Stop.Size = UDim2.new(0, 168, 0, 50)
  38. Stop.Font = Enum.Font.Fantasy
  39. Stop.Text = "Stop"
  40. Stop.TextColor3 = Color3.new(1, 0, 0)
  41. Stop.TextSize = 30
  42.  
  43. Diamonds.Name = "Diamonds"
  44. Diamonds.Parent = SpeedFrame
  45. Diamonds.BackgroundColor3 = Color3.new(0, 0, 0)
  46. Diamonds.BorderColor3 = Color3.new(0, 0, 0)
  47. Diamonds.Position = UDim2.new(0.0227272734, 0, 0.735849082, 0)
  48. Diamonds.Size = UDim2.new(0, 168, 0, 50)
  49. Diamonds.Font = Enum.Font.Fantasy
  50. Diamonds.Text = "Get 10k diamonds"
  51. Diamonds.TextColor3 = Color3.new(1, 0, 0)
  52. Diamonds.TextSize = 20
  53.  
  54. Cred.Name = "Cred"
  55. Cred.Parent = SpeedFrame
  56. Cred.BackgroundColor3 = Color3.new(0.890196, 0, 0)
  57. Cred.BorderColor3 = Color3.new(0.890196, 0, 0)
  58. Cred.Position = UDim2.new(0.0397727266, 0, 0.0283018835, 0)
  59. Cred.Size = UDim2.new(0, 162, 0, 18)
  60. Cred.Font = Enum.Font.Fantasy
  61. Cred.Text = "Thanks for using Speed"
  62. Cred.TextColor3 = Color3.new(0, 0, 0)
  63. Cred.TextSize = 14
  64.  
  65. Cred2.Name = "Cred2"
  66. Cred2.Parent = SpeedFrame
  67. Cred2.BackgroundColor3 = Color3.new(0.890196, 0, 0)
  68. Cred2.BorderColor3 = Color3.new(0.890196, 0, 0)
  69. Cred2.Position = UDim2.new(0.0397727266, 0, 0.113207549, 0)
  70. Cred2.Size = UDim2.new(0, 162, 0, 18)
  71. Cred2.Font = Enum.Font.Fantasy
  72. Cred2.Text = "sim 2 GUI by TheUniCoder"
  73. Cred2.TextColor3 = Color3.new(0, 0, 0)
  74. Cred2.TextSize = 14
  75.  
  76. plr = game.Players.LocalPlayer:GetMouse()
  77. mouse = plr.KeyDown:connect(function(key)
  78. if key == "p" then
  79. if SpeedFrame.Visible == true then
  80. SpeedFrame.Visible = false
  81. else
  82. SpeedFrame.Visible = true
  83. end
  84. end
  85. end)
  86.  
  87. SpeedFrame.Active = true
  88. SpeedFrame.Draggable = true
  89.  
  90. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  91.  
  92. -- Scripts:
  93. Start.MouseButton1Click:Connect(function()
  94. lyfe = true
  95. while lyfe == true do
  96. wait(0.5)
  97. game.ReplicatedStorage.SpeedHandler:FireServer("steps", 100)
  98. end
  99. end)
  100. Stop.MouseButton1Click:Connect(function()
  101. lyfe = false
  102. end)
  103. Diamonds.MouseButton1Click:Connect(function()
  104. game.ReplicatedStorage.SpeedHandler:FireServer("diamonds", 10000)
  105. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement