Advertisement
Guest User

Untitled

a guest
Mar 14th, 2020
3,833
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.52 KB | None | 0 0
  1. -- Join the discord to be the first to know of updates! discord.gg/7Cb8bS2
  2. local function randomName()
  3. local data = ""
  4. for i=0,20,1 do
  5. data = data .. tostring(string.char(math.ceil(math.random() * 254)))
  6. end
  7. return data
  8. end
  9. if game.CoreGui:FindFirstChild("Roblox")then
  10. game.CoreGui.Roblox:Destroy()
  11. end
  12. local ui = Instance.new("ScreenGui")
  13. ui.Name = "Roblox"
  14. ui.Parent = game:GetService("CoreGui")
  15.  
  16. local library = {}
  17.  
  18. local TweenService = game:GetService("TweenService")
  19. local uis = game:GetService("UserInputService")
  20. local tabcount = 0
  21. local rainbow = 0
  22. _G.breatherate = 0.005
  23. local color
  24. local rainbows = {}
  25. local buttoncount = {}
  26.  
  27. local function draggable(obj)
  28. local globals = {}
  29. globals.dragging=nil
  30. globals.uiorigin=nil
  31. globals.morigin=nil
  32. obj.InputBegan:Connect(function(input)
  33. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  34. globals.dragging = true
  35. globals.uiorigin = obj.Position
  36. globals.morigin = input.Position
  37. input.Changed:Connect(function()
  38. if input.UserInputState == Enum.UserInputState.End then
  39. globals.dragging = false
  40. end
  41. end)
  42. end
  43. end)
  44. uis.InputChanged:Connect(function(input)
  45. if input.UserInputType == Enum.UserInputType.MouseMovement and globals.dragging then
  46. local change = input.Position - globals.morigin
  47. obj.Position = UDim2.new(globals.uiorigin.X.Scale,globals.uiorigin.X.Offset+change.X,globals.uiorigin.Y.Scale,globals.uiorigin.Y.Offset+change.Y)
  48. end
  49. end)
  50. end
  51.  
  52. function library:Create(obj, data)
  53. obj = Instance.new(obj)
  54. for i, v in pairs(data) do
  55. if i ~= "Parent" then
  56. obj[i] = v
  57. end
  58. end
  59. obj.Parent = data.Parent
  60. return obj
  61. end
  62.  
  63. function library:CreateTab(name, rainbow, color)
  64. tabcount = tabcount+1
  65. buttoncount[tabcount] = 0
  66. if rainbow then
  67. table.insert(rainbows,#rainbows+1,tabcount)
  68. color = Color3.new(1,0,0)
  69. elseif color == nil then
  70. color = Color3.new(1,0,0)
  71. end
  72. local tab = self:Create("Frame", {
  73. Name = tostring(tabcount),
  74. Parent = ui,
  75. Active = true,
  76. BackgroundColor3 = Color3.new(1, 1, 1),
  77. BackgroundTransparency = 1,
  78. Position = UDim2.new(0, (tabcount)*13+(tabcount-1)*200, 0.0128041022, 0),
  79. Size = UDim2.new(0, 200, 0, 40),
  80. })
  81. local top = self:Create("Frame", {
  82. Name = "Top",
  83. Parent = tab,
  84. BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647),
  85. BorderColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314),
  86. BorderSizePixel = 3,
  87. Size = UDim2.new(1, 0, 1, -10),
  88. })
  89. local title = self:Create("TextLabel", {
  90. Parent = top,
  91. BackgroundTransparency = 1,
  92. Position = UDim2.new(0, 0, -0.006, 0),
  93. Size = UDim2.new(.035, 158, 1, 0),
  94. Font = Enum.Font.SourceSansSemibold,
  95. Text = name,
  96. TextColor3 = Color3.new(1, 1, 1),
  97. TextSize = 25,
  98. })
  99. local minimize = self:Create("TextButton", {
  100. Parent = top,
  101. BackgroundTransparency = 1,
  102. Position = UDim2.new(0.855, 0, 0.181, 0),
  103. Size = UDim2.new(0, 18, 0, 19),
  104. Font = Enum.Font.SourceSansSemibold,
  105. Text = "-",
  106. TextColor3 = Color3.new(1, 1, 1),
  107. TextSize = 35,
  108. })
  109. local rainbow = self:Create("Frame", {
  110. Parent = top,
  111. BackgroundColor3 = color,
  112. BorderSizePixel = 0,
  113. Position = UDim2.new(0, 0, 1, 0),
  114. Size = UDim2.new(1, 0, 0.07, 0),
  115. })
  116. local holder = self:Create("Frame", {
  117. Name = "ButtonHolder",
  118. Parent = tab,
  119. BackgroundTransparency = 1,
  120. ClipsDescendants = true,
  121. BorderSizePixel = 3,
  122. Position = UDim2.new(0, -3, 0.801999986, 0),
  123. Size = UDim2.new(0.0350000001, 200, 20, 0),
  124. })
  125. local holder2 = self:Create("Frame", {
  126. Name = "ButtonHolder",
  127. Parent = holder,
  128. BackgroundTransparency = 1,
  129. Position = UDim2.new(0, 3, 0, 0),
  130. Size = UDim2.new(0, 200, 0, 0),
  131. ZIndex = 0,
  132. })
  133. local holder3 = self:Create("Frame", {
  134. Parent = holder2,
  135. BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647),
  136. BorderColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314),
  137. BorderSizePixel = 3,
  138. Position = UDim2.new(0, 0, 0, 0),
  139. Size = UDim2.new(0, 200, 0, 0),
  140. ZIndex = 0,
  141. })
  142. local debounce = false
  143. minimize.MouseButton1Click:Connect(function()
  144. if holder3.Visible then
  145. if debounce == false then
  146. debounce = true
  147. for i,v in pairs(holder3:GetChildren())do
  148. v.ZIndex=0
  149. end
  150. local tween = TweenService:Create(holder3,TweenInfo.new(.5),{["Position"]=UDim2.new(0, 0, 0, -1*(holder3.Size.Y.Offset+25))})
  151. tween:Play()
  152. tween.Completed:Connect(function()
  153. holder3.Visible = false
  154. debounce = false
  155. end)
  156. end
  157. else
  158. if debounce == false then
  159. debounce = true
  160. holder3.Visible = true
  161. local tween = TweenService:Create(holder3,TweenInfo.new(.5),{["Position"]=UDim2.new(0, 0, 0, 0)})
  162. tween:Play()
  163. tween.Completed:Connect(function()
  164. for i,v in pairs(holder3:GetChildren())do
  165. v.ZIndex=1
  166. debounce = false
  167. end
  168. end)
  169. end
  170. end
  171. end)
  172. draggable(tab)
  173. return tab
  174. end
  175.  
  176. function library:MakeButton(tab,text,callback)
  177. buttoncount[tonumber(tab.Name)] = buttoncount[tonumber(tab.Name)]+1
  178. local button = self:Create("TextButton", {
  179. Parent = tab.ButtonHolder.ButtonHolder.Frame,
  180. BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314),
  181. BorderSizePixel = 0,
  182. Position = UDim2.new(0.03, 0, 0, (buttoncount[tonumber(tab.Name)]-1)*42+6-(buttoncount[tonumber(tab.Name)]-1)*6),
  183. Size = UDim2.new(0, 188, 0, 30),
  184. Font = Enum.Font.SourceSansSemibold,
  185. Text = text,
  186. TextColor3 = Color3.new(1, 1, 1),
  187. TextSize = 25,
  188. })
  189. button.MouseButton1Click:Connect(function()
  190. callback(button)
  191. end)
  192. tab.ButtonHolder.ButtonHolder.Frame.BackgroundTransparency = 0
  193. tab.ButtonHolder.ButtonHolder.Frame.Size = UDim2.new(0, 200, 0, buttoncount[tonumber(tab.Name)]*42-(buttoncount[tonumber(tab.Name)]-1)*6)
  194. return button
  195. end
  196.  
  197. function library:MakeToggle(tab,text,default,callback)
  198. buttoncount[tonumber(tab.Name)] = buttoncount[tonumber(tab.Name)]+1
  199. local discordid326801946230915102bestslave
  200. if default then
  201. discordid326801946230915102bestslave = {"ON",Color3.new(0, 1, 0)}
  202. else
  203. discordid326801946230915102bestslave = {"OFF",Color3.new(1, 0, 0)}
  204. end
  205. local button = self:Create("TextButton", {
  206. Parent = tab.ButtonHolder.ButtonHolder.Frame,
  207. BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647),
  208. BorderColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314),
  209. BorderSizePixel = 3,
  210. Position = UDim2.new(0.744999945, 0, 0, (buttoncount[tonumber(tab.Name)]-1)*42+6-(buttoncount[tonumber(tab.Name)]-1)*6),
  211. Size = UDim2.new(0, 45, 0, 30),
  212. ZIndex = 2,
  213. Font = Enum.Font.SourceSansSemibold,
  214. Text = discordid326801946230915102bestslave[1],
  215. TextColor3 = discordid326801946230915102bestslave[2],
  216. TextSize = 25,
  217. })
  218. local description = self:Create("TextLabel", {
  219. Parent = button,
  220. BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647),
  221. BorderColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314),
  222. BorderSizePixel = 3,
  223. Position = UDim2.new(-3.18383813, 0, 0, 0),
  224. Size = UDim2.new(0, 143, 0, 30),
  225. ZIndex = 0,
  226. Font = Enum.Font.SourceSansSemibold,
  227. Text = text,
  228. TextColor3 = Color3.new(1, 1, 1),
  229. TextSize = 25,
  230. })
  231. tab.ButtonHolder.ButtonHolder.Frame.BackgroundTransparency = 0
  232. tab.ButtonHolder.ButtonHolder.Frame.Size = UDim2.new(0, 200, 0, buttoncount[tonumber(tab.Name)]*42-(buttoncount[tonumber(tab.Name)]-1)*6)
  233. button.MouseButton1Click:Connect(function()
  234. if button.Text == "ON" then
  235. button.Text = "OFF"
  236. button.TextColor3 = Color3.new(1, 0, 0)
  237. callback(button)
  238. else
  239. button.Text = "ON"
  240. button.TextColor3 = Color3.new(0, 1, 0)
  241. callback(button)
  242. end
  243. end)
  244. return button
  245. end
  246.  
  247. function library:MakeLabel(tab,text)
  248. buttoncount[tonumber(tab.Name)] = buttoncount[tonumber(tab.Name)]+1
  249. local label = self:Create("TextLabel", {
  250. Parent = tab.ButtonHolder.ButtonHolder.Frame,
  251. BackgroundTransparency = 1,
  252. Position = UDim2.new(0.03, 0, 0, (buttoncount[tonumber(tab.Name)]-1)*42+6-(buttoncount[tonumber(tab.Name)]-1)*6),
  253. Size = UDim2.new(0, 188, 0, 30),
  254. Font = Enum.Font.SourceSansSemibold,
  255. Text = text,
  256. TextColor3 = Color3.new(1, 1, 1),
  257. TextSize = 25,
  258. })
  259. tab.ButtonHolder.ButtonHolder.Frame.BackgroundTransparency = 0
  260. tab.ButtonHolder.ButtonHolder.Frame.Size = UDim2.new(0, 200, 0, buttoncount[tonumber(tab.Name)]*42-(buttoncount[tonumber(tab.Name)]-1)*6)
  261. return label
  262. end
  263.  
  264. function library:MakeBox(tab,text,placeholder,callback)
  265. buttoncount[tonumber(tab.Name)] = buttoncount[tonumber(tab.Name)]+1
  266. local fontsize
  267. if string.len(text) > 17 then
  268. fontsize = 25-(string.len(text)-17)
  269. else
  270. fontsize = 25
  271. end
  272. local label = self:Create("TextLabel", {
  273. Parent = tab.ButtonHolder.ButtonHolder.Frame,
  274. BackgroundTransparency = 1,
  275. Position = UDim2.new(0.03, 0, 0, (buttoncount[tonumber(tab.Name)]-1)*42+6-(buttoncount[tonumber(tab.Name)]-1)*6),
  276. Size = UDim2.new(0, 188, 0, 30),
  277. Font = Enum.Font.SourceSansSemibold,
  278. Text = text .. ":",
  279. TextColor3 = Color3.new(1, 1, 1),
  280. TextSize = fontsize,
  281. })
  282. buttoncount[tonumber(tab.Name)] = buttoncount[tonumber(tab.Name)]+1
  283. local box = self:Create("TextBox", {
  284. Parent = tab.ButtonHolder.ButtonHolder.Frame,
  285. BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.078431),
  286. BorderSizePixel = 0,
  287. Position = UDim2.new(0.03, 0, 0, (buttoncount[tonumber(tab.Name)]-1)*42+6-(buttoncount[tonumber(tab.Name)]-1)*6),
  288. Size = UDim2.new(0, 188, 0, 30),
  289. Font = Enum.Font.SourceSansSemibold,
  290. PlaceholderText = placeholder,
  291. Text = "",
  292. TextColor3 = Color3.new(1, 1, 1),
  293. TextSize = 25,
  294. })
  295. box.FocusLost:Connect(function()
  296. callback(box)
  297. end)
  298. tab.ButtonHolder.ButtonHolder.Frame.BackgroundTransparency = 0
  299. tab.ButtonHolder.ButtonHolder.Frame.Size = UDim2.new(0, 200, 0, buttoncount[tonumber(tab.Name)]*42-(buttoncount[tonumber(tab.Name)]-1)*6)
  300. return box
  301. end
  302.  
  303. function library:MakeDropdown(tab,text,drops,default,callback)
  304. buttoncount[tonumber(tab.Name)] = buttoncount[tonumber(tab.Name)]+1
  305. local def = ""
  306. if default ~= nil or false then
  307. def = default
  308. end
  309. local label = self:Create("TextLabel", {
  310. Parent = tab.ButtonHolder.ButtonHolder.Frame,
  311. BackgroundTransparency = 1,
  312. Position = UDim2.new(0.03, 0, 0, (buttoncount[tonumber(tab.Name)]-1)*42+6-(buttoncount[tonumber(tab.Name)]-1)*6),
  313. Size = UDim2.new(0, 188, 0, 30),
  314. Font = Enum.Font.SourceSansSemibold,
  315. Text = text .. ":",
  316. TextColor3 = Color3.new(1, 1, 1),
  317. TextSize = 25,
  318. })
  319. buttoncount[tonumber(tab.Name)] = buttoncount[tonumber(tab.Name)]+1
  320. local frame = self:Create("Frame", {
  321. Parent = tab.ButtonHolder.ButtonHolder.Frame,
  322. BackgroundTransparency = 1,
  323. ClipsDescendants = true,
  324. Position = UDim2.new(0, -3, 0, (buttoncount[tonumber(tab.Name)]-1)*42+3-(buttoncount[tonumber(tab.Name)]-1)*6),
  325. Size = UDim2.new(0.0350000001, 200, 0, 785),
  326. })
  327. local frame2 = self:Create("Frame", {
  328. Parent = frame,
  329. BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647),
  330. BorderColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314),
  331. BorderSizePixel = 3,
  332. Position = UDim2.new(0, 9, 0, 3),
  333. Size = UDim2.new(0, 188, 0, 30),
  334. })
  335. local selected = self:Create("TextLabel", {
  336. Parent = frame2,
  337. BackgroundTransparency = 1,
  338. Size = UDim2.new(0.84574461, 0, 1, 0),
  339. Font = Enum.Font.SourceSansSemibold,
  340. Text = def,
  341. TextColor3 = Color3.new(1, 1, 1),
  342. TextSize = 25,
  343. })
  344. local drop = self:Create("TextButton", {
  345. Parent = selected,
  346. BackgroundTransparency = 1,
  347. Position = UDim2.new(0.993710816, 0, 0.100000001, 0),
  348. Rotation = 90,
  349. Size = UDim2.new(0, 30, 0, 24),
  350. Font = Enum.Font.SourceSansSemibold,
  351. Text = ">",
  352. TextColor3 = Color3.new(1, 1, 1),
  353. TextSize = 25,
  354. TextWrapped = true,
  355. })
  356. local dropdowns = self:Create("Frame", {
  357. Parent = frame2,
  358. BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647),
  359. BorderColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314),
  360. BorderSizePixel = 3,
  361. Position = UDim2.new(0, 0, 0, 0),
  362. Size = UDim2.new(0, 188, 0, 0),
  363. ZIndex = 0,
  364. Visible = false
  365. })
  366. local debounce = false
  367. drop.MouseButton1Click:Connect(function()
  368. if dropdowns.Visible then
  369. if debounce == false then
  370. debounce = true
  371. for i,v in pairs(dropdowns:GetChildren())do
  372. v.ZIndex=0
  373. end
  374. local tween = TweenService:Create(dropdowns,TweenInfo.new(.5),{["Position"]=UDim2.new(0, 0, 0, -1*(dropdowns.Size.Y.Offset+25))})
  375. tween:Play()
  376. tween.Completed:Connect(function()
  377. dropdowns.Visible = false
  378. debounce = false
  379. end)
  380. end
  381. else
  382. if debounce == false then
  383. debounce = true
  384. dropdowns.Visible = true
  385. local tween = TweenService:Create(dropdowns,TweenInfo.new(.5),{["Position"]=UDim2.new(0, 0, 0, 0)})
  386. tween:Play()
  387. tween.Completed:Connect(function()
  388. for i,v in pairs(dropdowns:GetChildren())do
  389. v.ZIndex=1
  390. end
  391. debounce = false
  392. end)
  393. end
  394. end
  395. end)
  396. for i, v in pairs(drops) do
  397. local button = self:Create("TextButton", {
  398. Parent = dropdowns,
  399. BackgroundTransparency = 1,
  400. Position = UDim2.new(0, 0, 0, (i-1)*35+32-(i-1)*6),
  401. Size = UDim2.new(0, 188, 0, 29),
  402. Font = Enum.Font.SourceSansSemibold,
  403. Text = v,
  404. TextColor3 = Color3.new(1, 1, 1),
  405. TextSize = 20,
  406. })
  407. dropdowns.Size = UDim2.new(0, 188, 0, i*38)
  408. button.MouseButton1Click:Connect(function()
  409. selected.Text = button.Text
  410. callback(selected)
  411. if dropdowns.Visible then
  412. if debounce == false then
  413. debounce = true
  414. for i,v in pairs(dropdowns:GetChildren())do
  415. v.ZIndex=0
  416. end
  417. local tween = TweenService:Create(dropdowns,TweenInfo.new(.5),{["Position"]=UDim2.new(0, 0, 0, -1*(dropdowns.Size.Y.Offset+25))})
  418. tween:Play()
  419. tween.Completed:Connect(function()
  420. dropdowns.Visible = false
  421. debounce = false
  422. end)
  423. end
  424. else
  425. if debounce == false then
  426. debounce = true
  427. dropdowns.Visible = true
  428. local tween = TweenService:Create(dropdowns,TweenInfo.new(.5),{["Position"]=UDim2.new(0, 0, 0, 0)})
  429. tween:Play()
  430. tween.Completed:Connect(function()
  431. for i,v in pairs(dropdowns:GetChildren())do
  432. v.ZIndex=1
  433. end
  434. debounce = false
  435. end)
  436. end
  437. end
  438. end)
  439. end
  440. tab.ButtonHolder.ButtonHolder.Frame.BackgroundTransparency = 0
  441. tab.ButtonHolder.ButtonHolder.Frame.Size = UDim2.new(0, 200, 0, buttoncount[tonumber(tab.Name)]*42-(buttoncount[tonumber(tab.Name)]-1)*6)
  442. return selected
  443. end
  444.  
  445. game:GetService("RunService").RenderStepped:Connect(function()
  446. if #rainbows > 0 then
  447. color = Color3.fromHSV(math.acos(math.cos(rainbow*math.pi))/math.pi,.8,1)
  448. rainbow = rainbow + _G.breatherate
  449. for i, v in pairs(rainbows) do
  450. ui[v].Top.Frame.BackgroundColor3 = color
  451. end
  452. end
  453. end)
  454.  
  455. return library
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement