Advertisement
MRSSDRAGON

v.001 vesrion of fun hub for roblox (delta/fluxus/hydrogen)

Jun 27th, 2024
818
0
29 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.24 KB | Gaming | 0 0
  1. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/xHeptc/Kavo-UI-Library/main/source.lua"))()
  2. local Window = Library.CreateLib("Made For sonic10fan1 and HORM_Goose" , "Synapse")
  3.  
  4. local Main = Window:NewTab("Main")
  5. local MainSection = Main:NewSection("Main")
  6.  
  7.  
  8. MainSection:NewButton("Speed", "Just speed by 60", function()
  9.     local player = game.Players.LocalPlayer
  10.  
  11.     local player = game.Players.LocalPlayer player.Character.Humanoid.WalkSpeed = 60
  12. end)
  13.  
  14. MainSection:NewButton("Double Jump", "Just Double jump", function()
  15.     local UserInputService = game:GetService("UserInputService")
  16. local localPlayer = game.Players.LocalPlayer
  17. local character
  18. local humanoid
  19. local canDoubleJump = false
  20. local hasDoubleJumped = false
  21. local oldPower
  22. local TIME_BETWEEN_JUMPS = 0.2
  23. local DOUBLE_JUMP_POWER_MULTIPLIER = 2
  24. function onJumpRequest()
  25.     if not character or not humanoid or not character:IsDescendantOf(workspace) or
  26.     humanoid:GetState() == Enum.HumanoidStateType.Dead then
  27.         return
  28.     end
  29.  
  30.     if canDoubleJump and not hasDoubleJumped then
  31.         hasDoubleJumped = true
  32.         humanoid.JumpPower = oldPower * DOUBLE_JUMP_POWER_MULTIPLIER
  33.         humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
  34.     end
  35. end
  36. local function characterAdded(newCharacter)
  37.     character = newCharacter
  38.     humanoid = newCharacter:WaitForChild("Humanoid")
  39.     hasDoubleJumped = false
  40.     canDoubleJump = false
  41.     oldPower = humanoid.JumpPower
  42.  
  43.     humanoid.StateChanged:connect(function(old, new)
  44.         if new == Enum.HumanoidStateType.Landed then
  45.             canDoubleJump = false
  46.             hasDoubleJumped = false
  47.             humanoid.JumpPower = oldPower
  48.         elseif new == Enum.HumanoidStateType.Freefall then
  49.             wait(TIME_BETWEEN_JUMPS)
  50.             canDoubleJump = true
  51.         end
  52.     end)
  53. end
  54. if localPlayer.Character then
  55.     characterAdded(localPlayer.Character)
  56. end
  57.  
  58. localPlayer.CharacterAdded:connect(characterAdded)
  59. UserInputService.JumpRequest:connect(onJumpRequest)
  60. end)
  61.  
  62. MainSection:NewButton("More Speed", "Just speed by 85", function()
  63.     local player = game.Players.LocalPlayer
  64.  
  65.     local player = game.Players.LocalPlayer player.Character.Humanoid.WalkSpeed = 85
  66. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement