local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))() local Window = Rayfield:CreateWindow({ Name = "Pixelated", LoadingTitle = "Pixelated", LoadingSubtitle = "Scripts Loaded", ConfigurationSaving = { Enabled = false, }, Discord = { Enabled = false, }, KeySystem = false, }) -- Instantly overlaying notification Rayfield:Notify({ Title = "Guide", Content = "AutoMine Will help you mine faster so you have to mine first", Duration = 10, Image = 4483362458, -- Built-in Rayfield Info Icon Actions = { Ignore = { Name = "Okay", Callback = function() -- Closes when clicked end }, }, }) local MainTab = Window:CreateTab("Main Script", nil) -- Services local RunService = game:GetService("RunService") local ReplicatedStorage = game:GetService("ReplicatedStorage") ---------------------------------------------------------------------- -- 1. SemiFastAutoMine Implementation ---------------------------------------------------------------------- local autoMineConnection = nil local latestRemote = nil local latestArgs = {} local firingOurself = false -- Metatable hook strictly listens, never spams on its own local oldNamecall oldNamecall = hookmetamethod(game, "__namecall", function(self, ...) if firingOurself then return oldNamecall(self, ...) end local method = getnamecallmethod() local args = {...} if (method == "FireServer" or method == "fireServer") and self.ClassName == "RemoteEvent" then if string.find(self.Name, "HitWall") then latestRemote = self latestArgs = args end end return oldNamecall(self, ...) end) MainTab:CreateToggle({ Name = "SemiFastAutoMine", CurrentValue = false, Flag = "AutoMineToggle", Callback = function(Value) if Value then -- Turn ON instantly autoMineConnection = RunService.Heartbeat:Connect(function() if latestRemote and latestRemote.Parent and #latestArgs > 0 then firingOurself = true for i = 1, 5 do latestRemote:FireServer(unpack(latestArgs)) end firingOurself = false end end) else -- Turn OFF instantly if autoMineConnection then autoMineConnection:Disconnect() autoMineConnection = nil end end end, }) ---------------------------------------------------------------------- -- 2. AutoStrength Implementation ---------------------------------------------------------------------- local autoStrengthConnection = nil local clickRemote = nil -- Task spawn prevents the script from freezing if the remotes aren't found instantly task.spawn(function() pcall(function() clickRemote = ReplicatedStorage:WaitForChild("Remotes", 5):WaitForChild("Server", 5):WaitForChild("Click", 5) end) end) MainTab:CreateToggle({ Name = "AutoStrength", CurrentValue = false, Flag = "AutoStrengthToggle", Callback = function(Value) if Value then -- Turn ON instantly autoStrengthConnection = RunService.Heartbeat:Connect(function() if clickRemote then for i = 1, 5 do clickRemote:FireServer() end end end) else -- Turn OFF instantly if autoStrengthConnection then autoStrengthConnection:Disconnect() autoStrengthConnection = nil end end end, })