Advertisement
kob123678

Exploit GUI

Apr 2nd, 2024 (edited)
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.42 KB | None | 0 0
  1. -- made By ChatGPT
  2. -- Create a ScreenGui to hold the GUI elements
  3. local gui = Instance.new("ScreenGui")
  4. gui.Parent = game.CoreGui
  5. gui.Name = "WalkJumpChanger"
  6.  
  7. -- Create a Frame to contain the GUI elements
  8. local frame = Instance.new("Frame")
  9. frame.Parent = gui
  10. frame.BackgroundColor3 = Color3.new(0, 0, 0)
  11. frame.BackgroundTransparency = 0.5
  12. frame.Position = UDim2.new(0.5, -100, 0.5, -75)
  13. frame.Size = UDim2.new(0, 200, 0, 150)
  14. frame.Active = true
  15. frame.Draggable = true
  16.  
  17. -- Create a TextLabel for walkspeed instructions
  18. local walkspeedLabel = Instance.new("TextLabel")
  19. walkspeedLabel.Parent = frame
  20. walkspeedLabel.Size = UDim2.new(1, 0, 0.25, 0)
  21. walkspeedLabel.BackgroundTransparency = 1
  22. walkspeedLabel.Text = "Enter Walkspeed:"
  23. walkspeedLabel.TextScaled = true
  24.  
  25. -- Create a TextBox for walkspeed input
  26. local walkspeedTextBox = Instance.new("TextBox")
  27. walkspeedTextBox.Parent = frame
  28. walkspeedTextBox.Size = UDim2.new(0.8, 0, 0.15, 0)
  29. walkspeedTextBox.Position = UDim2.new(0.1, 0, 0.25, 0)
  30. walkspeedTextBox.TextScaled = true
  31. walkspeedTextBox.PlaceholderText = "Enter Walkspeed..."
  32. walkspeedTextBox.ClearTextOnFocus = true
  33.  
  34. -- Create a TextButton to apply walkspeed
  35. local applyWalkspeedButton = Instance.new("TextButton")
  36. applyWalkspeedButton.Parent = frame
  37. applyWalkspeedButton.Size = UDim2.new(0.6, 0, 0.1, 0)
  38. applyWalkspeedButton.Position = UDim2.new(0.2, 0, 0.4, 0)
  39. applyWalkspeedButton.BackgroundColor3 = Color3.new(0, 1, 0)
  40. applyWalkspeedButton.Text = "Apply Walkspeed"
  41. applyWalkspeedButton.TextScaled = true
  42.  
  43. -- Create a TextLabel for jump power instructions
  44. local jumpPowerLabel = Instance.new("TextLabel")
  45. jumpPowerLabel.Parent = frame
  46. jumpPowerLabel.Size = UDim2.new(1, 0, 0.25, 0)
  47. jumpPowerLabel.Position = UDim2.new(0, 0, 0.55, 0)
  48. jumpPowerLabel.BackgroundTransparency = 1
  49. jumpPowerLabel.Text = "Enter Jump Power:"
  50. jumpPowerLabel.TextScaled = true
  51.  
  52. -- Create a TextBox for jump power input
  53. local jumpPowerTextBox = Instance.new("TextBox")
  54. jumpPowerTextBox.Parent = frame
  55. jumpPowerTextBox.Size = UDim2.new(0.8, 0, 0.15, 0)
  56. jumpPowerTextBox.Position = UDim2.new(0.1, 0, 0.7, 0)
  57. jumpPowerTextBox.TextScaled = true
  58. jumpPowerTextBox.PlaceholderText = "Enter Jump Power..."
  59. jumpPowerTextBox.ClearTextOnFocus = true
  60.  
  61. -- Create a TextButton to apply jump power
  62. local applyJumpPowerButton = Instance.new("TextButton")
  63. applyJumpPowerButton.Parent = frame
  64. applyJumpPowerButton.Size = UDim2.new(0.6, 0, 0.1, 0)
  65. applyJumpPowerButton.Position = UDim2.new(0.2, 0, 0.85, 0)
  66. applyJumpPowerButton.BackgroundColor3 = Color3.new(0, 1, 0)
  67. applyJumpPowerButton.Text = "Apply Jump Power"
  68. applyJumpPowerButton.TextScaled = true
  69.  
  70. -- Function to change the walkspeed when the button is clicked
  71. applyWalkspeedButton.MouseButton1Click:Connect(function()
  72. local walkspeed = tonumber(walkspeedTextBox.Text)
  73. if walkspeed then
  74. for _, player in ipairs(game.Players:GetPlayers()) do
  75. player.Character.Humanoid.WalkSpeed = walkspeed
  76. end
  77. else
  78. print("Invalid walkspeed entered.")
  79. end
  80. end)
  81.  
  82. -- Function to change the jump power when the button is clicked
  83. applyJumpPowerButton.MouseButton1Click:Connect(function()
  84. local jumpPower = tonumber(jumpPowerTextBox.Text)
  85. if jumpPower then
  86. for _, player in ipairs(game.Players:GetPlayers()) do
  87. player.Character.Humanoid.JumpPower = jumpPower
  88. end
  89. else
  90. print("Invalid jump power entered.")
  91. end
  92. end)
  93.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement