Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function reverseColor(color)
- local h, s, v = Color3.toHSV(color);
- if(h == 0 and s == 0) then
- return Color3.fromHSV(h, s, 1 - v);
- end;
- return color;
- end;
- local old;
- old = hookfunction(Drawing.new, function(type)
- local obj = old(type);
- if(type == 'Text') then
- obj.OutlineColor = reverseColor(obj.OutlineColor);
- end;
- local fakeObj = setmetatable({}, {
- __index = function(self, i)
- return obj[i];
- end,
- __newindex = function(self, p, v)
- if(p == 'Color' or p == 'OutlineColor') then
- v = reverseColor(v);
- end;
- obj[p] = v;
- end;
- });
- return fakeObj;
- end);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement