Advertisement
Smartdumgood

Untitled

Jan 3rd, 2025
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.84 KB | None | 0 0
  1. local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()
  2. local Window = OrionLib:MakeWindow({Name = "Project Nono", HidePremium = false, SaveConfig = false})
  3.  
  4. -- R15 Check
  5. if game.Players.LocalPlayer.Character.Humanoid.RigType ~= Enum.HumanoidRigType.R15 then
  6. OrionLib:MakeNotification({
  7. Name = "Rig Type Error",
  8. Content = "This script requires R15 rig type to work properly!",
  9. Image = "rbxassetid://4483345998",
  10. Time = 5
  11. })
  12. return
  13. end
  14.  
  15. local MainTab = Window:MakeTab({
  16. Name = "Jetpack",
  17. Icon = "rbxassetid://4483345998"
  18. })
  19.  
  20. -- Variables
  21. local Players = game:GetService("Players")
  22. local RunService = game:GetService("RunService")
  23. local UserInputService = game:GetService("UserInputService")
  24.  
  25. local player = Players.LocalPlayer
  26. local character = player.Character or player.CharacterAdded:Wait()
  27. local humanoid = character:WaitForChild("Humanoid")
  28. local rootPart = character:WaitForChild("HumanoidRootPart")
  29. local flyingAnimation = Instance.new("Animation")
  30. flyingAnimation.AnimationId = "rbxassetid://619512450"
  31. local flyTrack = humanoid:LoadAnimation(flyingAnimation)
  32.  
  33. -- Settings
  34. local isFlying = false
  35. local jumpCount = 0
  36. local lastJump = 0
  37. local flySpeed = 50
  38.  
  39. -- UI Elements
  40. MainTab:AddToggle({
  41. Name = "Toggle Flight",
  42. Default = false,
  43. Callback = function(Value)
  44. isFlying = Value
  45. if isFlying then
  46. flyTrack:Play()
  47. else
  48. flyTrack:Stop()
  49. end
  50. end
  51. })
  52.  
  53. MainTab:AddSlider({
  54. Name = "Flight Speed",
  55. Min = 10,
  56. Max = 200,
  57. Default = 50,
  58. Color = Color3.fromRGB(255,255,255),
  59. Increment = 1,
  60. ValueName = "Speed",
  61. Callback = function(Value)
  62. flySpeed = Value
  63. end
  64. })
  65.  
  66. -- Jetpack Creation
  67. local jetpack = Instance.new("Part")
  68. jetpack.Size = Vector3.new(1, 2, 0.5)
  69. jetpack.Color = Color3.fromRGB(0, 0, 0)
  70. jetpack.CanCollide = false
  71. jetpack.Name = "Jetpack"
  72.  
  73. local weld = Instance.new("Weld")
  74. weld.Part0 = character:WaitForChild("UpperTorso")
  75. weld.Part1 = jetpack
  76. weld.C0 = CFrame.new(0, 0, 0.5)
  77. weld.Parent = jetpack
  78. jetpack.Parent = character
  79.  
  80. -- Particle Effects
  81. local fireEffect = Instance.new("Fire")
  82. fireEffect.Heat = 0
  83. fireEffect.Size = 3
  84. fireEffect.Enabled = false
  85. fireEffect.Parent = jetpack
  86.  
  87. local cloudAttachment = Instance.new("Attachment")
  88. cloudAttachment.Parent = jetpack
  89.  
  90. local cloudParticle = Instance.new("ParticleEmitter")
  91. cloudParticle.Texture = "rbxasset://textures/particles/smoke_main.dds"
  92. cloudParticle.Size = NumberSequence.new(0.5)
  93. cloudParticle.Transparency = NumberSequence.new({
  94. NumberSequenceKeypoint.new(0, 0.75),
  95. NumberSequenceKeypoint.new(1, 1)
  96. })
  97. cloudParticle.Rate = 50
  98. cloudParticle.Rotation = NumberRange.new(0, 360)
  99. cloudParticle.RotSpeed = NumberRange.new(-30, 30)
  100. cloudParticle.Speed = NumberRange.new(3)
  101. cloudParticle.Enabled = false
  102. cloudParticle.Parent = cloudAttachment
  103.  
  104. -- Jump Detection
  105. humanoid.StateChanged:Connect(function(old, new)
  106. if new == Enum.HumanoidStateType.Jumping then
  107. local currentTime = tick()
  108. if currentTime - lastJump < 0.5 then
  109. jumpCount = jumpCount + 1
  110. if jumpCount == 2 then
  111. isFlying = not isFlying
  112. if isFlying then
  113. flyTrack:Play()
  114. else
  115. flyTrack:Stop()
  116. end
  117. jumpCount = 0
  118. end
  119. else
  120. jumpCount = 1
  121. end
  122. lastJump = currentTime
  123. end
  124. end)
  125.  
  126. -- Flying Mechanics
  127. RunService.RenderStepped:Connect(function()
  128. if isFlying then
  129. local moveDirection = Vector3.new(
  130. UserInputService:IsKeyDown(Enum.KeyCode.D) and 1 or (UserInputService:IsKeyDown(Enum.KeyCode.A) and -1 or 0),
  131. UserInputService:IsKeyDown(Enum.KeyCode.Space) and 1 or (UserInputService:IsKeyDown(Enum.KeyCode.LeftShift) and -1 or 0),
  132. UserInputService:IsKeyDown(Enum.KeyCode.S) and 1 or (UserInputService:IsKeyDown(Enum.KeyCode.W) and -1 or 0)
  133. )
  134.  
  135. local lookVector = workspace.CurrentCamera.CFrame.LookVector
  136. local rightVector = workspace.CurrentCamera.CFrame.RightVector
  137.  
  138. local flyDirection = (rightVector * moveDirection.X) + (Vector3.new(0, 1, 0) * moveDirection.Y) + (lookVector * moveDirection.Z)
  139.  
  140. if flyDirection.Magnitude > 0 then
  141. rootPart.Velocity = -flyDirection.Unit * flySpeed
  142. fireEffect.Enabled = true
  143. cloudParticle.Enabled = true
  144. else
  145. rootPart.Velocity = Vector3.new(0, 0, 0)
  146. fireEffect.Enabled = false
  147. cloudParticle.Enabled = false
  148. end
  149. else
  150. fireEffect.Enabled = false
  151. cloudParticle.Enabled = false
  152. end
  153. end)
  154.  
  155. OrionLib:Init()
  156.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement