Roblox Minerscave AUTO MINE

Roblox Minerscave AUTO MINE

_G.MiningTime = 1 -- Time between wait before mining the next block

while wait() do -- Start of loop / Remove if needed
local myposCRDNT = game:GetService("Players")[game.Players.LocalPlayer.Name].PlayerGui.HUDGui.DataFrame.Coord.Text -- Where is stored the UI coordinates
local strXX = tostring(myposCRDNT) -- Get your UI Coordinates
local str2XX = string.sub(strXX, 14) -- Remove the 'Coordinates:' text to keep only the coordinates
local text = tostring(str2XX)
local string2VEct0r = Vector3.new(text:match("(.+), (.+), (.+)"))  -- Convert the coordinate text to a Vector3
for x1 = -2,2 do -- Coordinates X
for x2 = -2,0 do -- Coordinates Y -- Note the Zero (0), this mean i will not mine upside of the ground
for x3 = -2,2 do -- Coordinates Z
local A_1 = false
local Event = game:GetService("ReplicatedStorage").GameRemotes.Attack -- Faking mining of the block
Event:InvokeServer(A_1)
local A_1 = string2VEct0r.x + tonumber(x1)
local A_2 = string2VEct0r.y + tonumber(x2)
local A_3 = string2VEct0r.z + tonumber(x3)
local Event = game:GetService("ReplicatedStorage").GameRemotes.BreakBlock -- Breaking the block
Event:InvokeServer(A_1, A_2, A_3)
wait(tonumber(_G.MiningTime)) -- Time between wait before mining the next block
for x=1,5 do
local Event = game:GetService("ReplicatedStorage").GameRemotes.AcceptBreakBlock -- Accepting the breaking of the block
Event:InvokeServer()
end
end
end
end
end -- End of loop / Remove if needed
%d bloggers like this: