-- [[ 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 ]] local Workspace = game:GetService("Workspace") local Players = game:GetService("Players").LocalPlayer local ReplicatedStorage = game:GetService("ReplicatedStorage") local RunService = game:GetService("RunService") local Character = Players.Character or Players.CharacterAdded:Wait() local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart") local DamageEvent = require(ReplicatedStorage.Modules.Shared.RemoteService) local MobFolder = Workspace.Mobs local Range = 250 Players.CharacterAdded:Connect(function(newchar) Character = newchar HumanoidRootPart = newchar:WaitForChild("HumanoidRootPart") end) RunService.Heartbeat:Connect(function() local Targets = {} for _, Mob in MobFolder:GetDescendants() do local MobRoot = Mob:FindFirstChild("HumanoidRootPart") local Humanoid = Mob:FindFirstChildWhichIsA("Humanoid") if Mob:IsA("Model") and Humanoid and Humanoid.Health > 0 and MobRoot then if (HumanoidRootPart.Position - MobRoot.Position).Magnitude <= Range then table.insert(Targets, Mob) end end end if #Targets > 0 then for _, mob in Targets do DamageEvent:InvokeServer("Damage", Targets) end end end)