Advertisement
Daniel8cz

Roblox Infinite Jump Script

Sep 30th, 2022
1,290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.46 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 TextButton = Instance.new("TextButton")
  9.  
  10. --Properties:
  11.  
  12. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  13. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  14.  
  15. Frame.Parent = ScreenGui
  16. Frame.BackgroundColor3 = Color3.fromRGB(148, 245, 255)
  17. Frame.BorderSizePixel = 0
  18. Frame.Position = UDim2.new(0.274980634, 0, 0.570232868, 0)
  19. Frame.Size = UDim2.new(0, 233, 0, 122)
  20. Frame.Style = Enum.FrameStyle.DropShadow
  21.  
  22. TextButton.Parent = Frame
  23. TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  24. TextButton.Position = UDim2.new(0.0308252871, 0, 0.277133197, 0)
  25. TextButton.Size = UDim2.new(0, 200, 0, 50)
  26. TextButton.Style = Enum.ButtonStyle.RobloxRoundDefaultButton
  27. TextButton.Font = Enum.Font.SourceSans
  28. TextButton.Text = "click button to turn off"
  29. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  30. TextButton.TextScaled = true
  31. TextButton.TextSize = 14.000
  32. TextButton.TextWrapped = true
  33.  
  34. -- Scripts:
  35.  
  36. local function GPWHU_fake_script() -- TextButton.LocalScript
  37. local script = Instance.new('LocalScript', TextButton)
  38.  
  39. local disabled = false
  40. local player = game.Players.LocalPlayer
  41. local InfDisabled = Instance.new("BoolValue")
  42. InfDisabled.Name = "InfDisabled"
  43. InfDisabled.Parent = player
  44.  
  45. script.Parent.MouseButton1Click:Connect(function()
  46.  
  47. if disabled == false then
  48.  
  49. disabled = true
  50.  
  51. InfDisabled.Value = true
  52.  
  53. script.Parent.Text = "Enable Infinite Jump"
  54.  
  55. else
  56.  
  57. disabled = false
  58.  
  59. InfDisabled.Value = false
  60.  
  61. script.Parent.Text = "Disable Infinite Jump"
  62.  
  63. end
  64.  
  65.  
  66.  
  67. end)
  68. end
  69. coroutine.wrap(GPWHU_fake_script)()
  70. local function DSFSI_fake_script() -- Frame.PutInStarterPlayerScripts
  71. local script = Instance.new('LocalScript', Frame)
  72.  
  73. -- place this in StarterPlayer.StarterPlayerScripts.
  74. local p = game.Players.LocalPlayer
  75. while true do
  76. wait()
  77.  
  78. if p.Character and p.InfDisabled.Value == false then
  79. local h = p.Character:FindFirstChild("Humanoid")
  80. if h and h.Jump then
  81. h:ChangeState(Enum.HumanoidStateType.Jumping)
  82. end
  83. end
  84. end
  85. end
  86. coroutine.wrap(DSFSI_fake_script)()
  87. local function YORU_fake_script() -- Frame.Drag
  88. local script = Instance.new('LocalScript', Frame)
  89.  
  90. local UserInputService = game:GetService("UserInputService")
  91.  
  92. local gui = script.Parent
  93.  
  94. local dragging
  95. local dragInput
  96. local dragStart
  97. local startPos
  98.  
  99. local function update(input)
  100. local delta = input.Position - dragStart
  101. gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  102. end
  103.  
  104. gui.InputBegan:Connect(function(input)
  105. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  106. dragging = true
  107. dragStart = input.Position
  108. startPos = gui.Position
  109.  
  110. input.Changed:Connect(function()
  111. if input.UserInputState == Enum.UserInputState.End then
  112. dragging = false
  113. end
  114. end)
  115. end
  116. end)
  117.  
  118. gui.InputChanged:Connect(function(input)
  119. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  120. dragInput = input
  121. end
  122. end)
  123.  
  124. UserInputService.InputChanged:Connect(function(input)
  125. if input == dragInput and dragging then
  126. update(input)
  127. end
  128. end)
  129. end
  130. coroutine.wrap(YORU_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement