Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function create(instanceType)
- return function(data)
- local obj = new(instanceType)
- for k, v in pairs(data) do
- do
- local s, e = pcall(function()
- if type(k) == "number" then
- v.Parent = obj
- elseif type(v) == "function" then
- obj[k]:Connect(v)
- else
- obj[k] = v
- end
- end)
- if not s then
- error("Create: could not set property " .. k .. " of " .. instanceType .. " (" .. e .. ")", 2)
- end
- end
- end
- return obj
- end
- end
- local loadingIcon = create("ImageLabel")({
- Name = "Disc",
- BackgroundTransparency = 1,
- ImageTransparency = 1,
- Image = "rbxassetid://2984940561",
- SizeConstraint = Enum.SizeConstraint.RelativeYY,
- Size = udim2(0.35, 0, 0.35, 0),
- AnchorPoint = vec2(0.5, 0.5),
- Position = udim2(0.5, 0, 0.5, 0),
- Rotation = 180,
- ZIndex = 11,
- Parent = gui
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement