Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local winCount = 0
- local core = game:GetService'CoreGui'
- local e = Instance.new("ScreenGui",core)
- e.Name = "OkGui"
- local addWindow = function(Name)
- winCount = winCount + 1
- local Bar = Instance.new("Frame")
- local Tiitle = Instance.new("TextLabel")
- local Container = Instance.new'Frame'
- local ListLayout = Instance.new("UIListLayout")
- Bar.Name = Name
- Bar.Parent = e
- Bar.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
- Bar.BorderSizePixel = 0
- Bar.Position = UDim2.new(0, (15 + ((170 * winCount) - 70)), 0, 15)
- Bar.Size = UDim2.new(0, 109, 0, 28)
- Bar.Active = true
- Bar.Draggable = true
- Tiitle.Name = "Tiitle"
- Tiitle.Parent = Bar
- Tiitle.BackgroundColor3 = Color3.new(1, 1, 1)
- Tiitle.BackgroundTransparency = 1
- Tiitle.Size = UDim2.new(1, 0, 1, 0)
- Tiitle.Font = Enum.Font.SourceSans
- Tiitle.TextColor3 = Color3.new(0, 0, 0)
- Tiitle.TextSize = 14
- Tiitle.Text = Name
- Tiitle.TextColor3 = Color3.fromRGB(255,255,255)
- Tiitle.Font = Enum.Font.SourceSansSemibold
- Tiitle.TextScaled = true
- Container.Name = "Container"
- Container.Parent = Bar
- Container.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
- Container.BorderSizePixel = 0
- Container.ClipsDescendants = true
- Container.Position = UDim2.new(0, 0, 1.28571427, 0)
- Container.Size = UDim2.new(1, 0,0, 7)
- Container.SizeConstraint = Enum.SizeConstraint.RelativeXX
- ListLayout.Parent = Container
- ListLayout.Padding = UDim.new(0,2)
- end
- local addButton = function(Text,Parent,Callback)
- local Callback = Callback or function() end
- local Button_Light = Instance.new("Frame")
- local Click = Instance.new("TextButton")
- e[Parent].Container.Size = e[Parent].Container.Size + UDim2.new(0,0,0,23.20)
- Button_Light.Name = "Button_Light"
- Button_Light.Parent = e[Parent].Container
- Button_Light.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
- Button_Light.BorderSizePixel = 0
- Button_Light.Size = UDim2.new(1, 0, 0, 23)
- Click.Name = "Click"
- Click.Parent = Button_Light
- Click.BackgroundColor3 = Color3.new(1, 1, 1)
- Click.BackgroundTransparency = 1
- Click.BorderSizePixel = 0
- Click.Size = UDim2.new(0, 109, 0, 23)
- Click.Font = Enum.Font.SourceSansSemibold
- Click.Text = Text
- Click.TextColor3 = Color3.new(1, 1, 1)
- Click.TextScaled = true
- Click.TextSize = 14
- Click.TextWrapped = true
- Click.MouseButton1Click:connect(Callback)
- Button_Light.MouseEnter:connect(function()
- game:GetService("TweenService"):Create(Button_Light,TweenInfo.new(0.6),{BackgroundColor3 = Color3.fromRGB(80,80,80)}):Play()
- end)
- Button_Light.MouseLeave:connect(function()
- game:GetService("TweenService"):Create(Button_Light,TweenInfo.new(0.6),{BackgroundColor3 = Color3.fromRGB(40,40,40)}):Play()
- end)
- end
- local addToggle = function(Text,Parent,Callback)
- local Callback = Callback or function() end
- local Button_Light = Instance.new("Frame")
- local Click = Instance.new("TextButton")
- local on = false
- e[Parent].Container.Size = e[Parent].Container.Size + UDim2.new(0,0,0,23.20)
- Button_Light.Name = "Button_Light"
- Button_Light.Parent = e[Parent].Container
- Button_Light.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
- Button_Light.BorderSizePixel = 0
- Button_Light.Size = UDim2.new(1, 0, 0, 23)
- Click.Name = "Click"
- Click.Parent = Button_Light
- Click.BackgroundColor3 = Color3.new(1, 1, 1)
- Click.BackgroundTransparency = 1
- Click.BorderSizePixel = 0
- Click.Size = UDim2.new(0, 109, 0, 23)
- Click.Font = Enum.Font.SourceSansSemibold
- Click.Text = Text
- Click.TextColor3 = Color3.fromRGB(255,41,41)
- Click.TextScaled = true
- Click.TextSize = 14
- Click.TextWrapped = true
- Button_Light.MouseEnter:connect(function()
- game:GetService("TweenService"):Create(Button_Light,TweenInfo.new(0.6),{BackgroundColor3 = Color3.fromRGB(80,80,80)}):Play()
- end)
- Button_Light.MouseLeave:connect(function()
- game:GetService("TweenService"):Create(Button_Light,TweenInfo.new(0.6),{BackgroundColor3 = Color3.fromRGB(40,40,40)}):Play()
- end)
- Click.MouseButton1Click:connect(function()
- if on == false then
- game:GetService("TweenService"):Create(Click,TweenInfo.new(0.6),{TextColor3 = Color3.fromRGB(146, 255, 78)}):Play()
- on = true
- else
- game:GetService("TweenService"):Create(Click,TweenInfo.new(0.6),{TextColor3 = Color3.fromRGB(255,41,41)}):Play()
- on = false
- end
- Callback()
- end)
- end
- local addText = function(Text,Parent)
- local Button_Light = Instance.new("Frame")
- local txt = Instance.new("TextLabel")
- e[Parent].Container.Size = e[Parent].Container.Size + UDim2.new(0,0,0,23.20)
- Button_Light.Name = "Button_Light"
- Button_Light.Parent = e[Parent].Container
- Button_Light.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
- Button_Light.BorderSizePixel = 0
- Button_Light.Size = UDim2.new(1, 0, 0, 23)
- txt.Name = "Text"
- txt.Parent = Button_Light
- txt.BackgroundColor3 = Color3.new(1, 1, 1)
- txt.BackgroundTransparency = 1
- txt.BorderSizePixel = 0
- txt.Size = UDim2.new(0, 109, 0, 23)
- txt.Font = Enum.Font.SourceSansSemibold
- txt.Text = Text
- txt.TextColor3 = Color3.fromRGB(255,255,255)
- txt.TextScaled = true
- txt.TextSize = 14
- txt.TextWrapped = true
- Button_Light.MouseEnter:connect(function()
- game:GetService("TweenService"):Create(Button_Light,TweenInfo.new(0.6),{BackgroundColor3 = Color3.fromRGB(80,80,80)}):Play()
- end)
- Button_Light.MouseLeave:connect(function()
- game:GetService("TweenService"):Create(Button_Light,TweenInfo.new(0.6),{BackgroundColor3 = Color3.fromRGB(40,40,40)}):Play()
- end)
- end
- local addBox = function(Text,Parent,Callback)
- local Callback = Callback or function() end
- local none = Instance.new("Frame")
- local EnterBox = Instance.new("TextBox")
- e[Parent].Container.Size = e[Parent].Container.Size + UDim2.new(0,0,0,23.20)
- none.Name = "none"
- none.Parent = e[Parent].Container
- none.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
- none.BorderSizePixel = 0
- none.Size = UDim2.new(1, 0, 0, 23)
- EnterBox.Name = "EnterBox"
- EnterBox.Parent = none
- EnterBox.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
- EnterBox.BorderSizePixel = 0
- EnterBox.Size = UDim2.new(1, 0, 1, 0)
- EnterBox.Font = Enum.Font.SourceSansSemibold
- EnterBox.PlaceholderText = Text
- EnterBox.Text = ""
- EnterBox.TextColor3 = Color3.new(1, 1, 1)
- EnterBox.TextScaled = true
- EnterBox.TextSize = 14
- EnterBox.TextWrapped = true
- EnterBox.FocusLost:Connect(function(...)
- Callback(EnterBox,...)
- wait(0.5)
- EnterBox.Text = ""
- end)
- end
- addWindow("test")
- addButton("Print","test",function()
- print("works")
- end)
- addToggle("Speed","test",function()
- if game.Players.LocalPlayer.Character.Humanoid.WalkSpeed == 16 then
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 100
- else
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
- end
- end)
- addText("Awesome","test")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement