--[[ FE PURPLE SHOTGUN (SERVER-SIDE) Optimizada para Delta y Backdoors de RemoteEvent. ]] local player = game.Players.LocalPlayer local backpack = player:WaitForChild("Backpack") -- --- LÓGICA FE (ENVÍO AL SERVIDOR) --- local function sendDamage(target) local code = [[ local victim = game.Players:FindFirstChild("]]..target.Name..[[") if victim and victim.Character and victim.Character:FindFirstChild("Humanoid") then victim.Character.Humanoid.Health = 0 -- Muerte instantánea FE end ]] -- Busca el Backdoor (RemoteEvent) local r = game:GetService("ReplicatedStorage"):FindFirstChild("RemoteEvent") or game:GetService("ReplicatedStorage"):FindFirstChild("MainEvent") if r then r:FireServer(code) else -- Si no hay backdoor, solo funciona en tu pantalla (Local) if target.Character:FindFirstChild("Humanoid") then target.Character.Humanoid.Health = 0 end end end -- --- CREACIÓN DE LA HERRAMIENTA --- local tool = Instance.new("Tool") tool.Name = "FE SHOTGUN 🟪" tool.RequiresHandle = true tool.Parent = backpack local handle = Instance.new("Part") handle.Name = "Handle" handle.Size = Vector3.new(0.4, 0.4, 3.5) handle.BrickColor = BrickColor.new("Dark indigo") handle.Parent = tool local sound = Instance.new("Sound", handle) sound.SoundId = "rbxassetid://131070686" sound.Volume = 3 -- --- FUNCIÓN DE DISPARO --- tool.Activated:Connect(function() sound:Play() local mouse = player:GetMouse() local target = mouse.Target -- Efecto visual de trazador (Bala) local beam = Instance.new("Part", workspace) beam.Anchored = true beam.CanCollide = false beam.BrickColor = BrickColor.new("Bright violet") beam.Size = Vector3.new(0.1, 0.1, (handle.Position - mouse.Hit.p).Magnitude) beam.CFrame = CFrame.new(handle.Position, mouse.Hit.p) * CFrame.new(0, 0, -beam.Size.Z/2) game.Debris:AddItem(beam, 0.1) -- Si le das a alguien, intenta matarlo via FE if target and target.Parent:FindFirstChild("Humanoid") then local victimPlayer = game.Players:GetPlayerFromCharacter(target.Parent) if victimPlayer and victimPlayer ~= player then sendDamage(victimPlayer) end end end) print("Escopeta FE cargada en Mochila. Apunta y dispara a un jugador.")