-- [[ Rscripts Risk Notice ]] -- This script is not verified by rscripts.net. Deal with caution. -- -- Stay safe: -- • Never log in on unofficial Roblox sites or lookalike domains. -- • Real Roblox links use roblox.com (check the .com ending). -- • Treat fake Roblox login / "claim reward" pages as phishing. -- [[ End Rscripts Risk Notice ]] -- This script inflicts damage to nearby players or NPCs within a specific radius local Players = game:GetService("Players") local RunService = game:GetService("RunService") local character = script.Parent local humanoidRootPart = character:WaitForChild("HumanoidRootPart") local playerHumanoid = character:WaitForChild("Humanoid") -- Settings local DAMAGE_RADIUS = 15 -- Distance in studs local DAMAGE_AMOUNT = 10 -- Damage inflicted per tick local TICK_RATE = 1.0 -- Time between damage ticks (in seconds) local nextDamageTime = 0 RunService.Heartbeat:Connect(function() -- Check if enough time has passed based on the TICK_RATE if os.clock() < nextDamageTime then return end nextDamageTime = os.clock() + TICK_RATE -- Check all characters in the workspace for _, obj in pairs(workspace:GetChildren()) do local enemyHumanoid = obj:FindFirstChildOfClass("Humanoid") local enemyRootPart = obj:FindFirstChild("HumanoidRootPart") -- Make sure it's an enemy, it's alive, and it's not the local character if enemyHumanoid and enemyRootPart and obj ~= character and enemyHumanoid.Health > 0 then -- Calculate the distance between the user and the enemy local distance = (humanoidRootPart.Position - enemyRootPart.Position).Magnitude if distance <= DAMAGE_RADIUS then -- Take damage enemyHumanoid:TakeDamage(DAMAGE_AMOUNT) end end end end)