----------------------- -- brian -- ----------------------- ----------------------- -- apl -- ----------------------- --[[ Updated by brian --]] wait(2) local methods,storage = require(script.AM),game.ReplicatedStorage.AM.API for i,v in pairs(methods) do local handler; do if storage:FindFirstChild(i) then handler = storage[i] else handler = Instance.new(i == "PLA" and "RemoteFunction" or "RemoteEvent") handler.Name = i handler.Parent = storage end end if handler:IsA("RemoteFunction") then handler.OnServerInvoke = function(...) return v(...) end elseif handler:IsA("RemoteEvent") then handler.OnServerEvent:connect(v) end end