Please read the comments i left in the script if that doesnt work Heres an updated version to help -- Script initialization with type annotations for functions and documentation for Roblox -- Import the main API module local API = require(script.MAIN) -- This is the main API for emulation. --[[ Function: Emulate_Libraries Description: Emulates specific properties or methods of a given object (e.g., game). Parameters: - originalObject: The original object to spoof (e.g., game). - properties: A table containing the properties and methods to spoof. Usage Example: local spoofedGame = API.Emulate_Libraries(game, { CreatorId = 123 }) --]] -- Define a table to hold the spoofed properties for the 'game' object local SpoofedGameProperties (function() local game = game -- Alias for the 'game' object for convenience -- Define spoofed properties and functions for the 'game' object SpoofedGameProperties = { -- Spoof the CreatorId property of the 'game' object CreatorId = 123, -- Spoof the GetService function of the 'game' object GetService = function(UserData, ...) local Arguments = {...} -- Capture all arguments passed to the function -- Log the arguments for debugging warn("Arguments passed to GetService:", Arguments) -- Call the original GetService function with the provided arguments return game:GetService(...) end, } end)() --[[ Function: Init Description: Initializes the environment with spoofed values and functions. Parameters: - data: A table containing the initial data to use for spoofing. - debug: A boolean indicating whether to enable debug logging. Usage Example: local modifiedEnv = API.Init({ game = spoofedGame }, true) --]] -- Create a spoofed version of the 'game' object using the API local SpoofedGame = API.Emulate_Libraries(game, SpoofedGameProperties) -- Define the initial data for the modified environment local Init_Data = { game = SpoofedGame, -- Spoofed 'game' object Game = SpoofedGame, -- Alias for the spoofed 'game' object } --[[ Function: Emulate_Lua_Functions Description: Emulates Lua functions by providing custom implementations. Parameters: - functions: A table containing the functions to spoof. Usage Example: API.Emulate_Lua_Functions({ type = customTypeFunction }) --]] -- Define a custom type function to spoof the 'type' function local SpoofedType (function() local game = game local type = type SpoofedType = function(Item) local Type = type(Item) if Item == SpoofedGame then return type(game) end return Type end end)() -- Define spoofed functions to override Lua functions local SpoofedFuncs = { type = SpoofedType } -- Initialize the modified environment with the spoofed game object and enable debugging local ModifiedEnvironment = API.Init(Init_Data, true) -- Apply the spoofed Lua functions to the environment API.Emulate_Lua_Functions(SpoofedFuncs) -- Set the modified environment for the current script setfenv(0, ModifiedEnvironment) setfenv(1, ModifiedEnvironment) -- Example usage to check if the game.CreatorId is spoofed correctly if game.CreatorId == 123 then warn('Spoofed!!') else warn('Not spoofed!') end