if v.ClassName == "Model" and v:FindFirstChild("HumanoidRootPart") and (player.Character.HumanoidRootPart.Position - v.HumanoidRootPart.Position).magnitude < 50 and v ...
game:GetService("ReplicatedStorage").Remotes.ClientToServerRemoteEvent:FireServer({ ["packetId"]= 5, ["mobInstanceId"]= v.InstanceId.Value, ["damage"]= 15 ...