Skip to content

slf0Dev/my-ui-library-making-utility

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Instance maker module

Made by SALFIIN#2470

Importing the module into ur library

so we need to just make loadstring to the module source

local Module = loadstring(game:HttpGet("https://github.com/slf0Dev/my-ui-library-making-utility/raw/main/InstanceMaker.lua"))();

Functions

there is only one function named "Instance", it creates instance that you need. how to use it?

local Module = loadstring(game:HttpGet("https://github.com/slf0Dev/my-ui-library-making-utility/raw/main/InstanceMaker.lua"))(); -- this is our loadstring to module that we got on 1st step

local Frame = Module.Instance(instance : string ,properties : table) -- returns an created instance

Special

you can add UICorner to the instance you created in 1 line, just add an "CornerRadius" property and set the radius you need.

Example

there is an example:

local Module = loadstring(game:HttpGet("https://github.com/slf0Dev/my-ui-library-making-utility/raw/main/InstanceMaker.lua"))();

local Screengui = Module.Instance("ScreenGui" ,{
  Parent = game.CoreGui;
  Name = "Example"
})

local CornerFrame = Module.Instance("Frame",{
  Parent = Screengui;
  Name = "CornerFrame";
  BackgroundColor3 = Color3.fromRGB(0,255,0);
  BackgroundTransparency = 0;
  CornerRadius = UDim.new(0,100);
  Position = UDim2.new(0.45,0,0.5,0);
  Size = UDim2.new(0,50,0,50)
})

local SimpleFrame = Module.Instance("Frame",{
  Parent = Screengui;
  Name = "SimpleFrame";
  BackgroundColor3 = Color3.fromRGB(0,0,255);
  BackgroundTransparency = 0;
  Position = UDim2.new(0.5,0,0.5,0);
  Size = UDim2.new(0,50,0,50)
})

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages