Advertisement
qwdawdaw

LuFSe7 Hub | Weapon Script

Jul 24th, 2024 (edited)
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.69 KB | None | 0 0
  1. -- Rayfield GUI Library
  2. local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
  3.  
  4. local Window = Rayfield:CreateWindow({
  5. Name = "LuFSe7 Hub Weapon Script",
  6. LoadingTitle = "Loading LuFSe7 Hub Weapon Script",
  7. LoadingSubtitle = "By LuFSe7",
  8. ConfigurationSaving = {
  9. Enabled = true,
  10. FolderName = nil,
  11. FileName = "UltimateWeaponScript"
  12. },
  13. Discord = {
  14. Enabled = true,
  15. Invite = "gaAeJnUp",
  16. RememberJoins = true
  17. },
  18. KeySystem = true, -- Set this to true to use our key system
  19. KeySettings = {
  20. Title = "Key",
  21. Subtitle = "Key System",
  22. Note = "Key In Video Desc",
  23. FileName = "LuFSe7 Hub | Key", -- It is recommended to use something unique as other scripts using Rayfield may overwrite your key file
  24. SaveKey = true, -- The user's key will be saved, but if you change the key, they will be unable to use your script
  25. GrabKeyFromSite = false, -- If this is true, set Key below to the RAW site you would like Rayfield to get the key from
  26. Key = {"GSu21KcowWcxK"} -- List of keys that will be accepted by the system, can be RAW file links (pastebin, github etc) or simple strings ("hello","key22")
  27. }
  28. })
  29.  
  30.  
  31.  
  32. -- ESP Tab
  33. local ESPTab = Window:CreateTab("ESP", nil)
  34. local ESPSection = ESPTab:CreateSection("ESP Settings")
  35.  
  36. local ESPBoxEnabled = false
  37. local ESPBoxToggle = ESPTab:CreateToggle({
  38. Name = "ESP Box",
  39. CurrentValue = false,
  40. Flag = "ESPBoxToggle",
  41. Callback = function(Value)
  42. ESPBoxEnabled = Value
  43. if ESPBoxEnabled then
  44. EnableESPBox()
  45. else
  46. DisableESPBox()
  47. end
  48. end
  49. })
  50.  
  51. local TracersEnabled = false
  52. local TracersToggle = ESPTab:CreateToggle({
  53. Name = "Tracers",
  54. CurrentValue = false,
  55. Flag = "TracersToggle",
  56. Callback = function(Value)
  57. TracersEnabled = Value
  58. if TracersEnabled then
  59. EnableTracers()
  60. else
  61. DisableTracers()
  62. end
  63. end
  64. })
  65.  
  66. local HitboxEnabled = false
  67. local HitboxToggle = ESPTab:CreateToggle({
  68. Name = "Hitbox",
  69. CurrentValue = false,
  70. Flag = "HitboxToggle",
  71. Callback = function(Value)
  72. HitboxEnabled = Value
  73. if HitboxEnabled then
  74. EnableHitbox()
  75. else
  76. DisableHitbox()
  77. end
  78. end
  79. })
  80.  
  81. local ESPColor = Color3.new(1, 0, 0)
  82. local ESPColorPicker = ESPTab:CreateColorPicker({
  83. Name = "ESP Color",
  84. Color = ESPColor,
  85. Flag = "ESPColorPicker",
  86. Callback = function(Value)
  87. ESPColor = Value
  88. end
  89. })
  90.  
  91. local TracerColor = Color3.new(0, 1, 0)
  92. local TracerColorPicker = ESPTab:CreateColorPicker({
  93. Name = "Tracer Color",
  94. Color = TracerColor,
  95. Flag = "TracerColorPicker",
  96. Callback = function(Value)
  97. TracerColor = Value
  98. end
  99. })
  100.  
  101. local HitboxColor = Color3.new(0, 0, 1)
  102. local HitboxColorPicker = ESPTab:CreateColorPicker({
  103. Name = "Hitbox Color",
  104. Color = HitboxColor,
  105. Flag = "HitboxColorPicker",
  106. Callback = function(Value)
  107. HitboxColor = Value
  108. end
  109. })
  110.  
  111. local players = game:GetService("Players")
  112. local runService = game:GetService("RunService")
  113. local localPlayer = players.LocalPlayer
  114. local ESPBoxes = {}
  115. local ESPTracers = {}
  116. local Hitboxes = {}
  117.  
  118. local function createESPBox(player)
  119. local box = Drawing.new("Square")
  120. box.Thickness = 2
  121. box.Color = ESPColor
  122. box.Filled = false
  123.  
  124. runService.RenderStepped:Connect(function()
  125. if ESPBoxEnabled and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
  126. local rootPart = player.Character.HumanoidRootPart
  127. local vector, onScreen = workspace.CurrentCamera:WorldToViewportPoint(rootPart.Position)
  128. if onScreen then
  129. box.Size = Vector2.new(2000 / vector.Z, 3000 / vector.Z)
  130. box.Position = Vector2.new(vector.X - box.Size.X / 2, vector.Y - box.Size.Y / 2)
  131. box.Visible = true
  132. else
  133. box.Visible = false
  134. end
  135. else
  136. box.Visible = false
  137. end
  138. end)
  139. table.insert(ESPBoxes, box)
  140. end
  141.  
  142. local function createTracer(player)
  143. local tracer = Drawing.new("Line")
  144. tracer.Thickness = 2
  145. tracer.Color = TracerColor
  146.  
  147. runService.RenderStepped:Connect(function()
  148. if TracersEnabled and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
  149. local rootPart = player.Character.HumanoidRootPart
  150. local vector, onScreen = workspace.CurrentCamera:WorldToViewportPoint(rootPart.Position)
  151. if onScreen then
  152. tracer.From = Vector2.new(workspace.CurrentCamera.ViewportSize.X / 2, workspace.CurrentCamera.ViewportSize.Y)
  153. tracer.To = Vector2.new(vector.X, vector.Y)
  154. tracer.Visible = true
  155. else
  156. tracer.Visible = false
  157. end
  158. else
  159. tracer.Visible = false
  160. end
  161. end)
  162. table.insert(ESPTracers, tracer)
  163. end
  164.  
  165. local function createHitbox(player)
  166. local hitbox = Drawing.new("Square")
  167. hitbox.Thickness = 2
  168. hitbox.Color = HitboxColor
  169. hitbox.Filled = false
  170.  
  171. runService.RenderStepped:Connect(function()
  172. if HitboxEnabled and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
  173. local rootPart = player.Character.HumanoidRootPart
  174. local vector, onScreen = workspace.CurrentCamera:WorldToViewportPoint(rootPart.Position)
  175. if onScreen then
  176. hitbox.Size = Vector2.new(2000 / vector.Z, 3000 / vector.Z)
  177. hitbox.Position = Vector2.new(vector.X - hitbox.Size.X / 2, vector.Y - hitbox.Size.Y / 2)
  178. hitbox.Visible = true
  179. else
  180. hitbox.Visible = false
  181. end
  182. else
  183. hitbox.Visible = false
  184. end
  185. end)
  186. table.insert(Hitboxes, hitbox)
  187. end
  188.  
  189. function EnableESPBox()
  190. for _, player in pairs(players:GetPlayers()) do
  191. if player ~= localPlayer then
  192. createESPBox(player)
  193. end
  194. end
  195.  
  196. players.PlayerAdded:Connect(function(player)
  197. if player ~= localPlayer then
  198. createESPBox(player)
  199. end
  200. end)
  201. end
  202.  
  203. function DisableESPBox()
  204. for _, box in pairs(ESPBoxes) do
  205. box:Remove()
  206. end
  207. ESPBoxes = {}
  208. end
  209.  
  210. function EnableTracers()
  211. for _, player in pairs(players:GetPlayers()) do
  212. if player ~= localPlayer then
  213. createTracer(player)
  214. end
  215. end
  216.  
  217. players.PlayerAdded:Connect(function(player)
  218. if player ~= localPlayer then
  219. createTracer(player)
  220. end
  221. end)
  222. end
  223.  
  224. function DisableTracers()
  225. for _, tracer in pairs(ESPTracers) do
  226. tracer:Remove()
  227. end
  228. ESPTracers = {}
  229. end
  230.  
  231. function EnableHitbox()
  232. for _, player in pairs(players:GetPlayers()) do
  233. if player ~= localPlayer then
  234. createHitbox(player)
  235. end
  236. end
  237.  
  238. players.PlayerAdded:Connect(function(player)
  239. if player ~= localPlayer then
  240. createHitbox(player)
  241. end
  242. end)
  243. end
  244.  
  245. function DisableHitbox()
  246. for _, hitbox in pairs(Hitboxes) do
  247. hitbox:Remove()
  248. end
  249. Hitboxes = {}
  250. end
  251.  
  252. -- Walkspeed & Misc Tab
  253. local WalkspeedTab = Window:CreateTab("Walkspeed & Misc", nil)
  254. local WalkspeedSection = WalkspeedTab:CreateSection("Walkspeed & Misc Settings")
  255.  
  256. local Walkspeed = 16
  257. local WalkspeedSlider = WalkspeedTab:CreateSlider({
  258. Name = "Walkspeed",
  259. Range = {16, 100},
  260. Increment = 1,
  261. Suffix = "Walkspeed",
  262. CurrentValue = Walkspeed,
  263. Flag = "WalkspeedSlider",
  264. Callback = function(Value)
  265. Walkspeed = Value
  266. localPlayer.Character.Humanoid.WalkSpeed = Walkspeed
  267. end
  268. })
  269.  
  270. local InfiniteJumpEnabled = false
  271. local InfiniteJumpToggle = WalkspeedTab:CreateToggle({
  272. Name = "Infinite Jump",
  273. CurrentValue = false,
  274. Flag = "InfiniteJumpToggle",
  275. Callback = function(Value)
  276. InfiniteJumpEnabled = Value
  277. if InfiniteJumpEnabled then
  278. infiniteJump()
  279. end
  280. end
  281. })
  282.  
  283. local FlyEnabled = false
  284. local FlyToggle = WalkspeedTab
  285. -- Fly Tab
  286. local FlyEnabled = false
  287. local FlyToggle = WalkspeedTab:CreateToggle({
  288. Name = "Fly",
  289. CurrentValue = false,
  290. Flag = "FlyToggle",
  291. Callback = function(Value)
  292. FlyEnabled = Value
  293. if FlyEnabled then
  294. enableFly()
  295. else
  296. disableFly()
  297. end
  298. end
  299. })
  300.  
  301. local FlySpeed = 50
  302. local FlySpeedSlider = WalkspeedTab:CreateSlider({
  303. Name = "Fly Speed",
  304. Range = {10, 100},
  305. Increment = 1,
  306. Suffix = "Speed",
  307. CurrentValue = FlySpeed,
  308. Flag = "FlySpeedSlider",
  309. Callback = function(Value)
  310. FlySpeed = Value
  311. end
  312. })
  313.  
  314. -- Function to enable fly mode
  315. local function enableFly()
  316. localUserInputService = game:GetService("UserInputService")
  317. localUserInputService.InputBegan:Connect(function(input)
  318. if input.KeyCode == Enum.KeyCode.Space then
  319. localPlayer.Character.HumanoidRootPart.Velocity = Vector3.new(0, FlySpeed, 0)
  320. end
  321. end)
  322. -- Additional code to handle fly movement...
  323. end
  324.  
  325. -- Function to disable fly mode
  326. local function disableFly()
  327. -- Code to stop flying and return to normal movement...
  328. end
  329.  
  330. -- Weapon Modifications Tab
  331. local WeaponModificationsTab = Window:CreateTab("Weapon Modifications", nil)
  332. local WeaponModificationsSection = WeaponModificationsTab:CreateSection("Weapon Modifications Settings")
  333.  
  334. local NoRecoilEnabled = false
  335. local NoRecoilToggle = WeaponModificationsTab:CreateToggle({
  336. Name = "No Recoil",
  337. CurrentValue = false,
  338. Flag = "NoRecoilToggle",
  339. Callback = function(Value)
  340. NoRecoilEnabled = Value
  341. if NoRecoilEnabled then
  342. -- Enable No Recoil
  343. else
  344. -- Disable No Recoil
  345. end
  346. end
  347. })
  348.  
  349. local NoSpreadEnabled = false
  350. local NoSpreadToggle = WeaponModificationsTab:CreateToggle({
  351. Name = "No Spread",
  352. CurrentValue = false,
  353. Flag = "NoSpreadToggle",
  354. Callback = function(Value)
  355. NoSpreadEnabled = Value
  356. if NoSpreadEnabled then
  357. -- Enable No Spread
  358. else
  359. -- Disable No Spread
  360. end
  361. end
  362. })
  363.  
  364. local AutoFireEnabled = false
  365. local AutoFireToggle = WeaponModificationsTab:CreateToggle({
  366. Name = "Auto Fire",
  367. CurrentValue = false,
  368. Flag = "AutoFireToggle",
  369. Callback = function(Value)
  370. AutoFireEnabled = Value
  371. if AutoFireEnabled then
  372. -- Enable Auto Fire
  373. else
  374. -- Disable Auto Fire
  375. end
  376. end
  377. })
  378.  
  379. local function enableWeaponModifications()
  380. if NoRecoilEnabled then
  381. -- Code to remove recoil
  382. end
  383.  
  384. if NoSpreadEnabled then
  385. -- Code to remove spread
  386. end
  387.  
  388. if AutoFireEnabled then
  389. -- Code to enable automatic firing
  390. end
  391. end
  392.  
  393. -- Triggerbot Tab
  394. local TriggerbotTab = Window:CreateTab("Triggerbot", nil)
  395. local TriggerbotSection = TriggerbotTab:CreateSection("Triggerbot Settings")
  396.  
  397. local TriggerbotEnabled = false
  398. local TriggerbotToggle = TriggerbotTab:CreateToggle({
  399. Name = "Triggerbot",
  400. CurrentValue = false,
  401. Flag = "TriggerbotToggle",
  402. Callback = function(Value)
  403. TriggerbotEnabled = Value
  404. end
  405. })
  406.  
  407. -- Radar Tab
  408. local RadarTab = Window:CreateTab("Radar", nil)
  409. local RadarSection = RadarTab:CreateSection("Radar Settings")
  410.  
  411. local RadarEnabled = false
  412. local RadarToggle = RadarTab:CreateToggle({
  413. Name = "Radar",
  414. CurrentValue = false,
  415. Flag = "RadarToggle",
  416. Callback = function(Value)
  417. RadarEnabled = Value
  418. end
  419. })
  420.  
  421. -- Health Display Tab
  422. local HealthDisplayTab = Window:CreateTab("Health Display", nil)
  423. local HealthDisplaySection = HealthDisplayTab:CreateSection("Health Display Settings")
  424.  
  425. local HealthDisplayEnabled = false
  426. local HealthDisplayToggle = HealthDisplayTab:CreateToggle({
  427. Name = "Health Display",
  428. CurrentValue = false,
  429. Flag = "HealthDisplayToggle",
  430. Callback = function(Value)
  431. HealthDisplayEnabled = Value
  432. end
  433. })
  434.  
  435. -- Functions to handle each feature
  436. local function updateRadar()
  437. if RadarEnabled then
  438. -- Code to create and display radar
  439. end
  440. end
  441.  
  442. local function updateHealthDisplay()
  443. if HealthDisplayEnabled then
  444. -- Code to create and display health of enemies
  445. end
  446. end
  447.  
  448. -- Main Render Loop
  449. runService.RenderStepped:Connect(function()
  450. if TriggerbotEnabled then
  451. -- Triggerbot functionality
  452. end
  453.  
  454. enableWeaponModifications()
  455. updateRadar()
  456. updateHealthDisplay()
  457. end)
  458.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement