local rayfield = loadstring(game:HttpGet("https://sirius.menu/rayfield"))() local window = rayfield:CreateWindow({ Name = "Spoof GUI", LoadingTitle = "Loading...", LoadingSubtitle = "By lilah", ConfigurationSaving = { Enabled = true, FolderName = "SpoofGUI", FileName = "Settings", }, }) local main_tab = window:CreateTab("Main") local spoof_mine_enabled = false local spoof_fight_enabled = false local spoof_npc_enabled = false main_tab:CreateToggle({ Name = "Spoof Mining", Default = false, Callback = function(value) spoof_mine_enabled = value end, }) main_tab:CreateToggle({ Name = "Spoof Fight Result", Default = false, Callback = function(value) spoof_fight_enabled = value end, }) main_tab:CreateToggle({ Name = "Spoof NPC Fighter", Default = false, Callback = function(value) spoof_npc_enabled = value end, }) local npc_names = {} for _, v in ipairs(workspace:WaitForChild("__MAP"):WaitForChild("NPCs"):GetDescendants()) do table.insert(npc_names, v.Name) end if getgenv().hook then print("ignoring rehook") else local original original = hookmetamethod(game, "__namecall", function(self, ...) local method = getnamecallmethod() local args = { ... } if tostring(self) == "RemoteEvent" and method == "FireServer" then if spoof_mine_enabled and type(args[2]) == "string" and string.find(args[2], "Zone") then args[2] = "Zone 8" args[3] = "Titanic" print("spoofed mine remote") elseif spoof_fight_enabled and type(args[2]) == "boolean" and args[2] == false then args[2] = true print("spoofed fight remote") elseif spoof_npc_enabled and type(args[2]) == "string" then for _, name in ipairs(npc_names) do if string.find(args[2], name) then args[2] = "Teto" print("spoofed npc name to Teto") break end end end return original(self, unpack(args)) end return original(self, ...) end) getgenv().hook = original end