Robert312_9801

JumpPower and WalkSpeed gui

Jun 11th, 2022 (edited)
1,271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.75 KB | None | 0 0
  1. --Normal JumpPower - 50
  2. --Normal WalkSpeed - 16
  3.  
  4. -- Instances:
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local openclosegui = Instance.new("TextButton")
  8. local Frame = Instance.new("Frame")
  9. local speed = Instance.new("TextBox")
  10. local connectspeed = Instance.new("TextButton")
  11. local jump = Instance.new("TextBox")
  12. local TextButton = Instance.new("TextButton")
  13.  
  14. --Properties:
  15.  
  16. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  17.  
  18. openclosegui.Name = "openclosegui"
  19. openclosegui.Parent = ScreenGui
  20. openclosegui.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  21. openclosegui.Position = UDim2.new(0.949999988, 0, 0.91652751, 0)
  22. openclosegui.Size = UDim2.new(0, 62, 0, 50)
  23. openclosegui.Font = Enum.Font.SourceSans
  24. openclosegui.Text = "Open"
  25. openclosegui.TextColor3 = Color3.fromRGB(0, 0, 0)
  26. openclosegui.TextSize = 24.000
  27.  
  28. Frame.Parent = ScreenGui
  29. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  30. Frame.Position = UDim2.new(0.379838705, 0, 0.250417352, 0)
  31. Frame.Size = UDim2.new(0, 300, 0, 300)
  32. Frame.Visible = false
  33.  
  34. speed.Name = "speed"
  35. speed.Parent = Frame
  36. speed.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
  37. speed.Position = UDim2.new(0.496884435, 0, 0.00333333341, 0)
  38. speed.Size = UDim2.new(0, 150, 0, 150)
  39. speed.Font = Enum.Font.SourceSans
  40. speed.Text = ""
  41. speed.TextColor3 = Color3.fromRGB(0, 0, 0)
  42. speed.TextScaled = true
  43. speed.TextSize = 14.000
  44. speed.TextWrapped = true
  45.  
  46. connectspeed.Name = "connectspeed"
  47. connectspeed.Parent = Frame
  48. connectspeed.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  49. connectspeed.Position = UDim2.new(-0.00477666454, 0, 0.00249578431, 0)
  50. connectspeed.Size = UDim2.new(0, 150, 0, 150)
  51. connectspeed.Font = Enum.Font.SourceSans
  52. connectspeed.Text = "Connect"
  53. connectspeed.TextColor3 = Color3.fromRGB(0, 0, 0)
  54. connectspeed.TextScaled = true
  55. connectspeed.TextSize = 14.000
  56. connectspeed.TextWrapped = true
  57.  
  58. jump.Name = "jump"
  59. jump.Parent = Frame
  60. jump.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
  61. jump.Position = UDim2.new(0.496895581, 0, 0.505016744, 0)
  62. jump.Size = UDim2.new(0, 150, 0, 150)
  63. jump.Font = Enum.Font.SourceSans
  64. jump.Text = ""
  65. jump.TextColor3 = Color3.fromRGB(0, 0, 0)
  66. jump.TextScaled = true
  67. jump.TextSize = 14.000
  68. jump.TextWrapped = true
  69.  
  70. TextButton.Parent = Frame
  71. TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  72. TextButton.Position = UDim2.new(-0.00666666683, 0, 0.502495706, 0)
  73. TextButton.Size = UDim2.new(0, 150, 0, 150)
  74. TextButton.Font = Enum.Font.SourceSans
  75. TextButton.Text = "Connect"
  76. TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  77. TextButton.TextScaled = true
  78. TextButton.TextSize = 14.000
  79. TextButton.TextWrapped = true
  80.  
  81. -- Scripts:
  82.  
  83. local function THEEZI_fake_script() -- openclosegui.LocalScript
  84.     local script = Instance.new('LocalScript', openclosegui)
  85.  
  86.     local gui = script.Parent.Parent
  87.    
  88.     function closeopengui()
  89.         if gui.Frame.Visible == true then
  90.             gui.Frame.Visible = false
  91.             gui.openclosegui.Text = 'Open'
  92.         else
  93.             gui.Frame.Visible = true
  94.             gui.openclosegui.Text = 'Close'
  95.         end
  96.        
  97.         if gui.openclosegui.Text == 'Open' then
  98.             gui.Frame.speed.Text = 'WalkSpeed'
  99.             gui.Frame.jump.Text = 'JumpPower'
  100.         end
  101.     end
  102.    
  103.     function givespeed()
  104.         if gui.Frame.speed.Text == 'WalkSpeed' then
  105.             print('Write a number.')
  106.         else
  107.             game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = gui.Frame.speed.Text
  108.         end
  109.     end
  110.    
  111.     function givejump()
  112.         if gui.Frame.jump.Text == 'JumpPower' then
  113.             print('Write a number.')
  114.         else
  115.             game.Players.LocalPlayer.Character.Humanoid.JumpPower = gui.Frame.jump.Text
  116.         end
  117.     end
  118.    
  119.     gui.Frame.connectspeed.MouseButton1Down:Connect(givespeed)
  120.     gui.Frame.TextButton.MouseButton1Down:Connect(givejump)
  121.     gui.openclosegui.MouseButton1Down:Connect(closeopengui)
  122. end
  123. coroutine.wrap(THEEZI_fake_script)()
  124.  
Add Comment
Please, Sign In to add comment