Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Rayfield GUI Library
- local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
- local Window = Rayfield:CreateWindow({
- Name = "LuFSe7 Hub Weapon Script",
- LoadingTitle = "Loading LuFSe7 Hub Weapon Script",
- LoadingSubtitle = "By LuFSe7",
- ConfigurationSaving = {
- Enabled = true,
- FolderName = nil,
- FileName = "UltimateWeaponScript"
- },
- Discord = {
- Enabled = true,
- Invite = "gaAeJnUp",
- RememberJoins = true
- },
- KeySystem = true, -- Set this to true to use our key system
- KeySettings = {
- Title = "Key",
- Subtitle = "Key System",
- Note = "Key In Video Desc",
- FileName = "LuFSe7 Hub | Key", -- It is recommended to use something unique as other scripts using Rayfield may overwrite your key file
- SaveKey = true, -- The user's key will be saved, but if you change the key, they will be unable to use your script
- GrabKeyFromSite = false, -- If this is true, set Key below to the RAW site you would like Rayfield to get the key from
- 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")
- }
- })
- -- ESP Tab
- local ESPTab = Window:CreateTab("ESP", nil)
- local ESPSection = ESPTab:CreateSection("ESP Settings")
- local ESPBoxEnabled = false
- local ESPBoxToggle = ESPTab:CreateToggle({
- Name = "ESP Box",
- CurrentValue = false,
- Flag = "ESPBoxToggle",
- Callback = function(Value)
- ESPBoxEnabled = Value
- if ESPBoxEnabled then
- EnableESPBox()
- else
- DisableESPBox()
- end
- end
- })
- local TracersEnabled = false
- local TracersToggle = ESPTab:CreateToggle({
- Name = "Tracers",
- CurrentValue = false,
- Flag = "TracersToggle",
- Callback = function(Value)
- TracersEnabled = Value
- if TracersEnabled then
- EnableTracers()
- else
- DisableTracers()
- end
- end
- })
- local HitboxEnabled = false
- local HitboxToggle = ESPTab:CreateToggle({
- Name = "Hitbox",
- CurrentValue = false,
- Flag = "HitboxToggle",
- Callback = function(Value)
- HitboxEnabled = Value
- if HitboxEnabled then
- EnableHitbox()
- else
- DisableHitbox()
- end
- end
- })
- local ESPColor = Color3.new(1, 0, 0)
- local ESPColorPicker = ESPTab:CreateColorPicker({
- Name = "ESP Color",
- Color = ESPColor,
- Flag = "ESPColorPicker",
- Callback = function(Value)
- ESPColor = Value
- end
- })
- local TracerColor = Color3.new(0, 1, 0)
- local TracerColorPicker = ESPTab:CreateColorPicker({
- Name = "Tracer Color",
- Color = TracerColor,
- Flag = "TracerColorPicker",
- Callback = function(Value)
- TracerColor = Value
- end
- })
- local HitboxColor = Color3.new(0, 0, 1)
- local HitboxColorPicker = ESPTab:CreateColorPicker({
- Name = "Hitbox Color",
- Color = HitboxColor,
- Flag = "HitboxColorPicker",
- Callback = function(Value)
- HitboxColor = Value
- end
- })
- local players = game:GetService("Players")
- local runService = game:GetService("RunService")
- local localPlayer = players.LocalPlayer
- local ESPBoxes = {}
- local ESPTracers = {}
- local Hitboxes = {}
- local function createESPBox(player)
- local box = Drawing.new("Square")
- box.Thickness = 2
- box.Color = ESPColor
- box.Filled = false
- runService.RenderStepped:Connect(function()
- if ESPBoxEnabled and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
- local rootPart = player.Character.HumanoidRootPart
- local vector, onScreen = workspace.CurrentCamera:WorldToViewportPoint(rootPart.Position)
- if onScreen then
- box.Size = Vector2.new(2000 / vector.Z, 3000 / vector.Z)
- box.Position = Vector2.new(vector.X - box.Size.X / 2, vector.Y - box.Size.Y / 2)
- box.Visible = true
- else
- box.Visible = false
- end
- else
- box.Visible = false
- end
- end)
- table.insert(ESPBoxes, box)
- end
- local function createTracer(player)
- local tracer = Drawing.new("Line")
- tracer.Thickness = 2
- tracer.Color = TracerColor
- runService.RenderStepped:Connect(function()
- if TracersEnabled and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
- local rootPart = player.Character.HumanoidRootPart
- local vector, onScreen = workspace.CurrentCamera:WorldToViewportPoint(rootPart.Position)
- if onScreen then
- tracer.From = Vector2.new(workspace.CurrentCamera.ViewportSize.X / 2, workspace.CurrentCamera.ViewportSize.Y)
- tracer.To = Vector2.new(vector.X, vector.Y)
- tracer.Visible = true
- else
- tracer.Visible = false
- end
- else
- tracer.Visible = false
- end
- end)
- table.insert(ESPTracers, tracer)
- end
- local function createHitbox(player)
- local hitbox = Drawing.new("Square")
- hitbox.Thickness = 2
- hitbox.Color = HitboxColor
- hitbox.Filled = false
- runService.RenderStepped:Connect(function()
- if HitboxEnabled and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
- local rootPart = player.Character.HumanoidRootPart
- local vector, onScreen = workspace.CurrentCamera:WorldToViewportPoint(rootPart.Position)
- if onScreen then
- hitbox.Size = Vector2.new(2000 / vector.Z, 3000 / vector.Z)
- hitbox.Position = Vector2.new(vector.X - hitbox.Size.X / 2, vector.Y - hitbox.Size.Y / 2)
- hitbox.Visible = true
- else
- hitbox.Visible = false
- end
- else
- hitbox.Visible = false
- end
- end)
- table.insert(Hitboxes, hitbox)
- end
- function EnableESPBox()
- for _, player in pairs(players:GetPlayers()) do
- if player ~= localPlayer then
- createESPBox(player)
- end
- end
- players.PlayerAdded:Connect(function(player)
- if player ~= localPlayer then
- createESPBox(player)
- end
- end)
- end
- function DisableESPBox()
- for _, box in pairs(ESPBoxes) do
- box:Remove()
- end
- ESPBoxes = {}
- end
- function EnableTracers()
- for _, player in pairs(players:GetPlayers()) do
- if player ~= localPlayer then
- createTracer(player)
- end
- end
- players.PlayerAdded:Connect(function(player)
- if player ~= localPlayer then
- createTracer(player)
- end
- end)
- end
- function DisableTracers()
- for _, tracer in pairs(ESPTracers) do
- tracer:Remove()
- end
- ESPTracers = {}
- end
- function EnableHitbox()
- for _, player in pairs(players:GetPlayers()) do
- if player ~= localPlayer then
- createHitbox(player)
- end
- end
- players.PlayerAdded:Connect(function(player)
- if player ~= localPlayer then
- createHitbox(player)
- end
- end)
- end
- function DisableHitbox()
- for _, hitbox in pairs(Hitboxes) do
- hitbox:Remove()
- end
- Hitboxes = {}
- end
- -- Walkspeed & Misc Tab
- local WalkspeedTab = Window:CreateTab("Walkspeed & Misc", nil)
- local WalkspeedSection = WalkspeedTab:CreateSection("Walkspeed & Misc Settings")
- local Walkspeed = 16
- local WalkspeedSlider = WalkspeedTab:CreateSlider({
- Name = "Walkspeed",
- Range = {16, 100},
- Increment = 1,
- Suffix = "Walkspeed",
- CurrentValue = Walkspeed,
- Flag = "WalkspeedSlider",
- Callback = function(Value)
- Walkspeed = Value
- localPlayer.Character.Humanoid.WalkSpeed = Walkspeed
- end
- })
- local InfiniteJumpEnabled = false
- local InfiniteJumpToggle = WalkspeedTab:CreateToggle({
- Name = "Infinite Jump",
- CurrentValue = false,
- Flag = "InfiniteJumpToggle",
- Callback = function(Value)
- InfiniteJumpEnabled = Value
- if InfiniteJumpEnabled then
- infiniteJump()
- end
- end
- })
- local FlyEnabled = false
- local FlyToggle = WalkspeedTab
- -- Fly Tab
- local FlyEnabled = false
- local FlyToggle = WalkspeedTab:CreateToggle({
- Name = "Fly",
- CurrentValue = false,
- Flag = "FlyToggle",
- Callback = function(Value)
- FlyEnabled = Value
- if FlyEnabled then
- enableFly()
- else
- disableFly()
- end
- end
- })
- local FlySpeed = 50
- local FlySpeedSlider = WalkspeedTab:CreateSlider({
- Name = "Fly Speed",
- Range = {10, 100},
- Increment = 1,
- Suffix = "Speed",
- CurrentValue = FlySpeed,
- Flag = "FlySpeedSlider",
- Callback = function(Value)
- FlySpeed = Value
- end
- })
- -- Function to enable fly mode
- local function enableFly()
- localUserInputService = game:GetService("UserInputService")
- localUserInputService.InputBegan:Connect(function(input)
- if input.KeyCode == Enum.KeyCode.Space then
- localPlayer.Character.HumanoidRootPart.Velocity = Vector3.new(0, FlySpeed, 0)
- end
- end)
- -- Additional code to handle fly movement...
- end
- -- Function to disable fly mode
- local function disableFly()
- -- Code to stop flying and return to normal movement...
- end
- -- Weapon Modifications Tab
- local WeaponModificationsTab = Window:CreateTab("Weapon Modifications", nil)
- local WeaponModificationsSection = WeaponModificationsTab:CreateSection("Weapon Modifications Settings")
- local NoRecoilEnabled = false
- local NoRecoilToggle = WeaponModificationsTab:CreateToggle({
- Name = "No Recoil",
- CurrentValue = false,
- Flag = "NoRecoilToggle",
- Callback = function(Value)
- NoRecoilEnabled = Value
- if NoRecoilEnabled then
- -- Enable No Recoil
- else
- -- Disable No Recoil
- end
- end
- })
- local NoSpreadEnabled = false
- local NoSpreadToggle = WeaponModificationsTab:CreateToggle({
- Name = "No Spread",
- CurrentValue = false,
- Flag = "NoSpreadToggle",
- Callback = function(Value)
- NoSpreadEnabled = Value
- if NoSpreadEnabled then
- -- Enable No Spread
- else
- -- Disable No Spread
- end
- end
- })
- local AutoFireEnabled = false
- local AutoFireToggle = WeaponModificationsTab:CreateToggle({
- Name = "Auto Fire",
- CurrentValue = false,
- Flag = "AutoFireToggle",
- Callback = function(Value)
- AutoFireEnabled = Value
- if AutoFireEnabled then
- -- Enable Auto Fire
- else
- -- Disable Auto Fire
- end
- end
- })
- local function enableWeaponModifications()
- if NoRecoilEnabled then
- -- Code to remove recoil
- end
- if NoSpreadEnabled then
- -- Code to remove spread
- end
- if AutoFireEnabled then
- -- Code to enable automatic firing
- end
- end
- -- Triggerbot Tab
- local TriggerbotTab = Window:CreateTab("Triggerbot", nil)
- local TriggerbotSection = TriggerbotTab:CreateSection("Triggerbot Settings")
- local TriggerbotEnabled = false
- local TriggerbotToggle = TriggerbotTab:CreateToggle({
- Name = "Triggerbot",
- CurrentValue = false,
- Flag = "TriggerbotToggle",
- Callback = function(Value)
- TriggerbotEnabled = Value
- end
- })
- -- Radar Tab
- local RadarTab = Window:CreateTab("Radar", nil)
- local RadarSection = RadarTab:CreateSection("Radar Settings")
- local RadarEnabled = false
- local RadarToggle = RadarTab:CreateToggle({
- Name = "Radar",
- CurrentValue = false,
- Flag = "RadarToggle",
- Callback = function(Value)
- RadarEnabled = Value
- end
- })
- -- Health Display Tab
- local HealthDisplayTab = Window:CreateTab("Health Display", nil)
- local HealthDisplaySection = HealthDisplayTab:CreateSection("Health Display Settings")
- local HealthDisplayEnabled = false
- local HealthDisplayToggle = HealthDisplayTab:CreateToggle({
- Name = "Health Display",
- CurrentValue = false,
- Flag = "HealthDisplayToggle",
- Callback = function(Value)
- HealthDisplayEnabled = Value
- end
- })
- -- Functions to handle each feature
- local function updateRadar()
- if RadarEnabled then
- -- Code to create and display radar
- end
- end
- local function updateHealthDisplay()
- if HealthDisplayEnabled then
- -- Code to create and display health of enemies
- end
- end
- -- Main Render Loop
- runService.RenderStepped:Connect(function()
- if TriggerbotEnabled then
- -- Triggerbot functionality
- end
- enableWeaponModifications()
- updateRadar()
- updateHealthDisplay()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement