sloppy raycast fixed
Key Required

sloppy raycast fixed

[Update] Mining Empireuniiphysicuniiphysic 1.2K views 401 executesUpdated Mar 29, 2026
5.0/ 5(1 votes)
10100% Positive
Lua Script•27 lines (782 chars)
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)

Features & Information

auto mines arounds you adjustable radius + time

Community Comments (1)

wza123zawza123zaApr 4, 2026

I think it’s not working. ?