Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- made by troll, based off of wallys ui library but more compatible with free exploits.
- -- Organic Milk#6128
- local lib = {
- windowcount = 0;
- counter = 0;
- }
- local ScreenGui = Instance.new("ScreenGui")
- function lib:CreateWindow(options)
- options = options or { }
- self.counter = self.counter + 1
- if self.counter > 1 then
- self.windowcount = self.windowcount + 1
- end
- local window = {count = 0}
- local Frame = Instance.new("Frame")
- local TextLabel = Instance.new("TextLabel")
- --Properties:
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.new(0, 0, 0)
- Frame.Size = UDim2.new(0, 150, 0, 60)
- Frame.Name = options.text or "window"
- Frame.Position = UDim2.new(0.191 * self.windowcount,0,0,0)
- TextLabel.Parent = Frame
- TextLabel.BackgroundColor3 = Color3.new(0, 0, 0)
- TextLabel.BorderColor3 = Color3.new(0.133333, 1, 0.0235294)
- TextLabel.BorderSizePixel = 2
- TextLabel.Size = UDim2.new(0, 150, 0, 30)
- TextLabel.Font = Enum.Font.GothamSemibold
- TextLabel.TextColor3 = Color3.new(1, 1, 1)
- TextLabel.TextSize = 14
- TextLabel.Text = options.text or "window"
- function window:AddButton(name, exe)
- self.count = self.count + 1
- Frame.Size = UDim2.new(0, 150,0, 40 + 40 * self.count)
- local TextButton = Instance.new("TextButton")
- TextButton.Parent = Frame
- TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton.BackgroundTransparency = 1
- TextButton.Position = UDim2.new(0, 5, 0, ((45 * self.count) - 20) + 5)
- TextButton.Size = UDim2.new(0, 150, 0, 30)
- TextButton.Font = Enum.Font.GothamSemibold
- TextButton.TextColor3 = Color3.new(1, 1, 1)
- TextButton.TextSize = 14
- TextButton.Text = name
- exe = exe or function() end
- TextButton.MouseButton1Click:Connect(exe)
- end
- function window:AddToggle(name, exe)
- exe = exe or function() end
- local toggle = false
- self.count = self.count + 1
- Frame.Size = UDim2.new(0, 150,0, 40 + 40 * self.count)
- local TextButton = Instance.new("TextButton")
- TextButton.Parent = Frame
- TextButton.BackgroundColor3 = Color3.new(1, 0, 0)
- TextButton.BackgroundTransparency = 1
- TextButton.Position = UDim2.new(0, 5, 0, ((45 * self.count) - 20) + 5)
- TextButton.Size = UDim2.new(0, 150, 0, 30)
- TextButton.Font = Enum.Font.GothamSemibold
- TextButton.TextColor3 = Color3.new(1, 0, 0)
- TextButton.TextSize = 14
- TextButton.Text = name..": OFF"
- TextButton.MouseButton1Click:Connect(function()
- if toggle == true then
- toggle = false
- else
- toggle = true
- end
- if toggle == true then
- TextButton.TextColor3 = Color3.new(0,1,0)
- TextButton.Text = name..": ON"
- else
- TextButton.TextColor3 = Color3.new(1,0,0)
- TextButton.Text = name..": OFF"
- end
- exe(toggle)
- end)
- end
- return window
- end
- return lib
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement