-- [[ 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 Players = game:GetService("Players").LocalPlayer local Workspace = game:GetService("Workspace") 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 = ReplicatedStorage.Modules.Shared.Event.Remotes.DamageEntity local MobFolder = Workspace.Mobs local Range = 30 Players.CharacterAdded:Connect(function(newchar) Character = newchar HumanoidRootPart = newchar:WaitForChild("HumanoidRootPart") end) RunService.Heartbeat:Connect(function(...) local targets = {} for _, obj in MobFolder:GetChildren() do local MobRoot = obj:FindFirstChild("HumanoidRootPart") local Humanoid = obj:FindFirstChildOfClass("Humanoid") if obj:IsA("Model") and Humanoid and Humanoid.Health > 0 and MobRoot then if (HumanoidRootPart.Position - MobRoot.Position).Magnitude <= Range then table.insert(targets, targets[1], "Melee") end end end if #targets > 0 then DamageEvent:FireServer(targets) end end)