-- @build-failed -- this script is using a very loud audio as default audio (play audio feature)!!! local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))() local Window = Rayfield:CreateWindow({ Name = "Bloodful 13+", Icon = 0, LoadingTitle = "Bloodful 13+", LoadingSubtitle = "", Theme = "Ocean", DisableRayfieldPrompts = false, DisableBuildWarnings = false, ConfigurationSaving = { Enabled = true, FolderName = nil, FileName = "Hub" } }) local MainTab = Window:CreateTab("Main", 4483362458) local MainSection = MainTab:CreateSection("Main Section") local Flags = Rayfield.Flags local getservice, findfirstchild, findfirstchildofclass = game.GetService, game.FindFirstChild, game.FindFirstChildOfClass local runservice, players, replicatedstorage, networkclient = getservice(game, "RunService"), getservice(game, "Players"), getservice(game, "ReplicatedStorage"), getservice(game, "NetworkClient") networkclient:SetOutgoingKBPSLimit(math.huge * math.huge) local localplayer = players.LocalPlayer local localcharacter, localbackpack = localplayer.Character, localplayer.Backpack local localrootpart = findfirstchild(localcharacter, "HumanoidRootPart") local fireEvent = replicatedstorage:WaitForChild("Assets"):WaitForChild("Remotes"):WaitForChild("fire") local repFireSoundEvent = replicatedstorage:WaitForChild("Assets"):WaitForChild("Remotes"):WaitForChild("repFireSound") local spawnDummyEvent = replicatedstorage:WaitForChild("Assets"):WaitForChild("Remotes"):WaitForChild("spawnDummy") local config = {} config.audioId = 892233254 local function getGun() -- get gun -- local promptPart = workspace.Weapons.Model.AKM.ProxPart local prompt = findfirstchildofclass(promptPart, "ProximityPrompt") localrootpart.CFrame = promptPart.CFrame prompt.HoldDuration = 0 prompt:InputHoldBegin() task.wait(prompt.HoldDuration) prompt:InputHoldEnd() -- move gun to character -- local gun = findfirstchild(localbackpack, "AK-47") if gun then gun.Parent = localcharacter end end local function playSound(part, audioId) local args = { part.CFrame, { soundId = audioId, dist = { 9e9, 9e9 }, name = "fire", volume = Flags.AudioVolumeSlider.CurrentValue }, { equalizer = {}, distortion = {} }, {}, {} } repFireSoundEvent:FireServer(unpack(args)) end local function sendFire(part) local startPos = part.Position + Vector3.new(1, 1, 1) local direction = (part.Position - startPos).Unit fireEvent:FireServer(startPos, {direction}, 9e1) end -- UI Settings -- -- Main Tab -- MainTab:CreateToggle({ Name = "Lag Server", CurrentValue = false, Flag = "LagServerToggle", Callback = function(Value) if not Value then return end for i = 1, 5 do getGun() end end, }) MainTab:CreateToggle({ Name = "Play Sound", CurrentValue = false, Flag = "PlaySoundToggle", Callback = function(Value) end, }) MainTab:CreateSlider({ Name = "Audio Volume", Range = {0, 1000}, Increment = 0.1, Suffix = "Volume", CurrentValue = 1000, Flag = "AudioVolumeSlider", Callback = function(Value) end, }) MainTab:CreateInput({ Name = "Audio ID", PlaceholderText = "Audio ID Here", RemoveTextAfterFocusLost = false, Callback = function(Text) config.audioId = tonumber(Text) end, }) MainTab:CreateToggle({ Name = "Spawn NPCs", CurrentValue = false, Flag = "SpawnNPCsToggle", Callback = function(Value) end, }) if getgenv().scriptConnection then getgenv().scriptConnection:Disconnect() getgenv().scriptConnection = nil end getgenv().scriptConnection = runservice.Heartbeat:Connect(function() for _, player in players:GetPlayers() do if not player then continue end if player == localplayer then continue end local character = player.Character ; if not character then continue end local head = findfirstchild(character, "Head") ; if not head then continue end if Flags.LagServerToggle.CurrentValue then if localcharacter:FindFirstChild("AK-47") == nil then continue end local startPos = head.Position + Vector3.new(1, 1, 1) local direction = (head.Position - startPos).Unit for i = 1, 30 do fireEvent:FireServer(startPos, {direction}, 9e1) end end if Flags.PlaySoundToggle.CurrentValue then playSound(head, config.audioId) end if Flags.SpawnNPCsToggle.CurrentValue then for i = 1, 30 do spawnDummyEvent:FireServer(head.Position) end end end end)