Untitled
unknown
lua
2 years ago
557 B
36
Indexable
Never
local GameInfo = game:GetService("ReplicatedStorage")["GameInfo"] local Game = setmetatable({}, { __index = function(t, index) return GameInfo:GetAttribute(index) end, __newindex = function(t, index, value) GameInfo:SetAttribute(index, value) end, }) GameInfo:SetAttribute("Status", "In Game") GameInfo:SetAttribute("Duration", 300) print(GameInfo:GetAttribute("Duration")) Game.Status = "In Game" -- Define o atributo "Status" para "In Game" Game.Duration = 300 -- Define o atributo "Duration" para 300 print(Game.Duration) -- 300