Advertisement
Ignas_Liutvinas_Rly

Untitled

Dec 26th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local winCount = 0
  2. local core = game:GetService'CoreGui'
  3. local e = Instance.new("ScreenGui",core)
  4. e.Name = "OkGui"
  5. local addWindow = function(Name)
  6. winCount = winCount + 1
  7. local Bar = Instance.new("Frame")
  8. local Tiitle = Instance.new("TextLabel")
  9. local Container = Instance.new'Frame'
  10. local ListLayout = Instance.new("UIListLayout")
  11. Bar.Name = Name
  12. Bar.Parent = e
  13. Bar.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
  14. Bar.BorderSizePixel = 0
  15. Bar.Position = UDim2.new(0, (15 + ((170 * winCount) - 70)), 0, 15)
  16. Bar.Size = UDim2.new(0, 109, 0, 28)
  17. Bar.Active = true
  18. Bar.Draggable = true
  19. Tiitle.Name = "Tiitle"
  20. Tiitle.Parent = Bar
  21. Tiitle.BackgroundColor3 = Color3.new(1, 1, 1)
  22. Tiitle.BackgroundTransparency = 1
  23. Tiitle.Size = UDim2.new(1, 0, 1, 0)
  24. Tiitle.Font = Enum.Font.SourceSans
  25. Tiitle.TextColor3 = Color3.new(0, 0, 0)
  26. Tiitle.TextSize = 14
  27. Tiitle.Text = Name
  28. Tiitle.TextColor3 = Color3.fromRGB(255,255,255)
  29. Tiitle.Font = Enum.Font.SourceSansSemibold
  30. Tiitle.TextScaled = true
  31. Container.Name = "Container"
  32. Container.Parent = Bar
  33. Container.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
  34. Container.BorderSizePixel = 0
  35. Container.ClipsDescendants = true
  36. Container.Position = UDim2.new(0, 0, 1.28571427, 0)
  37. Container.Size = UDim2.new(1, 0,0, 7)
  38. Container.SizeConstraint = Enum.SizeConstraint.RelativeXX
  39. ListLayout.Parent = Container
  40. ListLayout.Padding = UDim.new(0,2)
  41. end
  42. local addButton = function(Text,Parent,Callback)
  43. local Callback = Callback or function() end
  44. local Button_Light = Instance.new("Frame")
  45. local Click = Instance.new("TextButton")
  46. e[Parent].Container.Size = e[Parent].Container.Size + UDim2.new(0,0,0,23.20)
  47. Button_Light.Name = "Button_Light"
  48. Button_Light.Parent = e[Parent].Container
  49. Button_Light.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
  50. Button_Light.BorderSizePixel = 0
  51. Button_Light.Size = UDim2.new(1, 0, 0, 23)
  52. Click.Name = "Click"
  53. Click.Parent = Button_Light
  54. Click.BackgroundColor3 = Color3.new(1, 1, 1)
  55. Click.BackgroundTransparency = 1
  56. Click.BorderSizePixel = 0
  57. Click.Size = UDim2.new(0, 109, 0, 23)
  58. Click.Font = Enum.Font.SourceSansSemibold
  59. Click.Text = Text
  60. Click.TextColor3 = Color3.new(1, 1, 1)
  61. Click.TextScaled = true
  62. Click.TextSize = 14
  63. Click.TextWrapped = true
  64. Click.MouseButton1Click:connect(Callback)
  65. Button_Light.MouseEnter:connect(function()
  66. game:GetService("TweenService"):Create(Button_Light,TweenInfo.new(0.6),{BackgroundColor3 = Color3.fromRGB(80,80,80)}):Play()
  67. end)
  68. Button_Light.MouseLeave:connect(function()
  69. game:GetService("TweenService"):Create(Button_Light,TweenInfo.new(0.6),{BackgroundColor3 = Color3.fromRGB(40,40,40)}):Play()
  70. end)
  71. end
  72. local addToggle = function(Text,Parent,Callback)
  73. local Callback = Callback or function() end
  74. local Button_Light = Instance.new("Frame")
  75. local Click = Instance.new("TextButton")
  76. local on = false
  77. e[Parent].Container.Size = e[Parent].Container.Size + UDim2.new(0,0,0,23.20)
  78. Button_Light.Name = "Button_Light"
  79. Button_Light.Parent = e[Parent].Container
  80. Button_Light.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
  81. Button_Light.BorderSizePixel = 0
  82. Button_Light.Size = UDim2.new(1, 0, 0, 23)
  83. Click.Name = "Click"
  84. Click.Parent = Button_Light
  85. Click.BackgroundColor3 = Color3.new(1, 1, 1)
  86. Click.BackgroundTransparency = 1
  87. Click.BorderSizePixel = 0
  88. Click.Size = UDim2.new(0, 109, 0, 23)
  89. Click.Font = Enum.Font.SourceSansSemibold
  90. Click.Text = Text
  91. Click.TextColor3 = Color3.fromRGB(255,41,41)
  92. Click.TextScaled = true
  93. Click.TextSize = 14
  94. Click.TextWrapped = true
  95. Button_Light.MouseEnter:connect(function()
  96. game:GetService("TweenService"):Create(Button_Light,TweenInfo.new(0.6),{BackgroundColor3 = Color3.fromRGB(80,80,80)}):Play()
  97. end)
  98. Button_Light.MouseLeave:connect(function()
  99. game:GetService("TweenService"):Create(Button_Light,TweenInfo.new(0.6),{BackgroundColor3 = Color3.fromRGB(40,40,40)}):Play()
  100. end)
  101. Click.MouseButton1Click:connect(function()
  102. if on == false then
  103. game:GetService("TweenService"):Create(Click,TweenInfo.new(0.6),{TextColor3 = Color3.fromRGB(146, 255, 78)}):Play()
  104. on = true
  105.  
  106. else
  107.  
  108. game:GetService("TweenService"):Create(Click,TweenInfo.new(0.6),{TextColor3 = Color3.fromRGB(255,41,41)}):Play()
  109.  
  110. on = false
  111.  
  112. end
  113.  
  114. Callback()
  115.  
  116. end)
  117.  
  118. end
  119.  
  120. local addText = function(Text,Parent)
  121.  
  122. local Button_Light = Instance.new("Frame")
  123. local txt = Instance.new("TextLabel")
  124.  
  125. e[Parent].Container.Size = e[Parent].Container.Size + UDim2.new(0,0,0,23.20)
  126.  
  127. Button_Light.Name = "Button_Light"
  128. Button_Light.Parent = e[Parent].Container
  129. Button_Light.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
  130. Button_Light.BorderSizePixel = 0
  131. Button_Light.Size = UDim2.new(1, 0, 0, 23)
  132.  
  133. txt.Name = "Text"
  134. txt.Parent = Button_Light
  135. txt.BackgroundColor3 = Color3.new(1, 1, 1)
  136. txt.BackgroundTransparency = 1
  137. txt.BorderSizePixel = 0
  138. txt.Size = UDim2.new(0, 109, 0, 23)
  139. txt.Font = Enum.Font.SourceSansSemibold
  140. txt.Text = Text
  141. txt.TextColor3 = Color3.fromRGB(255,255,255)
  142. txt.TextScaled = true
  143. txt.TextSize = 14
  144. txt.TextWrapped = true
  145.  
  146. Button_Light.MouseEnter:connect(function()
  147. game:GetService("TweenService"):Create(Button_Light,TweenInfo.new(0.6),{BackgroundColor3 = Color3.fromRGB(80,80,80)}):Play()
  148. end)
  149.  
  150. Button_Light.MouseLeave:connect(function()
  151. game:GetService("TweenService"):Create(Button_Light,TweenInfo.new(0.6),{BackgroundColor3 = Color3.fromRGB(40,40,40)}):Play()
  152. end)
  153.  
  154. end
  155.  
  156. local addBox = function(Text,Parent,Callback)
  157.  
  158. local Callback = Callback or function() end
  159.  
  160. local none = Instance.new("Frame")
  161. local EnterBox = Instance.new("TextBox")
  162.  
  163. e[Parent].Container.Size = e[Parent].Container.Size + UDim2.new(0,0,0,23.20)
  164.  
  165. none.Name = "none"
  166. none.Parent = e[Parent].Container
  167. none.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
  168. none.BorderSizePixel = 0
  169. none.Size = UDim2.new(1, 0, 0, 23)
  170.  
  171. EnterBox.Name = "EnterBox"
  172. EnterBox.Parent = none
  173. EnterBox.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  174. EnterBox.BorderSizePixel = 0
  175. EnterBox.Size = UDim2.new(1, 0, 1, 0)
  176. EnterBox.Font = Enum.Font.SourceSansSemibold
  177. EnterBox.PlaceholderText = Text
  178. EnterBox.Text = ""
  179. EnterBox.TextColor3 = Color3.new(1, 1, 1)
  180. EnterBox.TextScaled = true
  181. EnterBox.TextSize = 14
  182. EnterBox.TextWrapped = true
  183.  
  184. EnterBox.FocusLost:Connect(function(...)
  185. Callback(EnterBox,...)
  186. wait(0.5)
  187. EnterBox.Text = ""
  188. end)
  189.  
  190. end
  191.  
  192. addWindow("test")
  193. addButton("Print","test",function()
  194. print("works")
  195. end)
  196. addToggle("Speed","test",function()
  197. if game.Players.LocalPlayer.Character.Humanoid.WalkSpeed == 16 then
  198. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 100
  199. else
  200. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  201. end
  202. end)
  203. addText("Awesome","test")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement