Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Created by HappyH0lidays2021 --
- -- This script is useful for creating Guis in client-sided scripts
- local Script = {}
- -----------------------------------------------
- -- Functions
- -----------------------------------------------
- function Script.Create(Parent, PropertiesTable)
- local New = Instance.new("ScreenGui", Parent)
- New.Name = "_create"
- New.ResetOnSpawn = PropertiesTable[1]
- New.IgnoreGuiInset = PropertiesTable[2]
- New.Enabled = PropertiesTable[3]
- return New
- end
- function Script.MakeFrame(Parent, PropertiesTable)
- local New = Instance.new("Frame", Parent)
- New.Name = "_frame"
- New.Position = PropertiesTable[1]
- New.Size = PropertiesTable[2]
- New.BackgroundColor3 = PropertiesTable[3]
- New.BackgroundTransparency = PropertiesTable[4]
- New.BorderColor3 = PropertiesTable[5]
- New.BorderMode = PropertiesTable[6]
- New.BorderSizePixel = PropertiesTable[7]
- New.Visible = PropertiesTable[8]
- return New
- end
- function Script.MakeButton(Parent, PropertiesTable, TextProperties)
- local New = Instance.new("TextButton", Parent)
- New.Name = "_button"
- New.Position = PropertiesTable[1]
- New.Size = PropertiesTable[2]
- New.AutoButtonColor = PropertiesTable[3]
- New.BackgroundColor3 = PropertiesTable[3]
- New.BackgroundTransparency = PropertiesTable[4]
- New.BorderColor3 = PropertiesTable[5]
- New.BorderMode = PropertiesTable[6]
- New.BorderSizePixel = PropertiesTable[7]
- New.Visible = PropertiesTable[8]
- New.Text = TextProperties[1]
- New.TextColor3 = TextProperties[2]
- New.TextSize = TextProperties[3]
- New.Font = TextProperties[4]
- New.TextScaled = TextProperties[5]
- New.TextStrokeColor3 = TextProperties[6]
- New.TextTransparency = TextProperties[7]
- New.TextWrapped = TextProperties[8]
- return New
- end
- return Script
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement