if not hookmetamethod then error("hookmetamethod is not supported in this environment.") end local game = game local UserInputService = game:GetService("UserInputService") local GuiService = game:GetService("GuiService") local Enum = Enum local oldNamecall local oldIndex oldNamecall = hookmetamethod(game, "__namecall", function(self, ...) local method = getnamecallmethod() if self == UserInputService or self == GuiService then if method == "GetPlatform" then return Enum.Platform.XBoxOne elseif method == "IsTenFootInterface" then return true elseif method == "GetPlatformName" then return "XboxOne" end end return oldNamecall(self, ...) end) oldIndex = hookmetamethod(game, "__index", function(tbl, idx) if tostring(getcallingscript()) ~= "ControlModule" and tbl == UserInputService then if idx == "TouchEnabled" then return false elseif idx == "MouseEnabled" then return false elseif idx == "KeyboardEnabled" then return false elseif idx == "GamepadEnabled" then return true elseif idx == "ControllerEnabled" then return true end end return oldIndex(tbl, idx) end) print("[Platform Spoofer] Successfully hooked platform and input methods to emulate Xbox One.")