Advertisement
tuyb

Allusion script

Aug 31st, 2022
439
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.83 KB | None | 0 0
  1. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/xHeptc/Kavo-UI-Library/main/source.lua"))()
  2. local Window = Library.CreateLib("Allusion Hub", "DarkTheme")
  3. -- MAIN
  4. local Main = Window:NewTab("Main")
  5. local MainSection = Main:NewSection("Main")
  6.  
  7.  
  8.  
  9. MainSection:NewToggle("jUMP high and go sonic", "go fast and jump high", function(state)
  10. if state then
  11. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 120
  12. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 120
  13. else
  14. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  15. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 50
  16. end
  17. end)
  18. MainSection:NewKeybind("Fly", "Gives you the ability to fly (Press F to fly and B to stop flying.)", Enum.KeyCode.F, function()
  19. -- [ This is not my scripts, I just put them together, credit to THREESPY712 for the noclip script and a guest for the fly, lol ]
  20. -- [ IF NOCLIP DOES NOT WORK EXECUTE IT BY ITSELF ]
  21. -- Fly Script
  22. repeat wait()
  23. until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Torso") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
  24. local mouse = game.Players.LocalPlayer:GetMouse()
  25. repeat wait() until mouse
  26. local plr = game.Players.LocalPlayer
  27. local torso = plr.Character.Torso
  28. local flying = true
  29. local deb = true
  30. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  31. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  32. local maxspeed = 50
  33. local speed = 0
  34.  
  35. function Fly()
  36. local bg = Instance.new("BodyGyro", torso)
  37. bg.P = 9e4
  38. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  39. bg.cframe = torso.CFrame
  40. local bv = Instance.new("BodyVelocity", torso)
  41. bv.velocity = Vector3.new(0,0.1,0)
  42. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  43. repeat wait()
  44. plr.Character.Humanoid.PlatformStand = true
  45. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  46. speed = speed+.5+(speed/maxspeed)
  47. if speed > maxspeed then
  48. speed = maxspeed
  49. end
  50. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  51. speed = speed-1
  52. if speed < 0 then
  53. speed = 0
  54. end
  55. end
  56. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  57. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  58. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  59. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  60. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  61. else
  62. bv.velocity = Vector3.new(0,0.1,0)
  63. end
  64. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  65. until not flying
  66. ctrl = {f = 0, b = 0, l = 0, r = 0}
  67. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  68. speed = 0
  69. bg:Destroy()
  70. bv:Destroy()
  71. plr.Character.Humanoid.PlatformStand = false
  72. end
  73. mouse.KeyDown:connect(function(key)
  74. if key:lower() == "b" then
  75. if flying then flying = false
  76. else
  77. flying = true
  78. Fly()
  79. end
  80. elseif key:lower() == "w" then
  81. ctrl.f = 1
  82. elseif key:lower() == "s" then
  83. ctrl.b = -1
  84. elseif key:lower() == "a" then
  85. ctrl.l = -1
  86. elseif key:lower() == "d" then
  87. ctrl.r = 1
  88. end
  89. end)
  90. mouse.KeyUp:connect(function(key)
  91. if key:lower() == "w" then
  92. ctrl.f = 0
  93. elseif key:lower() == "s" then
  94. ctrl.b = 0
  95. elseif key:lower() == "a" then
  96. ctrl.l = 0
  97. elseif key:lower() == "d" then
  98. ctrl.r = 0
  99. end
  100. end)
  101. ... (34 lines left)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement