Advertisement
Parellel_X

Test

Apr 8th, 2020
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.33 KB | None | 0 0
  1. local library = {}
  2. function library:CreateWindow()
  3.     local ScreenGui = Instance.new("ScreenGui")
  4.     local text1 = Instance.new("TextLabel", game.Workspace)
  5.     local Frame = Instance.new("Frame")
  6.     local TextButton = Instance.new("TextButton")
  7.     ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  8.     ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  9.     Frame.Parent = ScreenGui
  10.     Frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  11.     Frame.Position = UDim2.new(0.341240883, 0, 0.361328125, 0)
  12.     Frame.Size = UDim2.new(0, 353, 0, 151)
  13.     TextButton.Parent = Frame
  14.     TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  15.     TextButton.Position = UDim2.new(0.0198300276, 0, 0.0529801324, 0)
  16.     TextButton.Size = UDim2.new(0, 49, 0, 10)
  17.     TextButton.Font = Enum.Font.SourceSans
  18.     TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  19.     TextButton.TextSize = 14.000
  20.    
  21.     local EpiccLib = {}
  22.    
  23.     function EpiccLib:CreateButton()
  24.     text1.Text = ("Text")
  25.     TextButton.Parent = Frame
  26.     TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  27.     TextButton.Position = UDim2.new(0.0198300276, 0, 0.0529801324, 0)
  28.     TextButton.Size = UDim2.new(0, 49, 0, 10)
  29.     TextButton.Font = Enum.Font.SourceSans
  30.     TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  31.     TextButton.TextSize = 14.000
  32.     TextButton.Text = (text1.Text)
  33.     end
  34.     return
  35. end
  36.  
  37. return library
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement