Advertisement
HiDad910

A V.2 GUI

Feb 15th, 2021 (edited)
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.93 KB | None | 0 0
  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. local TextBox5 = Instance.new("TextBox")
  18. local TextButton5 = Instance.new("TextButton")
  19.  
  20. --Properties:
  21.  
  22. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  23. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  24.  
  25. Frame.Parent = ScreenGui
  26. Frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  27. Frame.Position = UDim2.new(0.214480877, 0, 0.125, 0)
  28. Frame.Size = UDim2.new(0, 165, 0, 526)
  29. Frame.Active = true
  30. Frame.Draggable = true
  31.  
  32.  
  33. TextLabel.Parent = Frame
  34. TextLabel.BackgroundColor3 = Color3.fromRGB(218, 31, 31)
  35. TextLabel.Position = UDim2.new(0, 0, 0.999131179, 0)
  36. TextLabel.Size = UDim2.new(0, 165, 0, 50)
  37. TextLabel.Font = Enum.Font.SourceSans
  38. TextLabel.Text = "A V.2"
  39. TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  40. TextLabel.TextSize = 14.000
  41. TextLabel.Draggable = true
  42.  
  43.  
  44. TextButton1.Name = "TextButton1"
  45. TextButton1.Parent = Frame
  46. TextButton1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  47. TextButton1.Position = UDim2.new(0, 0, 0.110536719, 0)
  48. TextButton1.Size = UDim2.new(0, 165, 0, 50)
  49. TextButton1.Font = Enum.Font.SourceSans
  50. TextButton1.Text = "Set JumpPower"
  51. TextButton1.TextColor3 = Color3.fromRGB(0, 0, 0)
  52. TextButton1.TextSize = 14.000
  53. TextButton1.MouseButton1Down:Connect(function()
  54. game.Players.LocalPlayer.Character.Humanoid.JumpPower = TextBox1.Text
  55. end)
  56.  
  57. TextBox1.Name = "TextBox1"
  58. TextBox1.Parent = Frame
  59. TextBox1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  60. TextBox1.Position = UDim2.new(0, 0, 0.0131578948, 0)
  61. TextBox1.Size = UDim2.new(0, 165, 0, 50)
  62. TextBox1.Font = Enum.Font.SourceSans
  63. TextBox1.Text = "JumpPower here"
  64. TextBox1.TextColor3 = Color3.fromRGB(0, 0, 0)
  65. TextBox1.TextSize = 14.000
  66.  
  67. TextButton2.Name = "TextButton2"
  68. TextButton2.Parent = Frame
  69. TextButton2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  70. TextButton2.Position = UDim2.new(0, 0, 0.29288938, 0)
  71. TextButton2.Size = UDim2.new(0, 165, 0, 50)
  72. TextButton2.Font = Enum.Font.SourceSans
  73. TextButton2.Text = "Set WalkSpeed"
  74. TextButton2.TextColor3 = Color3.fromRGB(0, 0, 0)
  75. TextButton2.TextSize = 14.000
  76. TextButton2.MouseButton1Down:Connect(function()
  77. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = TextBox2.Text
  78. end)
  79.  
  80.  
  81. TextBox2.Name = "TextBox2"
  82. TextBox2.Parent = Frame
  83. TextBox2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  84. TextBox2.Position = UDim2.new(0, 0, 0.201904796, 0)
  85. TextBox2.Size = UDim2.new(0, 165, 0, 50)
  86. TextBox2.Font = Enum.Font.SourceSans
  87. TextBox2.Text = "-- WakSpeed here"
  88. TextBox2.TextColor3 = Color3.fromRGB(0, 0, 0)
  89. TextBox2.TextSize = 14.000
  90.  
  91.  
  92. TextButton3.Name = "TextButton3"
  93. TextButton3.Parent = Frame
  94. TextButton3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  95. TextButton3.Position = UDim2.new(0, 0, 0.479781723, 0)
  96. TextButton3.Size = UDim2.new(0, 165, 0, 50)
  97. TextButton3.Font = Enum.Font.SourceSans
  98. TextButton3.Text = "Set HipHeight"
  99. TextButton3.TextColor3 = Color3.fromRGB(0, 0, 0)
  100. TextButton3.TextSize = 14.000
  101. TextButton3.MouseButton1Down:Connect(function()
  102. game.Players.LocalPlayer.Character.Humanoid.HipHeight = TextBox3.Text
  103. end)
  104.  
  105. TextBox3.Name = "TextBox3"
  106. TextBox3.Parent = Frame
  107. TextBox3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  108. TextBox3.Position = UDim2.new(0, 0, 0.390164867, 0)
  109. TextBox3.Size = UDim2.new(0, 165, 0, 50)
  110. TextBox3.Font = Enum.Font.SourceSans
  111. TextBox3.Text = "-- HipHeight here"
  112. TextBox3.TextColor3 = Color3.fromRGB(0, 0, 0)
  113. TextBox3.TextSize = 14.000
  114.  
  115. TextBox4.Name = "TextBox4"
  116. TextBox4.Parent = Frame
  117. TextBox4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  118. TextBox4.Position = UDim2.new(0, 0, 0.575531528, 0)
  119. TextBox4.Size = UDim2.new(0, 165, 0, 50)
  120. TextBox4.Font = Enum.Font.SourceSans
  121. TextBox4.Text = "false"
  122. TextBox4.TextColor3 = Color3.fromRGB(0, 0, 0)
  123. TextBox4.TextSize = 14.000
  124.  
  125.  
  126. TextButton4.Name = "TextButton4"
  127. TextButton4.Parent = Frame
  128. TextButton4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  129. TextButton4.Position = UDim2.new(0, 0, 0.667048135, 0)
  130. TextButton4.Size = UDim2.new(0, 165, 0, 50)
  131. TextButton4.Font = Enum.Font.SourceSans
  132. TextButton4.Text = "Toggle Noclip"
  133. TextButton4.TextColor3 = Color3.fromRGB(0, 0, 0)
  134. TextButton4.TextSize = 14.000
  135. noclip = false
  136. game:GetService('RunService').Stepped:Connect (function()
  137. if noclip then
  138. TextBox4.Text = "true"
  139. TextBox4.BackgroundColor3 = Color3.new(0,255,0)
  140. game.Players.LocalPlayer.Character.Head.CanCollide = false
  141. game.Players.LocalPlayer.Character.Torso.CanCollide = false
  142. end
  143. end)
  144. TextButton4.MouseButton1Down:Connect (function()
  145. noclip = not noclip
  146. if TextBox4.Text == "true" then
  147. TextBox4.Text = "false"
  148. TextBox4.BackgroundColor3 = Color3.new(255,0,0)
  149. game.Players.LocalPlayer.Character.Head.CanCollide = true
  150. game.Players.LocalPlayer.Character.Torso.CanCollide = true
  151. end
  152. end)
  153.  
  154. TextBox5.Name = "TextBox5"
  155. TextBox5.Parent = Frame
  156. TextBox5.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  157. TextBox5.Position = UDim2.new(0, 0, 0.765164867, 0)
  158. TextBox5.Size = UDim2.new(0, 165, 0, 50)
  159. TextBox5.Font = Enum.Font.SourceSans
  160. TextBox5.Text = "-- Gravity here"
  161. TextBox5.TextColor3 = Color3.fromRGB(0, 0, 0)
  162. TextBox5.TextSize = 14.000
  163.  
  164. TextButton5.Name = "TextButton5"
  165. TextButton5.Parent = Frame
  166. TextButton5.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  167. TextButton5.Position = UDim2.new(0, 0, 0.859781723, 0)
  168. TextButton5.Size = UDim2.new(0, 165, 0, 50)
  169. TextButton5.Font = Enum.Font.SourceSans
  170. TextButton5.Text = "Set Gravity"
  171. TextButton5.TextColor3 = Color3.fromRGB(0, 0, 0)
  172. TextButton5.TextSize = 14.000
  173. TextButton5.MouseButton1Down:Connect(function()
  174. game.Workspace.Gravity = TextBox5.Text
  175. end)
  176.  
  177.  
  178.  
  179. local StarterGui = game:GetService("StarterGui")
  180. StarterGui:SetCore("ChatMakeSystemMessage", {
  181. Text = "Hello, Thank you for using my GUI!";
  182. Color = Color3.fromRGB(255,0,0);
  183. Font = Enum.Font.SourceSansBold;TextSize = 20
  184. })
  185.  
  186. local StarterGui = game:GetService("StarterGui")
  187. StarterGui:SetCore("ChatMakeSystemMessage", {
  188. Text = "Press V to toggle the gui on and off";
  189. Color = Color3.fromRGB(222,102,0);
  190. Font = Enum.Font.SourceSansBold;TextSize = 15
  191. })
  192.  
  193. local toggle = true -- false is Off; true is On
  194.  
  195.  
  196. function onKeyPress(actionName, userInputState, inputObject)
  197. if userInputState == Enum.UserInputState.Begin then
  198.  
  199. if toggle == false then
  200. toggle = true
  201. Frame.Visible = true -- INSERT Making GUI Visible
  202. else
  203. toggle = false
  204. Frame.Visible = false -- INSERT making GUI Invisible
  205. end
  206. end
  207. end
  208.  
  209. game.ContextActionService:BindAction("keyPress", onKeyPress, false, Enum.KeyCode.V)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement