local range = 8 local detail = 16 local RunService = game:GetService("RunService") local player = game.Players.LocalPlayer local charD = player.Character or player.CharacterAdded:Wait() local rooted = charD:WaitForChild("HumanoidRootPart") RunService.Heartbeat:Connect(function() for i = 1, detail do local angle = (i / detail) * math.pi * 2 local where = Vector3.new(math.sin(angle), 0, math.cos(angle)) * range local stuff = RaycastParams.new() stuff.FilterDescendantsInstances = {char} stuff.FilterType = Enum.RaycastFilterType.Exclude local rayD = workspace:Raycast(rooted.Position, where, stuff) if rayD then local args = { rayD.Instance } game:GetService("ReplicatedStorage"):WaitForChild("MineRequestEvent"):FireServer(unpack(args)) end end end)