Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local RunService = game:GetService("RunService")
- local LocalPlayer = Players.LocalPlayer
- local function ExtendBombRange()
- local Character = LocalPlayer.Character
- if not Character then return end
- local Bomb = Character:FindFirstChild("Bomb") or Character:FindFirstChildWhichIsA("Tool") -- Ajusta el nombre según el juego
- if not Bomb then return end
- local HumanoidRootPart = Character:FindFirstChild("HumanoidRootPart")
- if not HumanoidRootPart then return end
- for _, player in pairs(Players:GetPlayers()) do
- if player == LocalPlayer then continue end
- local TargetCharacter = player.Character
- if not TargetCharacter then continue end
- local TargetRootPart = TargetCharacter:FindFirstChild("HumanoidRootPart")
- if not TargetRootPart then continue end
- -- Calcular distancia
- local Distance = (HumanoidRootPart.Position - TargetRootPart.Position).Magnitude
- if Distance <= 20 then -- El rango original es 10, lo duplicamos a 20
- -- Transfiere la bomba al jugador objetivo
- Bomb.Parent = TargetCharacter
- print("Bomba transferida a:", player.Name)
- break
- end
- end
- end
- RunService.Heartbeat:Connect(ExtendBombRange)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement