HiDad910

A V.2 GUI

Feb 15th, 2021 (edited)
202
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local Frame = Instance.new("Frame")
  8. local TextLabel = Instance.new("TextLabel")
  9. local TextButton1 = Instance.new("TextButton")
  10. local TextBox1 = Instance.new("TextBox")
  11. local TextButton2 = Instance.new("TextButton")
  12. local TextBox2 = Instance.new("TextBox")
  13. local TextButton3 = Instance.new("TextButton")
  14. local TextBox3 = Instance.new("TextBox")
  15. local TextBox4 = Instance.new("TextLabel")
  16. local TextButton4 = Instance.new("TextButton")
  17.  
  18. --Properties:
  19. _G.Frame = Frame.Visible
  20. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  21. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  22.  
  23. Frame.Parent = ScreenGui
  24. Frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  25. Frame.Position = UDim2.new(0.214480877, 0, 0.125, 0)
  26. Frame.Size = UDim2.new(0, 165, 0, 456)
  27. Frame.Active = true
  28. Frame.Draggable = true
  29.  
  30.  
  31. TextLabel.Parent = Frame
  32. TextLabel.BackgroundColor3 = Color3.fromRGB(218, 31, 31)
  33. TextLabel.Position = UDim2.new(0, 0, 0.899131179, 0)
  34. TextLabel.Size = UDim2.new(0, 165, 0, 50)
  35. TextLabel.Font = Enum.Font.SourceSans
  36. TextLabel.Text = "A V.2"
  37. TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  38. TextLabel.TextSize = 14.000
  39. TextLabel.Draggable = true
  40.  
  41.  
  42. TextButton1.Name = "TextButton1"
  43. TextButton1.Parent = Frame
  44. TextButton1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  45. TextButton1.Position = UDim2.new(0, 0, 0.124906719, 0)
  46. TextButton1.Size = UDim2.new(0, 165, 0, 50)
  47. TextButton1.Font = Enum.Font.SourceSans
  48. TextButton1.Text = "Set JumpPower"
  49. TextButton1.TextColor3 = Color3.fromRGB(0, 0, 0)
  50. TextButton1.TextSize = 14.000
  51. TextButton1.MouseButton1Down:Connect(function()
  52. game.Players.LocalPlayer.Character.Humanoid.JumpPower = TextBox1.Text
  53. end)
  54.  
  55. TextBox1.Name = "TextBox1"
  56. TextBox1.Parent = Frame
  57. TextBox1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  58. TextBox1.Position = UDim2.new(0, 0, 0.0131578948, 0)
  59. TextBox1.Size = UDim2.new(0, 165, 0, 50)
  60. TextBox1.Font = Enum.Font.SourceSans
  61. TextBox1.Text = "JumpPower here"
  62. TextBox1.TextColor3 = Color3.fromRGB(0, 0, 0)
  63. TextBox1.TextSize = 14.000
  64.  
  65. TextButton2.Name = "TextButton2"
  66. TextButton2.Parent = Frame
  67. TextButton2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  68. TextButton2.Position = UDim2.new(0, 0, 0.345248938, 0)
  69. TextButton2.Size = UDim2.new(0, 165, 0, 50)
  70. TextButton2.Font = Enum.Font.SourceSans
  71. TextButton2.Text = "Set WalkSpeed"
  72. TextButton2.TextColor3 = Color3.fromRGB(0, 0, 0)
  73. TextButton2.TextSize = 14.000
  74. TextButton2.MouseButton1Down:Connect(function()
  75. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = TextBox2.Text
  76. end)
  77.  
  78.  
  79. TextBox2.Name = "TextBox2"
  80. TextBox2.Parent = Frame
  81. TextBox2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  82. TextBox2.Position = UDim2.new(0, 0, 0.234904796, 0)
  83. TextBox2.Size = UDim2.new(0, 165, 0, 50)
  84. TextBox2.Font = Enum.Font.SourceSans
  85. TextBox2.Text = "-- WakSpeed here"
  86. TextBox2.TextColor3 = Color3.fromRGB(0, 0, 0)
  87. TextBox2.TextSize = 14.000
  88.  
  89.  
  90. TextButton3.Name = "TextButton3"
  91. TextButton3.Parent = Frame
  92. TextButton3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  93. TextButton3.Position = UDim2.new(0, 0, 0.567281723, 0)
  94. TextButton3.Size = UDim2.new(0, 165, 0, 50)
  95. TextButton3.Font = Enum.Font.SourceSans
  96. TextButton3.Text = "Set HipHeight"
  97. TextButton3.TextColor3 = Color3.fromRGB(0, 0, 0)
  98. TextButton3.TextSize = 14.000
  99. TextButton3.MouseButton1Down:Connect(function()
  100. game.Players.LocalPlayer.Character.Humanoid.HipHeight = TextBox3.Text
  101. end)
  102.  
  103. TextBox3.Name = "TextBox3"
  104. TextBox3.Parent = Frame
  105. TextBox3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  106. TextBox3.Position = UDim2.new(0, 0, 0.456164867, 0)
  107. TextBox3.Size = UDim2.new(0, 165, 0, 50)
  108. TextBox3.Font = Enum.Font.SourceSans
  109. TextBox3.Text = "-- HipHeight here"
  110. TextBox3.TextColor3 = Color3.fromRGB(0, 0, 0)
  111. TextBox3.TextSize = 14.000
  112.  
  113. TextBox4.Name = "TextBox4"
  114. TextBox4.Parent = Frame
  115. TextBox4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  116. TextBox4.Position = UDim2.new(0, 0, 0.678531528, 0)
  117. TextBox4.Size = UDim2.new(0, 165, 0, 50)
  118. TextBox4.Font = Enum.Font.SourceSans
  119. TextBox4.Text = "false"
  120. TextBox4.TextColor3 = Color3.fromRGB(0, 0, 0)
  121. TextBox4.TextSize = 14.000
  122.  
  123.  
  124. TextButton4.Name = "TextButton4"
  125. TextButton4.Parent = Frame
  126. TextButton4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  127. TextButton4.Position = UDim2.new(0, 0, 0.789048135, 0)
  128. TextButton4.Size = UDim2.new(0, 165, 0, 50)
  129. TextButton4.Font = Enum.Font.SourceSans
  130. TextButton4.Text = "Toggle Noclip"
  131. TextButton4.TextColor3 = Color3.fromRGB(0, 0, 0)
  132. TextButton4.TextSize = 14.000
  133. noclip = false
  134. game:GetService('RunService').Stepped:Connect (function()
  135. if noclip then
  136. TextBox4.Text = "true"
  137. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  138. end
  139. end)
  140. TextButton4.MouseButton1Down:Connect (function()
  141. noclip = not noclip
  142. if TextBox4.Text == "true" then
  143. TextBox4.Text = "false"
  144. game.Players.LocalPlayer.Character.Humanoid:ChangeState(2)
  145. end
  146. end)
  147.  
  148.  
  149. local StarterGui = game:GetService("StarterGui")
  150. StarterGui:SetCore("ChatMakeSystemMessage", {
  151. Text = "Hello, Thank you for using my GUI!";
  152. Color = Color3.fromRGB(255,0,0);
  153. Font = Enum.Font.SourceSansBold;TextSize = 20
  154. })
  155.  
  156. local StarterGui = game:GetService("StarterGui")
  157. StarterGui:SetCore("ChatMakeSystemMessage", {
  158. Text = "Press V to toggle the gui on and off";
  159. Color = Color3.fromRGB(222,102,0);
  160. Font = Enum.Font.SourceSansBold;TextSize = 15
  161. })
  162.  
  163. local toggle = true -- false is Off; true is On
  164.  
  165.  
  166. function onKeyPress(actionName, userInputState, inputObject)
  167. if userInputState == Enum.UserInputState.Begin then
  168.  
  169. if toggle == false then
  170. toggle = true
  171. Frame.Visible = true -- INSERT Making GUI Visible
  172. else
  173. toggle = false
  174. Frame.Visible = false -- INSERT making GUI Invisible
  175. end
  176. end
  177. end
  178.  
  179. game.ContextActionService:BindAction("keyPress", onKeyPress, false, Enum.KeyCode.V)
RAW Paste Data Copied