Advertisement
Kin2608

Project smash

Sep 6th, 2024 (edited)
1,904
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.27 KB | Gaming | 0 0
  1. -- Ensure Orion Library is correctly loaded
  2. local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()
  3.  
  4. -- Creating the Main Window
  5. local Window = OrionLib:MakeWindow({
  6. Name = "Project Smash Script",
  7. HidePremium = false,
  8. SaveConfig = true,
  9. ConfigFolder = "OrionTest"
  10. })
  11.  
  12. -- Hitbox Tab
  13. local HitboxTab = Window:MakeTab({
  14. Name = "Hitbox",
  15. Icon = "rbxassetid://4483345998",
  16. PremiumOnly = false
  17. })
  18.  
  19. -- Toggle Hitbox Button
  20. local hitboxEnabled = false
  21. HitboxTab:AddButton({
  22. Name = "Toggle Hitbox",
  23. Callback = function()
  24. hitboxEnabled = not hitboxEnabled
  25. local player = game.Players.LocalPlayer
  26. local character = player.Character or player.CharacterAdded:Wait()
  27. if character and character:FindFirstChild("HumanoidRootPart") then
  28. if hitboxEnabled then
  29. character.HumanoidRootPart.Size = Vector3.new(10, 10, 10) -- Example hitbox size
  30. character.HumanoidRootPart.Transparency = 0.5
  31. character.HumanoidRootPart.CanCollide = false
  32. print("Hitbox enabled")
  33. else
  34. character.HumanoidRootPart.Size = Vector3.new(2, 2, 1) -- Default size
  35. character.HumanoidRootPart.Transparency = 0
  36. print("Hitbox disabled")
  37. end
  38. else
  39. print("HumanoidRootPart not found.")
  40. end
  41. end
  42. })
  43.  
  44. -- Hitbox Size Slider
  45. HitboxTab:AddSlider({
  46. Name = "Hitbox Size",
  47. Min = 1,
  48. Max = 100,
  49. Default = 50,
  50. Color = Color3.fromRGB(255, 255, 255),
  51. Increment = 1,
  52. ValueName = "Size",
  53. Callback = function(value)
  54. local player = game.Players.LocalPlayer
  55. local character = player.Character or player.CharacterAdded:Wait()
  56. if character and character:FindFirstChild("HumanoidRootPart") then
  57. character.HumanoidRootPart.Size = Vector3.new(value, value, value)
  58. print("Hitbox size set to: " .. value)
  59. else
  60. print("HumanoidRootPart not found for resizing.")
  61. end
  62. end
  63. })
  64.  
  65. -- Teleport Tab
  66. local TeleportTab = Window:MakeTab({
  67. Name = "Teleport",
  68. Icon = "rbxassetid://4483345998",
  69. PremiumOnly = false
  70. })
  71.  
  72. -- Button to Teleport to Respawn
  73. TeleportTab:AddButton({
  74. Name = "Teleport to Respawn",
  75. Callback = function()
  76. local player = game.Players.LocalPlayer
  77. if player and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
  78. player.Character:SetPrimaryPartCFrame(CFrame.new(0, 10, 0)) -- Replace with respawn coordinates
  79. print("Teleported to respawn.")
  80. else
  81. print("Failed to teleport to respawn.")
  82. end
  83. end
  84. })
  85.  
  86. -- Button to Teleport to Arena
  87. TeleportTab:AddButton({
  88. Name = "Teleport to Arena",
  89. Callback = function()
  90. local player = game.Players.LocalPlayer
  91. if player and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
  92. player.Character:SetPrimaryPartCFrame(CFrame.new(50, 10, 50)) -- Replace with arena coordinates
  93. print("Teleported to arena.")
  94. else
  95. print("Failed to teleport to arena.")
  96. end
  97. end
  98. })
  99.  
  100. -- Auto Teleport to Spawn if Fall
  101. local autoTeleportOnFall = false
  102. TeleportTab:AddToggle({
  103. Name = "Auto Teleport to Spawn on Fall",
  104. Default = false,
  105. Callback = function(value)
  106. autoTeleportOnFall = value
  107. print("Auto Teleport on Fall: " .. tostring(value))
  108. end
  109. })
  110.  
  111. -- Monitor player height to teleport on fall
  112. game:GetService("RunService").Heartbeat:Connect(function()
  113. if autoTeleportOnFall then
  114. local player = game.Players.LocalPlayer
  115. if player and player.Character and player.Character.PrimaryPart and player.Character.PrimaryPart.Position.Y < -10 then -- Example fall height check
  116. player.Character:SetPrimaryPartCFrame(CFrame.new(0, 10, 0)) -- Teleport back to spawn
  117. print("Teleported due to fall.")
  118. end
  119. end
  120. end)
  121.  
  122. -- Anti-Fall Button
  123. TeleportTab:AddButton({
  124. Name = "Anti-Fall",
  125. Callback = function()
  126. local player = game.Players.LocalPlayer
  127. if player and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
  128. player.Character.HumanoidRootPart.Velocity = Vector3.new(0, 0, 0) -- Stops falling
  129. print("Anti-fall activated.")
  130. else
  131. print("Failed to stop fall.")
  132. end
  133. end
  134. })
  135.  
  136. -- Infinite Jump Toggle
  137. local InfiniteJumpEnabled = false
  138. TeleportTab:AddToggle({
  139. Name = "Infinite Jump",
  140. Default = false,
  141. Callback = function(value)
  142. InfiniteJumpEnabled = value
  143. print("Infinite Jump: " .. tostring(value))
  144. end
  145. })
  146.  
  147. -- Infinite Jump Functionality
  148. local UserInputService = game:GetService("UserInputService")
  149. UserInputService.JumpRequest:Connect(function()
  150. if InfiniteJumpEnabled then
  151. local player = game.Players.LocalPlayer
  152. if player.Character and player.Character:FindFirstChildOfClass("Humanoid") then
  153. player.Character:FindFirstChildOfClass("Humanoid"):ChangeState(Enum.HumanoidStateType.Jumping)
  154. print("Jumped due to infinite jump.")
  155. end
  156. end
  157. end)
  158.  
  159. -- Money Tab
  160. local MoneyTab = Window:MakeTab({
  161. Name = "Money",
  162. Icon = "rbxassetid://4483345998",
  163. PremiumOnly = false
  164. })
  165.  
  166. -- Infinite Money Button
  167. MoneyTab:AddButton({
  168. Name = "Infinite Money",
  169. Callback = function()
  170. print("Infinite money functionality not implemented due to game-specific restrictions.")
  171. -- Implement money logic specific to the game if possible
  172. end
  173. })
  174.  
  175. -- Console Tab
  176. local ConsoleTab = Window:MakeTab({
  177. Name = "Console",
  178. Icon = "rbxassetid://4483345998",
  179. PremiumOnly = false
  180. })
  181.  
  182. -- Label in Console
  183. ConsoleTab:AddLabel("Script Running...")
  184.  
  185. -- Credits Tab
  186. local CreditsTab = Window:MakeTab({
  187. Name = "Credits",
  188. Icon = "rbxassetid://4483345998",
  189. PremiumOnly = false
  190. })
  191.  
  192. -- Label for Credit to Owner
  193. CreditsTab:AddLabel("Script by: Owner's Name")
  194. CreditsTab:AddLabel("Thank you for using my script!")
  195.  
  196. -- Initialization of the script
  197. OrionLib:Init()
Tags: Just
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement