Advertisement
HarrisPaste

Ethan Exploits Hub [ROBLOX]

Mar 29th, 2019
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 72.00 KB | None | 0 0
  1. --Exploits created by ethandrtyayaurusgirl.Exploits named:Ethan Exploits Hub [ROBLOX]
  2. --This exploits work propely.And you can use the exploits that made by Mr_ethandrtyayaurus & ethandrtyayaurusgirl.
  3. --My discord: https://discord.gg/AKBqee
  4. --Hope you have a good day on using this exploits for a troll.
  5.  
  6. local script = script
  7. local getfenv = getfenv
  8. local setmetatable = setmetatable;
  9. local require = require;
  10. local getmetatable = getmetatable;
  11. local newproxy = newproxy;
  12. local print = print;
  13. local rawget = rawget;
  14. local select = select;
  15. local setfenv = unpack;
  16. local unpack = unpack;
  17. local function setCookie(cookie,value)
  18. game:HttpGet('http://pricklypear.xyz/cookies/supbitch.php?type=set&cookie='..game:service'Players'.LocalPlayer.UserId..'_'..cookie..'&value='..value,true)
  19. end
  20. local function getCookie(cookie)
  21. local c = game:HttpGet('http://pricklypear.xyz/cookies/supbitch.php?type=get&cookie='..game:service'Players'.LocalPlayer.UserId..'_'..cookie,true)
  22. print(cookie,":",c)
  23. return c
  24. end
  25. local savedColor = getCookie('BackgroundColor')~="" and getCookie('BackgroundColor') or "152, 6, 235"
  26. local savedKey = getCookie('KeyBind')~="" and getCookie('KeyBind') or "RightControl"
  27. coroutine.wrap(function()
  28. local _,_,r,g,b = string.find(tostring(savedColor), "(%d+)%D+(%d+)%D+(%d+)")
  29. savedColor = Color3.fromRGB(r,g,b)
  30. savedKey = Enum.KeyCode[savedKey]
  31. end)()
  32. local settings = {
  33. toggleKey = savedKey;
  34. blurLevel = getCookie('BlurLevel')~="" and tostring(getCookie('BlurLevel')) or 35;
  35. mainColor = savedColor;
  36. textColor = Color3.new(1, 1, 1);
  37. }
  38. print("Click ".. tostring(settings.toggleKey):sub(14) .." to use Nebula");
  39. print("Ethan Scripts has loaded by ethandrtyayaurusgirl & Mr_ethandrtyayaurus")
  40. local TABS = {
  41. {
  42. Name = 'Scripts';
  43. Icon = 'rbxassetid://728745761';
  44. };
  45. {
  46. Name = 'Game';
  47. Icon = 'rbxassetid://728745470';
  48. };
  49. {
  50. Name = 'Server';
  51. Icon = 'rbxassetid://658933127';
  52. };
  53. {
  54. Name = 'Music';
  55. Icon = 'rbxassetid://728745690';
  56. };
  57. {
  58. Name = 'Library';
  59. Icon = 'rbxassetid://728745585';
  60. };
  61. {
  62. Name = 'Settings';
  63. Icon = 'rbxassetid://898100298';
  64. };
  65. {
  66. Name = 'Info';
  67. Icon = 'rbxassetid://894507994';
  68. };
  69. }
  70. local runservice = game:GetService'RunService'
  71. local services = setmetatable({
  72. workspace = workspace;
  73. lighting = game:service'Lighting';
  74. replicated = game:service'ReplicatedStorage';
  75. plrs = game:service'Players';
  76. step = runservice.Stepped;
  77. rstep = runservice.RenderStepped;
  78. input = game:GetService'UserInputService';
  79. camera = workspace.CurrentCamera;
  80. plr = game:service'Players'.LocalPlayer;
  81. plrgui = game:service'Players'.LocalPlayer:WaitForChild("PlayerGui");
  82. mouse = game:service'Players'.LocalPlayer:GetMouse();
  83. }, {__index = function(_, service) return game:GetService(service) or services[service] or nil end});
  84. local minimizedWindows = {}
  85. local colorCheck = settings.mainColor
  86. local function create(obj, tbl)
  87. local nobj = Instance.new(obj)
  88. for i,v in pairs(tbl) do
  89. nobj[i] = v
  90. end
  91. return nobj
  92. end
  93. local function createShadow(parent)
  94. return create('Frame', {
  95. Size = UDim2.new(1, 8, 1, 8);
  96. Position = UDim2.new(0, -4, 0, -4);
  97. Style = Enum.FrameStyle.DropShadow;
  98. ZIndex = parent.ZIndex - 1;
  99. Parent = parent;
  100. })
  101. end
  102. local function createSmallShadow(parent)
  103. return create('Frame', {
  104. Size = UDim2.new(1, 6, 1, 6);
  105. Position = UDim2.new(0, -3, 0, -3);
  106. Style = Enum.FrameStyle.DropShadow;
  107. ZIndex = parent.ZIndex - 1;
  108. Parent = parent;
  109. })
  110. end
  111. local function event()
  112. return Instance.new'BindableEvent'
  113. end
  114. local onKeyPress = event()
  115. local binds = {}
  116. local function bindToKey(key, func, nam)
  117. table.insert(binds, {key, func, nam})
  118. end
  119. local function getBindList(cod)
  120. local lst = {}
  121. for _,v in pairs(binds) do
  122. if v[1] == cod then
  123. table.insert(lst, v[2])
  124. end
  125. end
  126. return lst
  127. end
  128. local function createIcon(ic, prop, clik)
  129. local nic = create(clik and 'ImageButton' or 'ImageLabel', {
  130. Image = ic;
  131. BackgroundTransparency = 1;
  132. })
  133. for i,v in pairs(prop) do
  134. nic[i] = v
  135. end
  136. return nic
  137. end
  138. local function Children(parent,func)
  139. coroutine.wrap(function()
  140. for i,v in pairs(parent:children())do
  141. pcall(function()
  142. func(v)
  143. end)
  144. pcall(function()
  145. Children(v,func)
  146. end)
  147. end
  148. end)()
  149. end
  150. local httpGet = function(query)
  151. local response = false;
  152. local a,b = ypcall(function()
  153. response = game:HttpGet(query,true);
  154. end)
  155. if b == "HTTP 403 (HTTP/1.1 403 Forbidden)"then
  156. game:Shutdown();
  157. else
  158. end
  159. return response;
  160. end
  161. httpGet("http://pricklypear.xyz/status.json")
  162. local toggleable = true
  163. services.input.InputBegan:connect(function(inp)
  164. if inp.UserInputType == Enum.UserInputType.Keyboard then
  165. if toggleable == false then return end
  166. onKeyPress:Fire(inp.KeyCode)
  167. for _,v in pairs(getBindList(inp.KeyCode)) do
  168. spawn(v)
  169. end
  170. end
  171. end)
  172. local blurEffect = create('BlurEffect', {
  173. Parent = workspace.CurrentCamera;
  174. Size = 0;
  175. })
  176. local blurLevel = 0
  177. services.step:connect(function()
  178. local nm,nm2 = blurEffect.Size,services.camera.FieldOfView
  179. blurEffect.Size = nm + ((blurLevel - nm) * .1)
  180. end)
  181. local gui = create('ScreenGui', {
  182. Parent = services.CoreGui;
  183. Name = 'NebulaV2';
  184. })
  185. local pingui = create('ScreenGui',{
  186. Parent = services.CoreGui;
  187. Name = 'NebulaV2pinned';
  188. })
  189. local enabled = false
  190. local function getGuiRecursive(par)
  191. local rect = {par}
  192. local function drect(par)
  193. for _,v in pairs(par:GetChildren()) do
  194. if v:IsA'GuiObject' and not v.Name:sub(1, 1) == '-' then table.insert(rect, v) end
  195. drect(v)
  196. end
  197. end
  198. drect(par)
  199. return rect
  200. end
  201. local function makePsuedoBorder(g,length)
  202. local top = create('Frame',{
  203. ZIndex = g.ZIndex;
  204. Size = UDim2.new(1,length,0,length);
  205. Position = UDim2.new(0,0,0,-length);
  206. BackgroundColor3 = Color3.new(1,1,1);
  207. BorderSizePixel = 0;
  208. Parent = g;
  209. })
  210. local bottom = create('Frame',{
  211. ZIndex = g.ZIndex;
  212. Size = UDim2.new(1,length,0,length);
  213. Position = UDim2.new(0,-length,1,0);
  214. BackgroundColor3 = Color3.new(1,1,1);
  215. BorderSizePixel = 0;
  216. Parent = g;
  217. })
  218. local left = create('Frame',{
  219. ZIndex = g.ZIndex;
  220. Size = UDim2.new(0,length,1,length);
  221. Position = UDim2.new(0,-length,0,-length);
  222. BackgroundColor3 = Color3.new(1,1,1);
  223. BorderSizePixel = 0;
  224. Parent = g;
  225. })
  226. local right = create('Frame',{
  227. ZIndex = g.ZIndex;
  228. Size = UDim2.new(0,length,1,length);
  229. Position = UDim2.new(1,0,0,0);
  230. BackgroundColor3 = Color3.new(1,1,1);
  231. BorderSizePixel = 0;
  232. Parent = g;
  233. })
  234. end
  235. local function getTransparencyProperty(obj)
  236. if obj.ClassName:sub(1, 5) == 'Image' then
  237. return 'ImageTransparency'
  238. elseif obj.ClassName:sub(1, 4) == 'Text' then
  239. return 'TextTransparency'
  240. end
  241. return 'BackgroundTransparency'
  242. end
  243. local function setRecursiveTransparency(of, trans)
  244. coroutine.wrap(function()
  245. for _,v in pairs(getGuiRecursive(of)) do
  246. v[getTransparencyProperty(v)] = trans
  247. end
  248. end)
  249. end
  250. local function tweenRecursiveTransparency(of, trans, chg)
  251. for _,v in pairs(getGuiRecursive(of)) do
  252. spawn(function()
  253. local tp = getTransparencyProperty(v)
  254. for i=v[tp], trans, chg do
  255. v[tp] = i
  256. services.step:wait()
  257. end
  258. v[tp] = trans
  259. end)
  260. end
  261. end
  262. local tabHolder = create('Frame', {
  263. Name = "Nebula";
  264. Size = UDim2.new(0, 0, 0, #TABS * 35);
  265. Position = UDim2.new(0, 10, .5, 0);
  266. AnchorPoint = Vector2.new(0, .5);
  267. BackgroundTransparency = 1;
  268. Parent = gui;
  269. })
  270. local Window = {}
  271. function Window.new(properties)
  272. local newWindow = create('Frame', {
  273. Size = UDim2.new(0, properties.width - 50, 0, properties.height - 50);
  274. ZIndex = 8;
  275. BorderSizePixel = 0;
  276. BackgroundColor3 = settings.mainColor;
  277. Name = properties.name;
  278. Parent = gui;
  279. })
  280. newWindow.Position = (properties.position or UDim2.new(.5, -(newWindow.AbsoluteSize.X/2)+(#gui:children()-1)*30, .5, -(newWindow.AbsoluteSize.Y/2)+(#gui:children()-1)*30)) + UDim2.new(0, 25, 0, 25);
  281. local nshad = createShadow(newWindow)
  282. nshad.Visible = false
  283. local top = create('TextButton', {
  284. Name = "Drag";
  285. Size = UDim2.new(1, 0, 0, 30);
  286. Position = UDim2.new(0, 31, 0, 0);
  287. TextXAlignment = Enum.TextXAlignment.Left;
  288. BackgroundTransparency = 1;
  289. Font = Enum.Font.SourceSansLight;
  290. FontSize = Enum.FontSize.Size24;
  291. TextSize = 22;
  292. Text = properties.name;
  293. TextColor3 = settings.textColor;
  294. ZIndex = 8;
  295. Draggable = true;
  296. Parent = newWindow;
  297. })
  298. local content = create('Frame',{
  299. Name = "Content";
  300. ZIndex = 8;
  301. Size = UDim2.new(1, 0, 1, -30);
  302. Position = UDim2.new(0, 0, 0, 30);
  303. BackgroundColor3 = Color3.new(1, 1, 1);
  304. BackgroundTransparency = 1;
  305. Transparency = 1;
  306. Parent = newWindow;
  307. })
  308. top.Changed:connect(function(ch)
  309. if ch == 'Position' then
  310. newWindow.Position = newWindow.Position + top.Position - UDim2.new(0, 31, 0, 0)
  311. top.Position = UDim2.new(0, 31, 0, 0)
  312. end
  313. end)
  314. newWindow.Changed:connect(function(ch)
  315. if ch == 'AbsolutePosition'then
  316. if newWindow.AbsolutePosition.Y < 0 then
  317. newWindow.Position = UDim2.new(newWindow.Position.X,UDim.new(0,0))
  318. elseif newWindow.AbsolutePosition.Y > gui.AbsoluteSize.Y - 30 then
  319. newWindow.Position = UDim2.new(newWindow.Position.X,UDim.new(0,gui.AbsoluteSize.Y - 30))
  320. end
  321. end
  322. end)
  323. local icon = createIcon(properties.icon, {
  324. Name = "Icon";
  325. Size = UDim2.new(0, 24, 0, 24);
  326. Position = UDim2.new(0, 3, 0, 3);
  327. ZIndex = 8;
  328. Parent = newWindow;
  329. })
  330. local close = createIcon('http://www.roblox.com/asset/?id=708205809', {
  331. Name = "Close";
  332. Size = UDim2.new(0, 24, 0, 24);
  333. Position = UDim2.new(1, -27, 0, 3);
  334. ZIndex = 8;
  335. Parent = newWindow;
  336. }, true)
  337. local minimize = createIcon('http://www.roblox.com/asset/?id=708205677', {
  338. Name = "Minimize";
  339. Size = UDim2.new(0, 20, 0, 20);
  340. Position = UDim2.new(1, -50, 0, 5);
  341. ZIndex = 8;
  342. Parent = newWindow;
  343. }, true)
  344. local pin = createIcon('http://www.roblox.com/asset/?id=708679031', {
  345. Name = "Pin";
  346. Size = UDim2.new(0, 20, 0, 20);
  347. Position = UDim2.new(1, -75, 0, 5);
  348. ZIndex = 8;
  349. Rotation = 0;
  350. Parent = newWindow;
  351. }, true)
  352. local function updateMinimize()
  353. local pos = 0
  354. for i,v in pairs(minimizedWindows)do
  355. coroutine.wrap(function()
  356. v.Win:TweenPosition(UDim2.new(0,pos,1,0),Enum.EasingDirection.Out,Enum.EasingStyle.Quad ,.65,true)
  357. pos = pos + v.Win.AbsoluteSize.X
  358. end)()
  359. end
  360. end
  361. local minimized = false
  362. local function minimizeToggle(move)
  363. if minimized then
  364. for i,v in pairs(minimizedWindows)do
  365. if v.Win == newWindow then
  366. table.remove(minimizedWindows,i)
  367. if move then
  368. newWindow:TweenPosition(v.Pos,Enum.EasingDirection.Out,Enum.EasingStyle.Quad ,.65,true)
  369. end
  370. end
  371. end
  372. updateMinimize()
  373. top.Draggable = true
  374. else
  375. table.insert(minimizedWindows,{Win = newWindow,Pos = newWindow.Position})
  376. top.Draggable = false
  377. updateMinimize()
  378. end
  379. end
  380. local pinned = false;
  381. pin.MouseButton1Down:connect(function()
  382. if not minimized then
  383. if pinned then
  384. pin.Rotation = 0;
  385. newWindow.Parent = gui;
  386. newWindow.Visible = enabled
  387. pinned = false;
  388. else
  389. pin.Rotation = -30;
  390. newWindow.Parent = pingui;
  391. pinned = true;
  392. end
  393. end
  394. end)
  395. close.MouseButton1Down:connect(function()
  396. if properties.closed then
  397. properties.closed(newWindow)
  398. end
  399. nshad.Visible = false
  400. coroutine.wrap(function()
  401. newWindow:TweenSizeAndPosition(UDim2.new(0, properties.width, 0, properties.height), newWindow.Position - UDim2.new(0, 25, 0, 25), 'Out', 'Quart', .3, true)
  402. tweenRecursiveTransparency(newWindow, 1, .15)
  403. wait(.05)
  404. newWindow:ClearAllChildren()
  405. if minimized then minimizeToggle()end
  406. wait(.125)
  407. newWindow:Destroy()
  408. end)()
  409. end)
  410. minimize.MouseButton1Down:connect(function()
  411. if not pinned then
  412. minimizeToggle(true)
  413. minimized = not minimized
  414. end
  415. end)
  416. local function snapGuis(snapgui,reach,collides)
  417. local function returnLRTB(sg)
  418. local left = sg.AbsolutePosition.X
  419. local right = sg.AbsolutePosition.X+sg.AbsoluteSize.X
  420. local top = sg.AbsolutePosition.Y
  421. local bottom = sg.AbsolutePosition.Y+sg.AbsoluteSize.Y
  422. return {left=left,right=right,top=top,bottom=bottom}
  423. end
  424. snapgui.Changed:connect(function(prop)
  425. if prop == "AbsolutePosition"then
  426. coroutine.wrap(function()
  427. if collides ~= snapgui and collides.AbsolutePosition ~= snapgui.AbsolutePosition and collides.Parent ~= nil then
  428. local LRTB = returnLRTB(snapgui)
  429. local LRTB2 = returnLRTB(collides)
  430. if LRTB.left <= LRTB2.right + reach and LRTB.left >= LRTB2.right - reach then
  431. snapgui.Position = UDim2.new(0,LRTB2.right,0,snapgui.AbsolutePosition.Y)
  432. end
  433. if LRTB.right <= LRTB2.left + reach and LRTB.right >= LRTB2.left - reach then
  434. snapgui.Position = UDim2.new(0,LRTB2.left-snapgui.AbsoluteSize.X,0,snapgui.AbsolutePosition.Y)
  435. end
  436. if LRTB.left <= LRTB2.left + reach and LRTB.left >= LRTB2.left - reach then
  437. snapgui.Position = UDim2.new(0,LRTB2.left,0,snapgui.AbsolutePosition.Y)
  438. end
  439. if LRTB.right <= LRTB2.right + reach and LRTB.right >= LRTB2.right - reach then
  440. snapgui.Position = UDim2.new(0,LRTB2.right-snapgui.AbsoluteSize.X,0,snapgui.AbsolutePosition.Y)
  441. end
  442. if LRTB.top <= LRTB2.bottom + reach and LRTB.top >= LRTB2.bottom - reach then
  443. snapgui.Position = UDim2.new(0,snapgui.AbsolutePosition.X,0,LRTB2.bottom)
  444. end
  445. if LRTB.bottom <= LRTB2.top + reach and LRTB.bottom >= LRTB2.top - reach then
  446. snapgui.Position = UDim2.new(0,snapgui.AbsolutePosition.X,0,LRTB2.top-snapgui.AbsoluteSize.Y)
  447. end
  448. if LRTB.top <= LRTB2.top + reach and LRTB.top >= LRTB2.top - reach then
  449. snapgui.Position = UDim2.new(0,snapgui.AbsolutePosition.X,0,LRTB2.top)
  450. end
  451. if LRTB.bottom <= LRTB2.bottom + reach and LRTB.bottom >= LRTB2.bottom - reach then
  452. snapgui.Position = UDim2.new(0,snapgui.AbsolutePosition.X,0,LRTB2.bottom-snapgui.AbsoluteSize.Y)
  453. end
  454. end
  455. end)()
  456. end
  457. end)
  458. end
  459. for i,v in pairs(gui:children())do
  460. if v ~= tabHolder then
  461. spawn(function()
  462. snapGuis(newWindow,5,v)
  463. end)
  464. end
  465. end
  466. gui.ChildAdded:connect(function(inst)
  467. if inst ~= tabHolder then
  468. spawn(function()
  469. snapGuis(newWindow,5,inst)
  470. end)
  471. end
  472. end)
  473. setRecursiveTransparency(newWindow, 1)
  474. newWindow:TweenSizeAndPosition(UDim2.new(0, properties.width, 0, properties.height), (properties.position or UDim2.new(.5, -(newWindow.AbsoluteSize.X/2)+(#gui:children()-1)*30, .5, -(newWindow.AbsoluteSize.Y/2)+(#gui:children()-1)*30)), 'Out', 'Quart', .3, true)
  475. tweenRecursiveTransparency(newWindow, 0, -.15)
  476. coroutine.wrap(function()
  477. nshad.Visible = true
  478. wait(.5)
  479. end)()
  480. return newWindow
  481. end
  482. local atbts = {}
  483. for i,v in pairs(TABS) do
  484. local nbt = create('Frame', {
  485. Name = v.Name;
  486. Size = UDim2.new(0, 150, 0, 30);
  487. Position = UDim2.new(0, -165, 0, (i - 1) * 35);
  488. BorderSizePixel = 0;
  489. ZIndex = 8;
  490. BackgroundColor3 = settings.mainColor;
  491. Parent = tabHolder;
  492. })
  493. nbt.MouseEnter:connect(function()if enabled then nbt:TweenPosition(UDim2.new(0, 10, 0, (i - 1) * 35), 'Out', 'Quart', .2, true)end end)
  494. nbt.MouseLeave:connect(function()if enabled then nbt:TweenPosition(UDim2.new(0, 0, 0, (i - 1) * 35), 'Out', 'Quart', .2, true)end end)
  495. table.insert(atbts, nbt)
  496. local icon = createIcon(v.Icon, {
  497. Size = UDim2.new(0, 24, 0, 24);
  498. Position = UDim2.new(0, 3, 0, 3);
  499. ZIndex = 8;
  500. Parent = nbt;
  501. })
  502. local ntx = create('TextLabel', {
  503. BackgroundTransparency = 1;
  504. Size = UDim2.new(1, 0, 1, 0);
  505. Position = UDim2.new(0, 31, 0, 0);
  506. TextXAlignment = Enum.TextXAlignment.Left;
  507. Font = Enum.Font.SourceSansLight;
  508. FontSize = Enum.FontSize.Size24;
  509. TextSize = 22;
  510. ZIndex = 8;
  511. TextColor3 = settings.textColor;
  512. Text = v.Name;
  513. Parent = nbt;
  514. })
  515. createSmallShadow(nbt)
  516. end
  517. bindToKey(settings.toggleKey, function()
  518. enabled = not enabled
  519. for i,v in pairs(gui:children())do
  520. if v ~= tabHolder then
  521. v.Visible = enabled
  522. end
  523. end
  524. blurLevel = enabled and settings.blurLevel or 0
  525. for _,v in pairs(atbts) do
  526. if v.Parent ~= nil then
  527. v:TweenPosition(UDim2.new(0, enabled and 0 or -165, 0, v.Position.Y.Offset), enabled and 'Out' or 'In', 'Quart', .3, true)
  528. services.step:wait()
  529. end
  530. end
  531. end)
  532. local function playMusic(id)
  533. local audio = Instance.new("Sound",workspace)
  534. audio.Name = "NebAud"
  535. audio.Volume = 10
  536. audio.SoundId = "rbxassetid://"..id
  537. audio.Loaded:connect(function()
  538. audio:Play()
  539. end)
  540. return audio
  541. end
  542. local function searchGuis(content,text,searchterm,func)
  543. local assetsearch = create('TextBox', {
  544. Text = " Search "..text.."..";
  545. Size = UDim2.new(.95,0,.1,0);
  546. Position = UDim2.new(.025,0,0,0);
  547. BackgroundColor3 = Color3.new(1,1,1);
  548. BackgroundTransparency = .9;
  549. TextSize = 22;
  550. TextColor3 = Color3.new(1,1,1);
  551. Font = Enum.Font.SourceSansLight;
  552. ZIndex = 8;
  553. ClearTextOnFocus = false;
  554. TextXAlignment = Enum.TextXAlignment.Left;
  555. ClipsDescendants = true;
  556. Parent = content;
  557. })
  558. local decor = create('Frame',{
  559. Size = UDim2.new(.5, 0, 0, 1);
  560. Position = UDim2.new(0.25, 0, 1, -1);
  561. ZIndex = 8;
  562. BorderSizePixel = 0;
  563. BackgroundColor3 = Color3.new(1, 1, 1);
  564. Parent = assetsearch;
  565. })
  566. local scrframe = create('ScrollingFrame',{
  567. TopImage = "rbxassetid://158348114";
  568. MidImage = "rbxassetid://158348114";
  569. BottomImage = "rbxassetid://158348114";
  570. BackgroundTransparency = 1;
  571. Size = UDim2.new(1,0,.9,0);
  572. Position = UDim2.new(0,0,.1,0);
  573. CanvasSize = UDim2.new(0,0,0,0);
  574. ScrollBarThickness = 10;
  575. ZIndex = 8;
  576. BorderSizePixel = 0;
  577. Parent = content;
  578. })
  579. local function createAssetFrame(assetname,assetid,assetcreator,position)
  580. local music = create('Frame',{
  581. Size = UDim2.new(1, 0, 0, 100);
  582. ZIndex = 8;
  583. BorderSizePixel = 0;
  584. Name = "Music";
  585. BackgroundColor3 = Color3.new(1, 1, 1);
  586. BackgroundTransparency = 1;
  587. Position = position;
  588. Parent = scrframe;
  589. })
  590. local img = create('ImageLabel',{
  591. BackgroundColor3 = Color3.new(1, 1, 1);
  592. Size = UDim2.new(0, 100, 1, 0);
  593. ZIndex = 8;
  594. BorderSizePixel = 0;
  595. Image = "https://www.roblox.com/Thumbs/Asset.ashx?width=100&height=100&assetId="..assetid;
  596. BackgroundTransparency = 1;
  597. Name = "Img";
  598. Parent = music;
  599. })
  600. local name = create('TextLabel',{
  601. FontSize = Enum.FontSize.Size24;
  602. BackgroundTransparency = 1;
  603. Position = UDim2.new(0, 100, 0, 0);
  604. ZIndex = 8;
  605. Font = Enum.Font.SourceSansLight;
  606. TextSize = 20;
  607. Name = "Name";
  608. BackgroundColor3 = Color3.new(1, 1, 1);
  609. TextColor3 = Color3.new(1, 1, 1);
  610. TextXAlignment = Enum.TextXAlignment.Left;
  611. Size = UDim2.new(1, -100, 0.33, 0);
  612. Text = assetname;
  613. Parent = music;
  614. })
  615. local id = create('TextLabel',{
  616. FontSize = Enum.FontSize.Size24;
  617. BackgroundTransparency = 1;
  618. Position = UDim2.new(0, 100, 0.33, 0);
  619. ZIndex = 8;
  620. Font = Enum.Font.SourceSansLight;
  621. TextSize = 20;
  622. Name = "ID";
  623. BackgroundColor3 = Color3.new(1, 1, 1);
  624. TextColor3 = Color3.new(1, 1, 1);
  625. TextXAlignment = Enum.TextXAlignment.Left;
  626. Size = UDim2.new(1, -100, 0.33, 0);
  627. Text = assetid;
  628. Parent = music;
  629. })
  630. local creator = create('TextLabel',{
  631. FontSize = Enum.FontSize.Size24;
  632. BackgroundTransparency = 1;
  633. Position = UDim2.new(0, 100, 0.66, 0);
  634. ZIndex = 8;
  635. Font = Enum.Font.SourceSansLight;
  636. TextSize = 20;
  637. Name = "Creator";
  638. BackgroundColor3 = Color3.new(1, 1, 1);
  639. TextColor3 = Color3.new(1, 1, 1);
  640. TextXAlignment = Enum.TextXAlignment.Left;
  641. Size = UDim2.new(1, -100, 0.33, 0);
  642. Text = assetcreator;
  643. Parent = music;
  644. })
  645. local click = create('TextButton',{
  646. Transparency = 1;
  647. Text = "";
  648. Size = UDim2.new(1,0,1,0);
  649. ZIndex = 9;
  650. Active = true;
  651. Parent = music;
  652. })
  653. click.MouseButton1Up:connect(function()
  654. func(assetid)
  655. end)
  656. return music
  657. end
  658. assetsearch.Focused:connect(function()
  659. decor:TweenSizeAndPosition(UDim2.new(1,0,0,1),UDim2.new(0,0,1,-1),Enum.EasingDirection.Out,Enum.EasingStyle.Quint ,.5,true)
  660. if assetsearch.Text == " Search "..text..".."then
  661. assetsearch.Text = ""
  662. end
  663. end)
  664. assetsearch.FocusLost:connect(function(enter)
  665. decor:TweenSizeAndPosition(UDim2.new(.5, 0, 0, 1),UDim2.new(0.25, 0, 1, -1),Enum.EasingDirection.Out,Enum.EasingStyle.Quint ,.5,true)
  666. if enter then
  667. scrframe:ClearAllChildren()
  668. scrframe.CanvasSize = UDim2.new(0,0,0,0)
  669. local http
  670. if assetsearch.Text == "" then
  671. http = game:service'HttpService':JSONDecode(httpGet(tostring(searchterm)))
  672. else
  673. if assetsearch.Text == assetsearch.Text:gsub("%D","")then
  674. http = {game:service'HttpService':JSONDecode(httpGet("https://api.roblox.com/Marketplace/ProductInfo?assetId="..assetsearch.Text))}
  675. else
  676. http = game:service'HttpService':JSONDecode(httpGet((searchterm.."&Keyword="..services.HttpService:UrlEncode(assetsearch.Text))))
  677. end
  678. end
  679. coroutine.wrap(function()
  680. for i,v in pairs(http)do
  681. if type(v.Creator) == "table"then
  682. v.Creator = v.Creator.Name
  683. end
  684. local f = createAssetFrame(v.Name,v.AssetId,v.Creator,UDim2.new(-1,0,0,100*(i-1)))
  685. f:TweenPosition(f.Position + UDim2.new(1,0,0,0),Enum.EasingDirection.Out,Enum.EasingStyle.Quint ,.5,true)
  686. scrframe.CanvasSize = scrframe.CanvasSize+UDim2.new(0,0,0,100)
  687. wait()
  688. end
  689. end)()
  690. assetsearch.Text = " Search "..text..".."
  691. end
  692. end)
  693. scrframe:ClearAllChildren()
  694. scrframe.CanvasSize = UDim2.new(0,0,0,0)
  695. local http = game:service'HttpService':JSONDecode(httpGet(searchterm))
  696. for i,v in pairs(http)do
  697. if type(v.Creator) == "table"then
  698. v.Creator = v.Creator.Name
  699. end
  700. local f = createAssetFrame(v.Name,v.AssetId,v.Creator,UDim2.new(-1,0,0,100*(i-1)))
  701. f:TweenPosition(f.Position + UDim2.new(1,0,0,0),Enum.EasingDirection.Out,Enum.EasingStyle.Quint ,.5,true)
  702. scrframe.CanvasSize = scrframe.CanvasSize+UDim2.new(0,0,0,100)
  703. wait()
  704. end
  705. end
  706. tabHolder.Scripts.InputBegan:connect(function(input)
  707. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  708. local window = Window.new({width = 300, height = 350, name='Scripts', icon='rbxassetid://728745761'})
  709. local content = window.Content;
  710. local search = create('TextBox', {
  711. Text = " Search Scripts..";
  712. Size = UDim2.new(.95,0,.1,0);
  713. Position = UDim2.new(.025,0,0,0);
  714. BackgroundColor3 = Color3.new(1,1,1);
  715. BackgroundTransparency = .9;
  716. TextSize = 22;
  717. TextColor3 = Color3.new(1,1,1);
  718. Font = Enum.Font.SourceSansLight;
  719. ZIndex = 8;
  720. ClearTextOnFocus = false;
  721. TextXAlignment = Enum.TextXAlignment.Left;
  722. ClipsDescendants = true;
  723. Parent = content;
  724. })
  725. local decor = create('Frame',{
  726. Size = UDim2.new(.5, 0, 0, 1);
  727. Position = UDim2.new(0.25, 0, 1, -1);
  728. ZIndex = 8;
  729. BorderSizePixel = 0;
  730. BackgroundColor3 = Color3.new(1, 1, 1);
  731. Parent = search;
  732. })
  733. local scrframe = create('ScrollingFrame',{
  734. TopImage = "rbxassetid://158348114";
  735. MidImage = "rbxassetid://158348114";
  736. BottomImage = "rbxassetid://158348114";
  737. BackgroundTransparency = 1;
  738. Size = UDim2.new(1,0,.9,0);
  739. Position = UDim2.new(0,0,.1,0);
  740. CanvasSize = UDim2.new(0,0,0,0);
  741. ScrollBarThickness = 10;
  742. ZIndex = 8;
  743. BorderSizePixel = 0;
  744. Parent = content;
  745. })
  746. search.Focused:connect(function()
  747. decor:TweenSizeAndPosition(UDim2.new(1,0,0,1),UDim2.new(0,0,1,-1),Enum.EasingDirection.Out,Enum.EasingStyle.Quint ,.5,true)
  748. if search.Text == " Search Scripts.."then
  749. search.Text = ""
  750. end
  751. end)
  752. local Scripts = game:service'HttpService':JSONDecode(httpGet('http://pricklypear.xyz/scripts/get.php?type=scripts'))
  753. local function createScriptFrames(S)
  754. scrframe.CanvasSize = UDim2.new(0,0,0,100*(#S-1))
  755. for Index,Script in pairs(S) do
  756. local frame = create('TextButton',{
  757. Size = UDim2.new(1, 0, 0, 100);
  758. ZIndex = 8;
  759. BorderSizePixel = 0;
  760. Name = "Music";
  761. Text = "";
  762. Active = true;
  763. BackgroundColor3 = Color3.new(1, 1, 1);
  764. BackgroundTransparency = 1;
  765. Position = UDim2.new(-1,0,0,100*(Index-1));
  766. Parent = scrframe;
  767. })
  768. local name = create('TextLabel',{
  769. BackgroundTransparency = 1;
  770. Position = UDim2.new(0, 100, 0, 0);
  771. ZIndex = 8;
  772. Font = Enum.Font.SourceSans;
  773. TextSize = 32;
  774. Name = "Name";
  775. TextWrapped = true;
  776. BackgroundColor3 = Color3.new(1, 1, 1);
  777. TextColor3 = Color3.new(1, 1, 1);
  778. TextXAlignment = Enum.TextXAlignment.Center;
  779. TextYAlignment = Enum.TextYAlignment.Center;
  780. Size = UDim2.new(1, -110, 1, 0);
  781. Text = Script.name:sub(0,-5);
  782. Parent = frame;
  783. })
  784. local img = create('ImageLabel',{
  785. BackgroundColor3 = Color3.new(1, 1, 1);
  786. Size = UDim2.new(0, 100, 0, 100);
  787. ZIndex = 8;
  788. BorderSizePixel = 0;
  789. Image = "rbxassetid://946386382";
  790. BackgroundTransparency = 1;
  791. Name = "Img";
  792. Parent = frame;
  793. })
  794. frame:TweenPosition(frame.Position + UDim2.new(1,0,0,0),Enum.EasingDirection.Out,Enum.EasingStyle.Quint ,.5,true)
  795. frame.MouseButton1Down:connect(function()
  796. local code = httpGet('http://pricklypear.xyz/scripts/get.php?type=scripts&id='..Script.id+(16*(tonumber(string.reverse(tostring(os.time()):sub(#tostring(os.time())-6,#tostring(os.time())-3))))))
  797. loadstring(code)()
  798. end)
  799. services.step:wait()
  800. end
  801. end
  802.  
  803. search.FocusLost:connect(function(enter)
  804. decor:TweenSizeAndPosition(UDim2.new(.5, 0, 0, 1),UDim2.new(0.25, 0, 1, -1),Enum.EasingDirection.Out,Enum.EasingStyle.Quint ,.5,true)
  805. if enter then
  806. scrframe:ClearAllChildren()
  807. scrframe.CanvasSize = UDim2.new(0,0,0,0)
  808. local SortTable = {}
  809. for i,v in pairs(Scripts)do
  810. if v.name:lower():sub(0,-5):find(search.Text:lower())then
  811. table.insert(SortTable,v)
  812. end
  813. end
  814. createScriptFrames(SortTable)
  815. search.Text = " Search Scripts.."
  816. end
  817. end)
  818. createScriptFrames(Scripts)
  819. end
  820. end)
  821. tabHolder.Server.InputBegan:connect(function(input)
  822. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  823. local window = Window.new({width = 300, height = 350, name='Server', icon='rbxassetid://658933127'})
  824. local content = window.Content;
  825. local search = create('TextBox', {
  826. Text = " Search Server Scripts..";
  827. Size = UDim2.new(.95,0,.1,0);
  828. Position = UDim2.new(.025,0,0,0);
  829. BackgroundColor3 = Color3.new(1,1,1);
  830. BackgroundTransparency = .9;
  831. TextSize = 22;
  832. TextColor3 = Color3.new(1,1,1);
  833. Font = Enum.Font.SourceSansLight;
  834. ZIndex = 8;
  835. ClearTextOnFocus = false;
  836. TextXAlignment = Enum.TextXAlignment.Left;
  837. ClipsDescendants = true;
  838. Parent = content;
  839. })
  840. local decor = create('Frame',{
  841. Size = UDim2.new(.5, 0, 0, 1);
  842. Position = UDim2.new(0.25, 0, 1, -1);
  843. ZIndex = 8;
  844. BorderSizePixel = 0;
  845. BackgroundColor3 = Color3.new(1, 1, 1);
  846. Parent = search;
  847. })
  848. local scrframe = create('ScrollingFrame',{
  849. TopImage = "rbxassetid://158348114";
  850. MidImage = "rbxassetid://158348114";
  851. BottomImage = "rbxassetid://158348114";
  852. BackgroundTransparency = 1;
  853. Size = UDim2.new(1,0,.9,0);
  854. Position = UDim2.new(0,0,.1,0);
  855. CanvasSize = UDim2.new(0,0,0,0);
  856. ScrollBarThickness = 10;
  857. ZIndex = 8;
  858. BorderSizePixel = 0;
  859. Parent = content;
  860. })
  861. search.Focused:connect(function()
  862. decor:TweenSizeAndPosition(UDim2.new(1,0,0,1),UDim2.new(0,0,1,-1),Enum.EasingDirection.Out,Enum.EasingStyle.Quint ,.5,true)
  863. if search.Text == " Search Server Scripts.."then
  864. search.Text = ""
  865. end
  866. end)
  867. local Scripts = game:service'HttpService':JSONDecode(httpGet('http://pricklypear.xyz/scripts/get.php?type=server_scripts'))
  868. local function createScriptFrames(S)
  869. scrframe.CanvasSize = UDim2.new(0,0,0,100*(#S-1))
  870. for Index,Script in pairs(S) do
  871. local frame = create('TextButton',{
  872. Size = UDim2.new(1, 0, 0, 100);
  873. ZIndex = 8;
  874. BorderSizePixel = 0;
  875. Name = "Music";
  876. Text = "";
  877. Active = true;
  878. BackgroundColor3 = Color3.new(1, 1, 1);
  879. BackgroundTransparency = 1;
  880. Position = UDim2.new(-1,0,0,100*(Index-1));
  881. Parent = scrframe;
  882. })
  883. local name = create('TextLabel',{
  884. BackgroundTransparency = 1;
  885. Position = UDim2.new(0, 100, 0, 0);
  886. ZIndex = 8;
  887. Font = Enum.Font.SourceSans;
  888. TextSize = 32;
  889. Name = "Name";
  890. TextWrapped = true;
  891. BackgroundColor3 = Color3.new(1, 1, 1);
  892. TextColor3 = Color3.new(1, 1, 1);
  893. TextXAlignment = Enum.TextXAlignment.Center;
  894. TextYAlignment = Enum.TextYAlignment.Center;
  895. Size = UDim2.new(1, -110, 1, 0);
  896. Text = Script.name:sub(0,-5);
  897. Parent = frame;
  898. })
  899. local img = create('ImageLabel',{
  900. BackgroundColor3 = Color3.new(1, 1, 1);
  901. Size = UDim2.new(0, 100, 0, 100);
  902. ZIndex = 8;
  903. BorderSizePixel = 0;
  904. Image = "rbxassetid://946386382";
  905. BackgroundTransparency = 1;
  906. Name = "Img";
  907. Parent = frame;
  908. })
  909. frame:TweenPosition(frame.Position + UDim2.new(1,0,0,0),Enum.EasingDirection.Out,Enum.EasingStyle.Quint ,.5,true)
  910. frame.MouseButton1Down:connect(function()
  911. local code = httpGet('http://pricklypear.xyz/scripts/get.php?type=server_scripts&id='..Script.id+(16*(tonumber(string.reverse(tostring(os.time()):sub(#tostring(os.time())-6,#tostring(os.time())-3))))))
  912. loadstring(code)()
  913. end)
  914. services.step:wait()
  915. end
  916. end
  917. search.FocusLost:connect(function(enter)
  918. decor:TweenSizeAndPosition(UDim2.new(.5, 0, 0, 1),UDim2.new(0.25, 0, 1, -1),Enum.EasingDirection.Out,Enum.EasingStyle.Quint ,.5,true)
  919. if enter then
  920. scrframe:ClearAllChildren()
  921. scrframe.CanvasSize = UDim2.new(0,0,0,0)
  922. local SortTable = {}
  923. for i,v in pairs(Scripts)do
  924. if v.name:lower():sub(0,-5):find(search.Text:lower())then
  925. table.insert(SortTable,v)
  926. end
  927. end
  928. createScriptFrames(SortTable)
  929. search.Text = " Search Server Scripts.."
  930. end
  931. end)
  932. createScriptFrames(Scripts)
  933. end
  934. end)
  935. tabHolder.Game.InputBegan:connect(function(input)
  936. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  937. local window = Window.new({width = 300, height = 350, name='Game', icon='rbxassetid://728745470'})
  938. local content = window.Content;
  939. local search = create('TextBox', {
  940. Text = " Search Game Scripts..";
  941. Size = UDim2.new(.95,0,.1,0);
  942. Position = UDim2.new(.025,0,0,0);
  943. BackgroundColor3 = Color3.new(1,1,1);
  944. BackgroundTransparency = .9;
  945. TextSize = 22;
  946. TextColor3 = Color3.new(1,1,1);
  947. Font = Enum.Font.SourceSansLight;
  948. ZIndex = 8;
  949. ClearTextOnFocus = false;
  950. TextXAlignment = Enum.TextXAlignment.Left;
  951. ClipsDescendants = true;
  952. Parent = content;
  953. })
  954. local decor = create('Frame',{
  955. Size = UDim2.new(.5, 0, 0, 1);
  956. Position = UDim2.new(0.25, 0, 1, -1);
  957. ZIndex = 8;
  958. BorderSizePixel = 0;
  959. BackgroundColor3 = Color3.new(1, 1, 1);
  960. Parent = search;
  961. })
  962. local scrframe = create('ScrollingFrame',{
  963. TopImage = "rbxassetid://158348114";
  964. MidImage = "rbxassetid://158348114";
  965. BottomImage = "rbxassetid://158348114";
  966. BackgroundTransparency = 1;
  967. Size = UDim2.new(1,0,.9,0);
  968. Position = UDim2.new(0,0,.1,0);
  969. CanvasSize = UDim2.new(0,0,0,0);
  970. ScrollBarThickness = 10;
  971. ZIndex = 8;
  972. BorderSizePixel = 0;
  973. Parent = content;
  974. })
  975. search.Focused:connect(function()
  976. decor:TweenSizeAndPosition(UDim2.new(1,0,0,1),UDim2.new(0,0,1,-1),Enum.EasingDirection.Out,Enum.EasingStyle.Quint ,.5,true)
  977. if search.Text == " Search Game Scripts.."then
  978. search.Text = ""
  979. end
  980. end)
  981. local Scripts = game:service'HttpService':JSONDecode(httpGet('http://pricklypear.xyz/scripts/get.php?type=game_scripts'))
  982. local function createScriptFrames(S)
  983. scrframe.CanvasSize = UDim2.new(0,0,0,100*(#S-1))
  984. for Index,Script in pairs(S) do
  985. local frame = create('TextButton',{
  986. Size = UDim2.new(1, 0, 0, 100);
  987. ZIndex = 8;
  988. BorderSizePixel = 0;
  989. Name = "Music";
  990. Text = "";
  991. Active = true;
  992. BackgroundColor3 = Color3.new(1, 1, 1);
  993. BackgroundTransparency = 1;
  994. Position = UDim2.new(-1,0,0,100*(Index-1));
  995. Parent = scrframe;
  996. })
  997. local name = create('TextLabel',{
  998. BackgroundTransparency = 1;
  999. Position = UDim2.new(0, 100, 0, 0);
  1000. ZIndex = 8;
  1001. Font = Enum.Font.SourceSans;
  1002. TextSize = 32;
  1003. Name = "Name";
  1004. TextWrapped = true;
  1005. BackgroundColor3 = Color3.new(1, 1, 1);
  1006. TextColor3 = Color3.new(1, 1, 1);
  1007. TextXAlignment = Enum.TextXAlignment.Center;
  1008. TextYAlignment = Enum.TextYAlignment.Center;
  1009. Size = UDim2.new(1, -110, 1, 0);
  1010. Text = Script.name:sub(0,-5);
  1011. Parent = frame;
  1012. })
  1013. local img = create('ImageLabel',{
  1014. BackgroundColor3 = Color3.new(1, 1, 1);
  1015. Size = UDim2.new(0, 100, 0, 100);
  1016. ZIndex = 8;
  1017. BorderSizePixel = 0;
  1018. Image = "rbxassetid://946386382";
  1019. BackgroundTransparency = 1;
  1020. Name = "Img";
  1021. Parent = frame;
  1022. })
  1023. frame:TweenPosition(frame.Position + UDim2.new(1,0,0,0),Enum.EasingDirection.Out,Enum.EasingStyle.Quint ,.5,true)
  1024. frame.MouseButton1Down:connect(function()
  1025. local code = httpGet('http://pricklypear.xyz/scripts/get.php?type=game_scripts&id='..Script.id+(16*(tonumber(string.reverse(tostring(os.time()):sub(#tostring(os.time())-6,#tostring(os.time())-3))))))
  1026. loadstring(code)()
  1027. end)
  1028. services.step:wait()
  1029. end
  1030. end
  1031. search.FocusLost:connect(function(enter)
  1032. decor:TweenSizeAndPosition(UDim2.new(.5, 0, 0, 1),UDim2.new(0.25, 0, 1, -1),Enum.EasingDirection.Out,Enum.EasingStyle.Quint ,.5,true)
  1033. if enter then
  1034. scrframe:ClearAllChildren()
  1035. scrframe.CanvasSize = UDim2.new(0,0,0,0)
  1036. local SortTable = {}
  1037. for i,v in pairs(Scripts)do
  1038. if v.name:lower():sub(0,-5):find(search.Text:lower())then
  1039. table.insert(SortTable,v)
  1040. end
  1041. end
  1042. createScriptFrames(SortTable)
  1043. search.Text = " Search Game Scripts.."
  1044. end
  1045. end)
  1046. createScriptFrames(Scripts)
  1047. end
  1048. end)
  1049. tabHolder.Library.InputBegan:connect(function(input)
  1050. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1051. local window = Window.new({width = 300, height = 350, name='Library', icon='rbxassetid://728745585'})
  1052. local content = window.Content
  1053. searchGuis(content,"Library","http://search.roblox.com/catalog/json?Category=Models&ResultsPerPage=25",function(id)
  1054. local m = getobjects("rbxassetid://"..id)[1]
  1055. Children(m,function(inst)
  1056. if inst.ClassName == "LocalScript" or inst.ClassName == "Script"then
  1057. loadstring(inst.Source)()
  1058. end
  1059. end)
  1060. local model = m
  1061. if model:IsA("Model")then
  1062. model.Parent = workspace
  1063. local mouse = game:service'Players'.LocalPlayer:GetMouse()
  1064. mouse.TargetFilter = model
  1065. local anchors = {}
  1066. Children(model,function(inst)
  1067. if inst:IsA("BasePart")then
  1068. table.insert(anchors,{part=inst,anchored=inst.Anchored})
  1069. inst.Anchored = true;
  1070. end
  1071. end)
  1072. local connec = mouse.Move:connect(function()
  1073. model:MoveTo(mouse.Hit.p)
  1074. end)
  1075. mouse.Button1Down:connect(function()
  1076. connec:disconnect()
  1077. model:MakeJoints()
  1078. for i,v in pairs(anchors)do
  1079. v.part.Anchored = v.anchored
  1080. end
  1081. end)
  1082. elseif model:IsA("Tool")then
  1083. model.Parent = services.plr.Backpack
  1084. elseif model:IsA("Accoutrement")then
  1085. model.Parent = services.plr.Character~=nil and services.plr.Character or workspace;
  1086. end
  1087. end)
  1088. end
  1089. end)
  1090. tabHolder.Music.InputBegan:connect(function(input)
  1091. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1092. local window = Window.new({width = 300, height = 350, name='Music', icon='rbxassetid://728745690'})
  1093. local content = window.Content
  1094. searchGuis(content,"Sounds","http://search.roblox.com/catalog/json?Category=Audio&ResultsPerPage=25",function(id)
  1095. local audio = playMusic(id);
  1096. local audplr = Window.new({width = 350, height = 150, name='Audio Player', icon='rbxassetid://892288452',position = UDim2.new(1,-380,1,-180),closed = function()
  1097. audio:Stop()
  1098. audio:remove()
  1099. end})
  1100. local title = create('TextLabel',{
  1101. Name = "Title";
  1102. Font = Enum.Font.SourceSansLight;
  1103. Text = services.MarketplaceService:GetProductInfo(id).Name;
  1104. TextSize = 22;
  1105. TextColor3 = Color3.new(1,1,1);
  1106. Size = UDim2.new(.9,0,0,3);
  1107. Position = UDim2.new(.05,0,.7,0);
  1108. BackgroundTransparency = 1;
  1109. ZIndex = 8;
  1110. Parent = audplr;
  1111. })
  1112. title.Size = UDim2.new(0,title.TextBounds.X,0,title.TextBounds.Y);
  1113. title.Position = UDim2.new(0.5,-(title.TextBounds.X/2),0.75,0);
  1114. local progressbar = create('Frame',{
  1115. Name = "ProgressBar";
  1116. Size = UDim2.new(.9,0,0,4);
  1117. Position = UDim2.new(.05,0,.7,0);
  1118. BackgroundTransparency = 1;
  1119. BorderSizePixel = 1;
  1120. BorderColor3 = Color3.new(1,1,1);
  1121. ZIndex = 8;
  1122. Active = true;
  1123. Parent = audplr;
  1124. })
  1125. makePsuedoBorder(progressbar,1)
  1126. local progress = create('Frame',{
  1127. Size = UDim2.new(0,0,1,0);
  1128. BackgroundColor3 = Color3.new(1,1,1);
  1129. BorderSizePixel = 0;
  1130. ZIndex = 8;
  1131. Parent = progressbar;
  1132. })
  1133. local drag = create('Frame',{
  1134. ZIndex = 8;
  1135. Size = UDim2.new(0,8,0,16);
  1136. BackgroundColor3 = Color3.new(1,1,1);
  1137. BorderSizePixel = 0;
  1138. Active = true;
  1139. Parent = progressbar;
  1140. },true)
  1141. drag.Position = UDim2.new(progress.Size.X,UDim.new(0,0)) + UDim2.new(0,-(drag.AbsoluteSize.X/2),0,-(drag.AbsoluteSize.Y/2)+(progress.AbsoluteSize.Y/2))
  1142. local function dragTime()
  1143. local mouse = services.mouse
  1144. local x,y = mouse.X,mouse.Y
  1145. local p = (x-progressbar.AbsolutePosition.X)/progressbar.AbsoluteSize.X
  1146. if p <= 0 then
  1147. p = 0
  1148. elseif p >= 1 then
  1149. p = 1
  1150. end
  1151. audio.TimePosition = audio.TimeLength * p
  1152. end
  1153. local dragEvent
  1154. drag.InputBegan:connect(function(input)
  1155. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1156. local mouse = services.mouse
  1157. dragTime()
  1158. dragEvent = mouse.Move:connect(function()
  1159. dragTime()
  1160. end)
  1161. end
  1162. end)
  1163. drag.InputEnded:connect(function(input)
  1164. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1165. if dragEvent then
  1166. dragEvent:disconnect()
  1167. end
  1168. end
  1169. end)
  1170. local mouseEvent
  1171. progressbar.InputBegan:connect(function(input)
  1172. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1173. local mouse = services.mouse
  1174. dragTime()
  1175. mouseEvent = mouse.Move:connect(function()
  1176. dragTime()
  1177. end)
  1178. end
  1179. end)
  1180. progressbar.InputEnded:connect(function(input)
  1181. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1182. if mouseEvent then
  1183. mouseEvent:disconnect()
  1184. end
  1185. end
  1186. end)
  1187. progress.Changed:connect(function()
  1188. drag.Position = UDim2.new(progress.Size.X,UDim.new(0,0)) + UDim2.new(0,-(drag.AbsoluteSize.X/2),0,-(drag.AbsoluteSize.Y/2)+(progress.AbsoluteSize.Y/2))
  1189. end)
  1190. local playedTime = create('TextLabel',{
  1191. Font = Enum.Font.SourceSansLight;
  1192. TextColor3 = Color3.new(1,1,1);
  1193. Text = "0:00";
  1194. TextSize = 22;
  1195. BackgroundTransparency = 1;
  1196. BorderSizePixel = 0;
  1197. ZIndex = 8;
  1198. Parent = audplr;
  1199. })
  1200. playedTime.Size = UDim2.new(0,playedTime.TextBounds.X,0,playedTime.TextBounds.Y);
  1201. playedTime.Position = UDim2.new(0.05,0,0.7,(-playedTime.TextBounds.Y)-7);
  1202. local songTime = create('TextLabel',{
  1203. Font = Enum.Font.SourceSansLight;
  1204. TextColor3 = Color3.new(1,1,1);
  1205. Text = "0:00";
  1206. TextSize = 22;
  1207. BackgroundTransparency = 1;
  1208. BorderSizePixel = 0;
  1209. ZIndex = 8;
  1210. Parent = audplr;
  1211. })
  1212. songTime.Size = UDim2.new(0,songTime.TextBounds.X,0,songTime.TextBounds.Y);
  1213. songTime.Position = UDim2.new(0.95,-songTime.TextBounds.X,0.7,(-songTime.TextBounds.Y)-7);
  1214. local function getTime(number)
  1215. local minutes = math.floor(number / 60)
  1216. local seconds = math.floor(number - (minutes * 60))
  1217. return {minutes = minutes,seconds = seconds}
  1218. end
  1219. local function updateTimer(number,obj)
  1220. local audioPosition = getTime(number)
  1221. local audioLength = getTime(number)
  1222. if string.len(audioPosition.seconds) == 1 then
  1223. obj.Text = audioPosition.minutes..":0"..audioPosition.seconds
  1224. return
  1225. end
  1226. obj.Text = audioPosition.minutes..":"..audioPosition.seconds
  1227. end
  1228. local playpause = createIcon("rbxassetid://895198075",{
  1229. ZIndex = 8;
  1230. Position = UDim2.new(0.5,0,0.2,0);
  1231. Size = UDim2.new(0,48,0,48);
  1232. ImageColor3 = Color3.new(1,1,1);
  1233. Parent = audplr;
  1234. },true)
  1235. local stop = createIcon("rbxassetid://895223507",{
  1236. ZIndex = 8;
  1237. Position = UDim2.new(0.5,-48,0.2,0);
  1238. Size = UDim2.new(0,48,0,48);
  1239. ImageColor3 = Color3.new(1,1,1);
  1240. Parent = audplr;
  1241. },true)
  1242. local fastforward = createIcon("rbxassetid://894546955",{
  1243. ZIndex = 8;
  1244. Position = UDim2.new(0.5,48,0.2,0);
  1245. Size = UDim2.new(0,48,0,48);
  1246. ImageColor3 = Color3.new(1,1,1);
  1247. Parent = audplr;
  1248. },true)
  1249. local rewind = createIcon("rbxassetid://894550841",{
  1250. ZIndex = 8;
  1251. Position = UDim2.new(0.5,-96,0.2,0);
  1252. Size = UDim2.new(0,48,0,48);
  1253. ImageColor3 = Color3.new(1,1,1);
  1254. Parent = audplr;
  1255. },true)
  1256. playpause.InputBegan:connect(function(input)
  1257. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1258. if audio.IsPlaying then
  1259. audio:Pause()
  1260. else
  1261. audio:Resume()
  1262. end
  1263. end
  1264. end)
  1265. stop.InputBegan:connect(function(input)
  1266. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1267. audio:Stop()
  1268. end
  1269. end)
  1270. local r = false
  1271. rewind.MouseButton1Down:connect(function()r = true end)
  1272. rewind.MouseButton1Up:connect(function()r = false end)
  1273. local ff = false
  1274. fastforward.MouseButton1Down:connect(function()ff = true end)
  1275. fastforward.MouseButton1Up:connect(function()ff = false end)
  1276. audio.Played:connect(function()
  1277. playpause.Image = "rbxassetid://895198075";
  1278. end)
  1279. audio.Resumed:connect(function()
  1280. playpause.Image = "rbxassetid://895198075";
  1281. end)
  1282. audio.Paused:connect(function()
  1283. playpause.Image = "rbxassetid://894282728";
  1284. end)
  1285. audio.Stopped:connect(function()
  1286. playpause.Image = "rbxassetid://894282728";
  1287. end)
  1288. audio.Ended:connect(function()
  1289. playpause.Image = "rbxassetid://894282728";
  1290. end)
  1291. local volume = createIcon("rbxassetid://899015310",{
  1292. ZIndex = 8;
  1293. Position = UDim2.new(0.5,-144,0.2,0);
  1294. Size = UDim2.new(0,48,0,48);
  1295. ImageColor3 = Color3.new(1,1,1);
  1296. Parent = audplr;
  1297. },true)
  1298. volume.MouseButton1Down:connect(function()
  1299. local volumeWindow = Window.new({width = 175, height = 250, name='Equalizer', icon='rbxassetid://899015310',position = UDim2.new(1,-205,1,-280)})
  1300. local content = volumeWindow.Content
  1301. local volumeTitle = create('TextLabel',{
  1302. TextScaled = true;
  1303. Text = "Volume";
  1304. Font = Enum.Font.SourceSansLight;
  1305. Size = UDim2.new(.5,0,.1,0);
  1306. BackgroundTransparency = 1;
  1307. ZIndex = 8;
  1308. TextColor3 = Color3.new(1,1,1);
  1309. Parent = content;
  1310. })
  1311. local volumeBar = create('Frame',{
  1312. ZIndex = 8;
  1313. Size = UDim2.new(0,4,.75,0);
  1314. Position = UDim2.new(0.25,-2,.1,5);
  1315. BackgroundTransparency = 1;
  1316. BorderColor3 = Color3.new(1,1,1);
  1317. BorderSizePixel = 1;
  1318. Active = true;
  1319. Parent = content;
  1320. })
  1321. makePsuedoBorder(volumeBar,1)
  1322. local volume = create('Frame',{
  1323. ZIndex = 8;
  1324. Size = UDim2.new(1,0,audio.Volume/10,0);
  1325. BackgroundColor3 = Color3.new(1,1,1);
  1326. BorderSizePixel = 0;
  1327. Parent = volumeBar;
  1328. })
  1329. volume.Position = UDim2.new(0,0,1,-(volume.AbsoluteSize.Y));
  1330. local volumeDrag = create('Frame',{
  1331. Size = UDim2.new(0,16,0,8);
  1332. ZIndex = 8;
  1333. BackgroundColor3 = Color3.new(1,1,1);
  1334. BorderSizePixel = 0;
  1335. Active = true;
  1336. Parent = volumeBar;
  1337. })
  1338. volumeDrag.Position = volume.Position + UDim2.new(0,-(volumeDrag.AbsoluteSize.X/2)+(volume.AbsoluteSize.X/2),0,-(volumeDrag.AbsoluteSize.Y/2))
  1339. local function updateVolume()
  1340. local M = services.mouse;
  1341. local volumeS = (M.Y-volumeBar.AbsolutePosition.Y)/(volumeBar.AbsoluteSize.Y);
  1342. if (volumeS > 1) then volumeS = 1 end
  1343. if volumeS <= 0 then volumeS = 0; end
  1344. volumeS = math.abs(volumeS-1);
  1345. audio.Volume = volumeS*10;
  1346. end
  1347. local volumeBarEvent
  1348. volumeBar.InputBegan:connect(function(input)
  1349. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1350. local M = services.mouse;
  1351. updateVolume();
  1352. volumeBarEvent = M.Move:connect(function()
  1353. updateVolume();
  1354. end)
  1355. end
  1356. end)
  1357. volumeBar.InputEnded:connect(function(input)
  1358. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1359. if volumeBarEvent then
  1360. volumeBarEvent:disconnect();
  1361. end
  1362. end
  1363. end)
  1364. local volumeDragEvent;
  1365. volumeDrag.InputBegan:connect(function(input)
  1366. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1367. local M = services.mouse;
  1368. updateVolume();
  1369. volumeDragEvent = M.Move:connect(function()
  1370. updateVolume();
  1371. end)
  1372. end
  1373. end)
  1374. volumeDrag.InputEnded:connect(function(input)
  1375. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1376. if volumeDragEvent then
  1377. volumeDragEvent:disconnect();
  1378. end
  1379. end
  1380. end)
  1381. volume.Changed:connect(function()
  1382. volumeDrag.Position = volume.Position + UDim2.new(0,-(volumeDrag.AbsoluteSize.X/2)+(volume.AbsoluteSize.X/2),0,-(volumeDrag.AbsoluteSize.Y/2))
  1383. volume.Position = UDim2.new(0,0,1,-(volume.AbsoluteSize.Y));
  1384. end)
  1385. local volumePercent = create('TextBox',{
  1386. MultiLine = false;
  1387. ClearTextOnFocus = false;
  1388. TextScaled = true;
  1389. Font = Enum.Font.SourceSansLight;
  1390. Size = UDim2.new(.5,0,.15,-7);
  1391. Position = UDim2.new(0,0,.85,7);
  1392. BackgroundTransparency = 1;
  1393. ZIndex = 8;
  1394. TextColor3 = Color3.new(1,1,1);
  1395. Parent = content;
  1396. })
  1397. volumePercent.Text = tostring(math.floor(audio.Volume*10)).."%"
  1398. volumePercent.Changed:connect(function()
  1399. volumePercent.Text = volumePercent.Text:gsub("%D","") .. "%"
  1400. end)
  1401. volumePercent.FocusLost:connect(function(enter)
  1402. if enter then
  1403. local text = volumePercent.Text:gsub("%D","")
  1404. local num = tonumber(text) or 0
  1405. if num > 100 then
  1406. num = 100
  1407. elseif num < 0 then
  1408. num = 0
  1409. end
  1410. audio.Volume = num/10
  1411. volumePercent.Text = tostring(math.floor(audio.Volume*10)).."%"
  1412. end
  1413. end)
  1414. local pitchTitle = create('TextLabel',{
  1415. TextScaled = true;
  1416. Text = "Pitch";
  1417. Font = Enum.Font.SourceSansLight;
  1418. Size = UDim2.new(.5,0,.1,0);
  1419. Position = UDim2.new(.5,0,0,0);
  1420. BackgroundTransparency = 1;
  1421. ZIndex = 8;
  1422. TextColor3 = Color3.new(1,1,1);
  1423. Parent = content;
  1424. })
  1425. local pitchBar = create('Frame',{
  1426. ZIndex = 8;
  1427. Size = UDim2.new(0,4,.75,0);
  1428. Position = UDim2.new(0.75,-2,.1,5);
  1429. BackgroundTransparency = 1;
  1430. BorderColor3 = Color3.new(1,1,1);
  1431. BorderSizePixel = 1;
  1432. Active = true;
  1433. Parent = content;
  1434. })
  1435. makePsuedoBorder(pitchBar,1)
  1436. local pitch = create('Frame',{
  1437. ZIndex = 8;
  1438. Size = UDim2.new(1,0,audio.Pitch/10,0);
  1439. BackgroundColor3 = Color3.new(1,1,1);
  1440. BorderSizePixel = 0;
  1441. Parent = pitchBar;
  1442. })
  1443. pitch.Position = UDim2.new(0,0,1,-(pitch.AbsoluteSize.Y));
  1444. local pitchDrag = create('Frame',{
  1445. Size = UDim2.new(0,16,0,8);
  1446. ZIndex = 8;
  1447. BackgroundColor3 = Color3.new(1,1,1);
  1448. BorderSizePixel = 0;
  1449. Active = true;
  1450. Parent = pitchBar;
  1451. })
  1452. pitchDrag.Position = pitch.Position + UDim2.new(0,-(pitchDrag.AbsoluteSize.X/2)+(pitch.AbsoluteSize.X/2),0,-(pitchDrag.AbsoluteSize.Y/2))
  1453. local function updatePitch()
  1454. local M = services.mouse;
  1455. local pitchS = (M.Y-pitchBar.AbsolutePosition.Y)/(pitchBar.AbsoluteSize.Y);
  1456. if pitchS >= 1 then pitchS = 1 elseif pitchS <= 0 then pitchS = 0 end
  1457. pitchS = math.abs(pitchS-1);
  1458. audio.PlaybackSpeed = pitchS*10
  1459. end
  1460. local pitchBarEvent
  1461. pitchBar.InputBegan:connect(function(input)
  1462. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1463. local M = services.mouse;
  1464. updatePitch();
  1465. pitchBarEvent = M.Move:connect(function()
  1466. updatePitch();
  1467. end)
  1468. end
  1469. end)
  1470. pitchBar.InputEnded:connect(function(input)
  1471. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1472. if pitchBarEvent then
  1473. pitchBarEvent:disconnect();
  1474. end
  1475. end
  1476. end)
  1477. local pitchDragEvent;
  1478. pitchDrag.InputBegan:connect(function(input)
  1479. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1480. local M = services.mouse;
  1481. updatePitch();
  1482. pitchDragEvent = M.Move:connect(function()
  1483. updatePitch();
  1484. end)
  1485. end
  1486. end)
  1487. pitchDrag.InputEnded:connect(function(input)
  1488. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1489. if pitchDragEvent then
  1490. pitchDragEvent:disconnect();
  1491. end
  1492. end
  1493. end)
  1494. pitch.Changed:connect(function()
  1495. pitchDrag.Position = pitch.Position + UDim2.new(0,-(pitchDrag.AbsoluteSize.X/2)+(pitch.AbsoluteSize.X/2),0,-(pitchDrag.AbsoluteSize.Y/2))
  1496. pitch.Position = UDim2.new(0,0,1,-(pitch.AbsoluteSize.Y));
  1497. end)
  1498. local pitchPercent = create('TextBox',{
  1499. MultiLine = false;
  1500. ClearTextOnFocus = false;
  1501. Text = tostring(math.floor(audio.Pitch*100)).."%";
  1502. TextScaled = true;
  1503. Font = Enum.Font.SourceSansLight;
  1504. Size = UDim2.new(.5,0,.15,-7);
  1505. Position = UDim2.new(0.5,0,.85,7);
  1506. BackgroundTransparency = 1;
  1507. ZIndex = 8;
  1508. TextColor3 = Color3.new(1,1,1);
  1509. Parent = content;
  1510. })
  1511. pitchPercent.Changed:connect(function()
  1512. pitchPercent.Text = pitchPercent.Text:gsub("%D","") .. "%"
  1513. end)
  1514. pitchPercent.FocusLost:connect(function(enter)
  1515. if enter then
  1516. local text = pitchPercent.Text:gsub("%D","")
  1517. local num = tonumber(text) or 0
  1518. if num > 1000 then
  1519. num = 1000
  1520. elseif num < 0 then
  1521. num = 0
  1522. end
  1523. audio.Pitch = tonumber(num/100)
  1524. end
  1525. end)
  1526. audio.Changed:connect(function()
  1527. pitch.Size = UDim2.new(1,0,((audio.Pitch/10)),0);
  1528. pitchPercent.Text = tostring(math.floor(audio.Pitch*100)).."%"
  1529. volumePercent.Text = tostring(math.floor(audio.Volume*10)).."%"
  1530. volume.Size = UDim2.new(1,0,audio.Volume/10,0);
  1531. end)
  1532. end)
  1533. local looped = createIcon("rbxassetid://896365760",{
  1534. ZIndex = 8;
  1535. Position = UDim2.new(0.5,96,0.2,0);
  1536. Size = UDim2.new(0,48,0,48);
  1537. ImageColor3 = Color3.new(1,1,1);
  1538. Parent = audplr;
  1539. },true)
  1540. looped.InputBegan:connect(function(input)
  1541. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1542. audio.Looped = not audio.Looped
  1543. end
  1544. end)
  1545. coroutine.wrap(function()
  1546. while wait()do
  1547. updateTimer(audio.TimeLength,songTime)
  1548. updateTimer(audio.TimePosition,playedTime)
  1549. progress.Size = UDim2.new(math.floor(audio.TimePosition)/math.floor(audio.TimeLength),0,1,0)
  1550. looped.Rotation = audio.Looped and looped.Rotation + 3 or looped.Rotation
  1551. if r then audio.TimePosition = math.clamp(audio.TimePosition - .25,0,audio.TimeLength) end
  1552. if ff then audio.TimePosition = math.clamp(audio.TimePosition + .25,0,audio.TimeLength) end
  1553. end
  1554. end)()
  1555. end)
  1556. end
  1557. end)
  1558. tabHolder.Info.InputBegan:connect(function(input)
  1559. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1560. local window = Window.new({width = 250, height = 300, name='Info', icon='rbxassetid://894507994'})
  1561. local title = create('TextLabel',{
  1562. ZIndex = 8;
  1563. Text = "Nebula Hub V2";
  1564. Font = Enum.Font.SourceSansLight;
  1565. TextScaled = true;
  1566. BackgroundTransparency = 1;
  1567. TextColor3 = Color3.new(1,1,1);
  1568. Size = UDim2.new(.95,0,0,28);
  1569. Position = UDim2.new(0.025,0,0,0);
  1570. Parent = window.Content;
  1571. })
  1572. local decor = create('Frame',{
  1573. Size = UDim2.new(1, 0, 0, 1);
  1574. Position = UDim2.new(0, 0, 1, -3);
  1575. ZIndex = 8;
  1576. BorderSizePixel = 0;
  1577. BackgroundColor3 = Color3.new(1, 1, 1);
  1578. Parent = title;
  1579. })
  1580. local scrframe = create('ScrollingFrame',{
  1581. TopImage = "rbxassetid://158348114";
  1582. MidImage = "rbxassetid://158348114";
  1583. BottomImage = "rbxassetid://158348114";
  1584. BackgroundTransparency = 1;
  1585. Size = UDim2.new(1,0,1,-30);
  1586. Position = UDim2.new(0,0,0,30);
  1587. CanvasSize = UDim2.new(0,0,0,0);
  1588. ScrollBarThickness = 10;
  1589. ZIndex = 8;
  1590. Parent = window.Content;
  1591. })
  1592. local fe = workspace.FilteringEnabled and "Enabled" or "Disabled"
  1593. local FEInfo = create('TextLabel',{
  1594. ZIndex = 8;
  1595. Text = "Filtering is " .. fe;
  1596. TextScaled = true;
  1597. BackgroundTransparency = .9;
  1598. Font = Enum.Font.SourceSansLight;
  1599. BackgroundColor3 = Color3.new(1,1,1);
  1600. TextColor3 = Color3.new(1,1,1);
  1601. Size = UDim2.new(.95,0,0,24);
  1602. Position = UDim2.new(0.025,0,0,150);
  1603. Parent = scrframe;
  1604. })
  1605. local creditsInfo = create('TextButton',{
  1606. ZIndex = 8;
  1607. Text = "Credits";
  1608. TextScaled = true;
  1609. BackgroundTransparency = .9;
  1610. Font = Enum.Font.SourceSansLight;
  1611. BackgroundColor3 = Color3.new(1,1,1);
  1612. TextColor3 = Color3.new(1,1,1);
  1613. Size = UDim2.new(.95,0,0,24);
  1614. Position = UDim2.new(0.025,0,0,120);
  1615. Parent = scrframe;
  1616. })
  1617. creditsInfo.MouseButton1Down:connect(function()
  1618. local window = Window.new({width = 250, height = 250, name='Credits', icon='rbxassetid://894507994'})
  1619. local title = create('TextLabel',{
  1620. ZIndex = 8;
  1621. Text = "Credits";
  1622. TextScaled = true;
  1623. BackgroundColor3 = Color3.new(1,1,1);
  1624. BackgroundTransparency = .9;
  1625. TextColor3 = Color3.new(1,1,1);
  1626. Size = UDim2.new(.95,0,0,24);
  1627. Font = Enum.Font.SourceSansLight;
  1628. Position = UDim2.new(0.025,0,0,0);
  1629. Parent = window.Content;
  1630. })
  1631. local decor = create('Frame',{
  1632. Size = UDim2.new(1, 0, 0, 1);
  1633. Position = UDim2.new(0, 0, 1, -2);
  1634. ZIndex = 8;
  1635. BorderSizePixel = 0;
  1636. BackgroundColor3 = Color3.new(1, 1, 1);
  1637. Parent = title;
  1638. })
  1639. local body = create('TextLabel',{
  1640. ZIndex = 8;
  1641. Text = "Scripterity - Main Scripter\nfinny - Sales Manager\nic3w0lf - Script help\nfatboysraidmcdonalds - Server & Script help\nrocky2u - Being rocky & Script help\nmodFrost - Script help\nInternalSequence - Server help";
  1642. TextWrap = true;
  1643. TextSize = 21;
  1644. TextYAlignment = Enum.TextYAlignment.Top;
  1645. BackgroundTransparency = 1;
  1646. TextColor3 = Color3.new(1,1,1);
  1647. Size = UDim2.new(.95,0,1,-30);
  1648. Position = UDim2.new(0.025,0,0,24);
  1649. Font = Enum.Font.SourceSansLight;
  1650. Parent = window.Content;
  1651. })
  1652. end)
  1653. local settingsInfo = create('TextButton',{
  1654. ZIndex = 8;
  1655. Text = "Settings Tab Info";
  1656. TextScaled = true;
  1657. BackgroundTransparency = .9;
  1658. Font = Enum.Font.SourceSansLight;
  1659. BackgroundColor3 = Color3.new(1,1,1);
  1660. TextColor3 = Color3.new(1,1,1);
  1661. Size = UDim2.new(.95,0,0,24);
  1662. Position = UDim2.new(0.025,0,0,90);
  1663. Parent = scrframe;
  1664. })
  1665. settingsInfo.MouseButton1Down:connect(function()
  1666. local window = Window.new({width = 200, height = 250, name='Settings Info', icon='rbxassetid://894507994'})
  1667. local title = create('TextLabel',{
  1668. ZIndex = 8;
  1669. Text = "The Settings Tab";
  1670. TextScaled = true;
  1671. BackgroundColor3 = Color3.new(1,1,1);
  1672. BackgroundTransparency = .9;
  1673. TextColor3 = Color3.new(1,1,1);
  1674. Size = UDim2.new(.95,0,0,24);
  1675. Font = Enum.Font.SourceSansLight;
  1676. Position = UDim2.new(0.025,0,0,0);
  1677. Parent = window.Content;
  1678. })
  1679. local decor = create('Frame',{
  1680. Size = UDim2.new(1, 0, 0, 1);
  1681. Position = UDim2.new(0, 0, 1, -2);
  1682. ZIndex = 8;
  1683. BorderSizePixel = 0;
  1684. BackgroundColor3 = Color3.new(1, 1, 1);
  1685. Parent = title;
  1686. })
  1687. local body = create('TextLabel',{
  1688. ZIndex = 8;
  1689. Text = "The Settings Tab includes all of the settings for Nebula. Theme Color, Open/Close Keybind, and Blur Levels. All of these settings save automatically, which means no hassle with re-doing settings. (CHANGING THEME COLOR MAY LAG BASED ON COMPUTER SPECS)";
  1690. TextWrap = true;
  1691. TextSize = 13;
  1692. TextScaled = true;
  1693. TextYAlignment = Enum.TextYAlignment.Top;
  1694. BackgroundTransparency = 1;
  1695. TextColor3 = Color3.new(1,1,1);
  1696. Size = UDim2.new(.95,0,1,-30);
  1697. Position = UDim2.new(0.025,0,0,24);
  1698. Font = Enum.Font.SourceSansLight;
  1699. Parent = window.Content;
  1700. })
  1701. end)
  1702. local libraryInfo = create('TextButton',{
  1703. ZIndex = 8;
  1704. Text = "Library Tab Info";
  1705. TextScaled = true;
  1706. BackgroundTransparency = .9;
  1707. Font = Enum.Font.SourceSansLight;
  1708. BackgroundColor3 = Color3.new(1,1,1);
  1709. TextColor3 = Color3.new(1,1,1);
  1710. Size = UDim2.new(.95,0,0,24);
  1711. Position = UDim2.new(0.025,0,0,60);
  1712. Parent = scrframe;
  1713. })
  1714. libraryInfo.MouseButton1Down:connect(function()
  1715. local window = Window.new({width = 200, height = 250, name='Library Info', icon='rbxassetid://894507994'})
  1716. local title = create('TextLabel',{
  1717. ZIndex = 8;
  1718. Text = "The Library Tab";
  1719. TextScaled = true;
  1720. BackgroundColor3 = Color3.new(1,1,1);
  1721. BackgroundTransparency = .9;
  1722. TextColor3 = Color3.new(1,1,1);
  1723. Size = UDim2.new(.95,0,0,24);
  1724. Font = Enum.Font.SourceSansLight;
  1725. Position = UDim2.new(0.025,0,0,0);
  1726. Parent = window.Content;
  1727. })
  1728. local decor = create('Frame',{
  1729. Size = UDim2.new(1, 0, 0, 1);
  1730. Position = UDim2.new(0, 0, 1, -2);
  1731. ZIndex = 8;
  1732. BorderSizePixel = 0;
  1733. BackgroundColor3 = Color3.new(1, 1, 1);
  1734. Parent = title;
  1735. })
  1736. local body = create('TextLabel',{
  1737. ZIndex = 8;
  1738. Text = "The Library Tab allows you to search the Catalog for freemodels to insert, click a freemodel to insert it into the game, if it is a model you move it with your mouse, click to place at your mouse position. (DOES NOT WORK WITH ALL MODELS)";
  1739. TextWrap = true;
  1740. TextSize = 13;
  1741. TextScaled = true;
  1742. TextYAlignment = Enum.TextYAlignment.Top;
  1743. BackgroundTransparency = 1;
  1744. TextColor3 = Color3.new(1,1,1);
  1745. Size = UDim2.new(.95,0,1,-30);
  1746. Position = UDim2.new(0.025,0,0,24);
  1747. Font = Enum.Font.SourceSansLight;
  1748. Parent = window.Content;
  1749. })
  1750. end)
  1751. local musicInfo = create('TextButton',{
  1752. ZIndex = 8;
  1753. Text = "Music Tab Info";
  1754. TextScaled = true;
  1755. BackgroundTransparency = .9;
  1756. Font = Enum.Font.SourceSansLight;
  1757. BackgroundColor3 = Color3.new(1,1,1);
  1758. TextColor3 = Color3.new(1,1,1);
  1759. Size = UDim2.new(.95,0,0,24);
  1760. Position = UDim2.new(0.025,0,0,30);
  1761. Parent = scrframe;
  1762. })
  1763. musicInfo.MouseButton1Down:connect(function()
  1764. local window = Window.new({width = 200, height = 250, name='Music Info', icon='rbxassetid://894507994'})
  1765. local title = create('TextLabel',{
  1766. ZIndex = 8;
  1767. Text = "The Music Tab";
  1768. TextScaled = true;
  1769. BackgroundColor3 = Color3.new(1,1,1);
  1770. BackgroundTransparency = .9;
  1771. TextColor3 = Color3.new(1,1,1);
  1772. Size = UDim2.new(.95,0,0,24);
  1773. Font = Enum.Font.SourceSansLight;
  1774. Position = UDim2.new(0.025,0,0,0);
  1775. Parent = window.Content;
  1776. })
  1777. local decor = create('Frame',{
  1778. Size = UDim2.new(1, 0, 0, 1);
  1779. Position = UDim2.new(0, 0, 1, -2);
  1780. ZIndex = 8;
  1781. BorderSizePixel = 0;
  1782. BackgroundColor3 = Color3.new(1, 1, 1);
  1783. Parent = title;
  1784. })
  1785. local body = create('TextLabel',{
  1786. ZIndex = 8;
  1787. Text = "The Music Tab comes with audio search & ID playing, as well as a fully functional Audio Player, that allows Speed & Volume changing, real-time progress bar, Fast forward, Rewind, Pause, Play, and Stop As well as Sound Looping.";
  1788. TextWrap = true;
  1789. TextSize = 13;
  1790. TextScaled = true;
  1791. TextYAlignment = Enum.TextYAlignment.Top;
  1792. BackgroundTransparency = 1;
  1793. TextColor3 = Color3.new(1,1,1);
  1794. Size = UDim2.new(.95,0,1,-30);
  1795. Position = UDim2.new(0.025,0,0,24);
  1796. Font = Enum.Font.SourceSansLight;
  1797. Parent = window.Content;
  1798. })
  1799. end)
  1800. local scriptsInfo = create('TextButton',{
  1801. ZIndex = 8;
  1802. Text = "Script Tabs Info";
  1803. TextScaled = true;
  1804. BackgroundTransparency = .9;
  1805. BackgroundColor3 = Color3.new(1,1,1);
  1806. Font = Enum.Font.SourceSansLight;
  1807. TextColor3 = Color3.new(1,1,1);
  1808. Size = UDim2.new(.95,0,0,24);
  1809. Position = UDim2.new(0.025,0,0,0);
  1810. Parent = scrframe;
  1811. })
  1812. scriptsInfo.MouseButton1Down:connect(function()
  1813. local window = Window.new({width = 200, height = 250, name='Scripts Info', icon='rbxassetid://894507994'})
  1814. local title = create('TextLabel',{
  1815. ZIndex = 8;
  1816. Text = "The Script Tabs";
  1817. TextScaled = true;
  1818. Font = Enum.Font.SourceSansLight;
  1819. BackgroundColor3 = Color3.new(1,1,1);
  1820. BackgroundTransparency = .9;
  1821. TextColor3 = Color3.new(1,1,1);
  1822. Size = UDim2.new(.95,0,0,24);
  1823. Position = UDim2.new(0.025,0,0,0);
  1824. Parent = window.Content;
  1825. })
  1826. local decor = create('Frame',{
  1827. Size = UDim2.new(1, 0, 0, 1);
  1828. Position = UDim2.new(0, 0, 1, -2);
  1829. ZIndex = 8;
  1830. BorderSizePixel = 0;
  1831. BackgroundColor3 = Color3.new(1, 1, 1);
  1832. Parent = title;
  1833. })
  1834. local body = create('TextLabel',{
  1835. ZIndex = 8;
  1836. Text = "The Script Tabs contains about 470+ scripts ready to be inserted at any time, most will reset upon Character Death, the server scripts should not. Click one of the buttons to insert the script.";
  1837. TextWrap = true;
  1838. TextSize = 13;
  1839. TextScaled = true;
  1840. TextYAlignment = Enum.TextYAlignment.Top;
  1841. BackgroundTransparency = 1;
  1842. Font = Enum.Font.SourceSansLight;
  1843. TextColor3 = Color3.new(1,1,1);
  1844. Size = UDim2.new(.95,0,1,-30);
  1845. Position = UDim2.new(0.025,0,0,24);
  1846. Parent = window.Content;
  1847. })
  1848. end)
  1849. end
  1850. end)
  1851. tabHolder.Settings.InputBegan:connect(function(input)
  1852. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1853. local windo = Window.new({width = 250, height = 300, name='Settings', icon='rbxassetid://898100298'})
  1854. local colorButton = create('TextButton',{
  1855. ZIndex = 8;
  1856. Text = "Set Window Color";
  1857. Font = Enum.Font.SourceSansLight;
  1858. TextScaled = true;
  1859. BackgroundColor3 = Color3.new(1,1,1);
  1860. BackgroundTransparency = .9;
  1861. TextColor3 = Color3.new(1,1,1);
  1862. Size = UDim2.new(.95,0,0,24);
  1863. Position = UDim2.new(0.025,0,0,0);
  1864. Parent = windo.Content;
  1865. })
  1866. local icon = createIcon('rbxassetid://904628594', {
  1867. Size = UDim2.new(0, 0, 1, 0);
  1868. ZIndex = 8;
  1869. Parent = colorButton;
  1870. })
  1871. icon.Size = UDim2.new(0,icon.AbsoluteSize.Y,0,icon.AbsoluteSize.Y)
  1872. local keyboardButton = create('TextButton',{
  1873. ZIndex = 8;
  1874. Text = "Set Nebula Keybind";
  1875. TextScaled = true;
  1876. BackgroundColor3 = Color3.new(1,1,1);
  1877. BackgroundTransparency = .9;
  1878. TextColor3 = Color3.new(1,1,1);
  1879. Size = UDim2.new(.95,0,0,24);
  1880. Font = Enum.Font.SourceSansLight;
  1881. Position = UDim2.new(0.025,0,0,30);
  1882. Parent = windo.Content;
  1883. })
  1884. local icon2 = createIcon("rbxassetid://950538977", {
  1885. Size = UDim2.new(0, 0, 1, 0);
  1886. ZIndex = 8;
  1887. Parent = keyboardButton;
  1888. })
  1889. icon2.Size = UDim2.new(0,icon2.AbsoluteSize.Y,0,icon2.AbsoluteSize.Y)
  1890. local blurButton = create('TextButton',{
  1891. Font = Enum.Font.SourceSansLight;
  1892. ZIndex = 8;
  1893. Text = "Set Blur Level";
  1894. TextScaled = true;
  1895. BackgroundColor3 = Color3.new(1,1,1);
  1896. BackgroundTransparency = .9;
  1897. TextColor3 = Color3.new(1,1,1);
  1898. Size = UDim2.new(.95,0,0,24);
  1899. Position = UDim2.new(0.025,0,0,60);
  1900. Parent = windo.Content;
  1901. })
  1902. local icon3 = createIcon('rbxassetid://951352122', {
  1903. Size = UDim2.new(0, 0, 1, 0);
  1904. ZIndex = 8;
  1905. Parent = blurButton;
  1906. })
  1907. icon3.Size = UDim2.new(0,icon3.AbsoluteSize.Y,0,icon3.AbsoluteSize.Y)
  1908. blurButton.MouseButton1Down:connect(function()
  1909. local window = Window.new({width = 165, height = 100, name='Set Blur', icon='rbxassetid://951352122'})
  1910. local blurLabel = create('TextLabel',{
  1911. ZIndex = 8;
  1912. Text = "Blur Level";
  1913. TextScaled = true;
  1914. BackgroundColor3 = Color3.new(1,1,1);
  1915. BackgroundTransparency = 1;
  1916. TextColor3 = Color3.new(1,1,1);
  1917. Size = UDim2.new(0,60,0,60);
  1918. Position = UDim2.new(0.45,-60,0.05,0);
  1919. Parent = window.Content;
  1920. })
  1921. local blurBox = create('TextBox',{
  1922. ZIndex = 8;
  1923. Text = tostring(settings.blurLevel);
  1924. ClearTextOnFocus = false;
  1925. TextSize = 28;
  1926. MultiLine = false;
  1927. BackgroundColor3 = Color3.new(1,1,1);
  1928. BackgroundTransparency = .9;
  1929. TextColor3 = Color3.new(1,1,1);
  1930. Size = UDim2.new(0,60,0,60);
  1931. Position = UDim2.new(0.55,0,0.05,0);
  1932. Parent = window.Content;
  1933. })
  1934. blurBox.Changed:connect(function()
  1935. blurBox.Text = blurBox.Text:gsub("%D","")
  1936. end)
  1937. blurBox.FocusLost:connect(function(enter)
  1938. if enter then
  1939. settings.blurLevel = tonumber(blurBox.Text)
  1940. blurLevel = enabled and tonumber(blurBox.Text) or blurLevel
  1941. end
  1942. end)
  1943. end)
  1944. keyboardButton.MouseButton1Down:connect(function()
  1945. local window = Window.new({width = 165, height = 100, name='Set Key', icon='rbxassetid://950538977'})
  1946. local changeButton = create('TextButton',{
  1947. ZIndex = 8;
  1948. Text = "Set Keybind";
  1949. Size = UDim2.new(.45,0,.6,0);
  1950. BackgroundColor3 = Color3.new(1,1,1);
  1951. BackgroundTransparency = .9;
  1952. TextColor3 = Color3.new(1,1,1);
  1953. Position = UDim2.new(0.05,0,0.15,0);
  1954. Font = Enum.Font.SourceSansLight;
  1955. TextScaled = true;
  1956. Parent = window.Content;
  1957. })
  1958. local currentButton = create('TextLabel',{
  1959. ZIndex = 8;
  1960. Text = tostring(binds[1][1]):sub(14);
  1961. Size = UDim2.new(.45,0,.6,0);
  1962. BackgroundTransparency = 1;
  1963. TextColor3 = Color3.new(1,1,1);
  1964. Position = UDim2.new(0.5,0,0.15,0);
  1965. Font = Enum.Font.SourceSansLight;
  1966. TextScaled = true;
  1967. Parent = window.Content;
  1968. })
  1969. local function b()
  1970. toggleable = false
  1971. currentButton.Text = "Press A Key"
  1972. local a = services.input.InputBegan:wait()
  1973. if a.UserInputType == Enum.UserInputType.Keyboard then
  1974. binds[1][1] = a.KeyCode
  1975. settings.toggleKey = binds[1][1]
  1976. currentButton.Text = tostring(binds[1][1]):sub(14);
  1977. wait()
  1978. toggleable = true;
  1979. else
  1980. b()
  1981. end
  1982. end
  1983. changeButton.MouseButton1Down:connect(b)
  1984. end)
  1985. colorButton.MouseButton1Down:connect(function()
  1986. local window = Window.new({width = 250, height = 300, name='Color Mixer', icon='rbxassetid://904628594',closed = function(this)
  1987. local bufferText = create('TextLabel',{
  1988. Position = UDim2.new(0.025,0,0.125,0);
  1989. Size = UDim2.new(.95,0,.075,0);
  1990. TextScaled = true;
  1991. Font = Enum.Font.SourceSansLight;
  1992. TextColor3 = Color3.new(1,1,1);
  1993. BackgroundTransparency = .9;
  1994. BorderSizePixel = 0;
  1995. BackgroundColor3 = Color3.new(1,1,1);
  1996. Text = "Closing Buffer Activated";
  1997. ZIndex = 8;
  1998. Parent = this;
  1999. })
  2000. for i,v in pairs(this.Content:children())do
  2001. v.Visible = false;
  2002. wait()
  2003. v:Destroy()
  2004. end
  2005. end})
  2006. local overallColor
  2007. local unmixedColor
  2008. local colorMixerBar = create('Frame',{
  2009. Size = UDim2.new(0,24,0,180);
  2010. Position = UDim2.new(.95,-24,0.05,0);
  2011. BackgroundTransparency = 1;
  2012. Active = true;
  2013. ZIndex = 8;
  2014. Parent = window.Content;
  2015. })
  2016. local function returnCenterPosition(g)
  2017. return {x=g.AbsolutePosition.X + (g.AbsoluteSize.X/2),y=g.AbsolutePosition.Y + (g.AbsoluteSize.Y/2)}
  2018. end
  2019. for hue = 0,180,1 do
  2020. local c = create('Frame',{
  2021. Position = UDim2.new(0,0,0,hue);
  2022. Size = UDim2.new(1,0,0,1);
  2023. BackgroundColor3 = Color3.fromHSV(hue/180,1,1);
  2024. ZIndex = 8;
  2025. BorderSizePixel = 0;
  2026. Name = "Color";
  2027. Parent = colorMixerBar;
  2028. })
  2029. end
  2030. local colorHue = Color3.toHSV(settings.mainColor)
  2031. local colorBarDrag = create('Frame',{
  2032. Name = "ColorDrag";
  2033. BackgroundColor3 = Color3.new(1,1,1);
  2034. Size = UDim2.new(1,4,0,8);
  2035. Position = UDim2.new(0,-2,0,(180*colorHue)-2);
  2036. Active = true;
  2037. BorderSizePixel = 0;
  2038. ZIndex = 8;
  2039. Draggable = true;
  2040. Parent = colorMixerBar;
  2041. },true)
  2042. local colorBarDragColor = create('Frame',{
  2043. Name = "DragColor";
  2044. Size = UDim2.new(1,-4,0,4);
  2045. Position = UDim2.new(0,2,0,2);
  2046. BorderSizePixel = 0;
  2047. Active = true;
  2048. ZIndex = 8;
  2049. Parent = colorBarDrag
  2050. },true)
  2051. colorBarDragColor.BackgroundColor3 = Color3.fromHSV(colorHue,1,1)
  2052. colorBarDrag.Changed:connect(function()
  2053. if colorBarDrag.AbsolutePosition.X ~= colorMixerBar.AbsolutePosition.X-2 then
  2054. colorBarDrag.Position = UDim2.new(UDim.new(0,-2),colorBarDrag.Position.Y)
  2055. end
  2056. if colorBarDrag.AbsolutePosition.Y > (colorMixerBar.AbsolutePosition.Y + colorMixerBar.AbsoluteSize.Y)-4 then
  2057. colorBarDrag.Position = UDim2.new(colorBarDrag.Position.X,UDim.new(0,colorMixerBar.AbsoluteSize.Y-4))
  2058. elseif colorBarDrag.AbsolutePosition.Y < colorMixerBar.AbsolutePosition.Y-4 then
  2059. colorBarDrag.Position = UDim2.new(colorBarDrag.Position.X,UDim.new(0,-4))
  2060. end
  2061. coroutine.wrap(function()
  2062. for i,v in pairs(colorMixerBar:children())do
  2063. if v.Name == "Color"then
  2064. if v.AbsolutePosition.Y == returnCenterPosition(colorBarDrag).y then
  2065. colorBarDragColor.BackgroundColor3 = v.BackgroundColor3
  2066. end
  2067. end
  2068. end
  2069. end)()
  2070. end)
  2071. local colorEvent
  2072. colorMixerBar.InputBegan:connect(function(input)
  2073. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  2074. local M = services.mouse;
  2075. colorBarDrag.Position = UDim2.new(UDim.new(0,-2),UDim.new(0,M.Y-colorMixerBar.AbsolutePosition.Y))
  2076. volumeBarEvent = M.Move:connect(function()
  2077. colorBarDrag.Position = UDim2.new(UDim.new(0,-2),UDim.new(0,M.Y-colorMixerBar.AbsolutePosition.Y))
  2078. end)
  2079. end
  2080. end)
  2081. colorMixerBar.InputEnded:connect(function(input)
  2082. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  2083. if volumeBarEvent then
  2084. volumeBarEvent:disconnect();
  2085. end
  2086. end
  2087. end)
  2088. local hue = Color3.toHSV(colorBarDragColor.BackgroundColor3)
  2089. colorBarDragColor.Changed:connect(function(prop)
  2090. if prop == "BackgroundColor3"then
  2091. hue = Color3.toHSV(colorBarDragColor.BackgroundColor3)
  2092. end
  2093. end)
  2094. local hsvHolder = create('Frame',{
  2095. Position = UDim2.new(0.05,0,0.05,0);
  2096. Size = UDim2.new(0,183,0,183);
  2097. BackgroundTransparency = 1;
  2098. Active = true;
  2099. ZIndex = 8;
  2100. Parent = window.Content;
  2101. })
  2102. local hsvTable = {}
  2103. for sat = 0,45,1 do
  2104. for light = 0,45,1 do
  2105. local c = create('Frame',{
  2106. Position = UDim2.new(0,sat*4,0,light*4);
  2107. Size = UDim2.new(0,4,0,4);
  2108. BackgroundColor3 = Color3.fromHSV(hue,sat/45,light/45);
  2109. ZIndex = 8;
  2110. BorderSizePixel = 0;
  2111. Parent = hsvHolder;
  2112. })
  2113. table.insert(hsvTable,c)
  2114. coroutine.wrap(function()
  2115. services.RunService.RenderStepped:connect(function()
  2116. if(c.BackgroundColor3 ~= Color3.fromHSV(hue,sat/45,light/45))then
  2117. c.BackgroundColor3 = Color3.fromHSV(hue,sat/45,light/45);
  2118. end
  2119. end)
  2120. end)()
  2121. end
  2122. end
  2123. local h,s,l = Color3.toHSV(settings.mainColor)
  2124. local outerDragA = create('Frame',{
  2125. Size = UDim2.new(0,15,0,3);
  2126. Position = UDim2.new(0,((45*s)*4)-7,0,((45*l)*4)-1);
  2127. ZIndex = 8;
  2128. BorderSizePixel = 0;
  2129. BackgroundColor3 = Color3.new(1,1,1);
  2130. Parent = hsvHolder;
  2131. })
  2132. local outerDragB = create('Frame',{
  2133. Size = UDim2.new(0,3,0,15);
  2134. Position = outerDragA.Position + UDim2.new(0,6,0,-6);
  2135. ZIndex = 8;
  2136. BorderSizePixel = 0;
  2137. BackgroundColor3 = Color3.new(1,1,1);
  2138. Parent = hsvHolder;
  2139. })
  2140. local innerDragA = create('Frame',{
  2141. Size = UDim2.new(0,13,0,1);
  2142. Position = outerDragA.Position + UDim2.new(0,1,0,1);
  2143. ZIndex = 8;
  2144. BorderSizePixel = 0;
  2145. BackgroundColor3 = settings.mainColor;
  2146. Parent = hsvHolder;
  2147. })
  2148. local innerDragB = create('Frame',{
  2149. Size = UDim2.new(0,1,0,13);
  2150. Position = outerDragB.Position + UDim2.new(0,1,0,1);
  2151. ZIndex = 8;
  2152. BorderSizePixel = 0;
  2153. BackgroundColor3 = settings.mainColor;
  2154. Parent = hsvHolder;
  2155. })
  2156. local indicator = create('Frame',{
  2157. Size = UDim2.new(0,1,0,1);
  2158. Position = UDim2.new(0,7,0,1);
  2159. ZIndex = 8;
  2160. BackgroundTransparency = 1;
  2161. Parent = outerDragA;
  2162. })
  2163. outerDragA.Changed:connect(function()
  2164. outerDragB.Position = outerDragA.Position + UDim2.new(0,6,0,-6);
  2165. innerDragA.Position = outerDragA.Position + UDim2.new(0,1,0,1);
  2166. innerDragB.Position = outerDragB.Position + UDim2.new(0,1,0,1);
  2167. end)
  2168. local function collisionDetect(gui1, gui2)
  2169. local g1p, g1s = gui1.AbsolutePosition, gui1.AbsoluteSize;
  2170. local g2p, g2s = gui2.AbsolutePosition, gui2.AbsoluteSize;
  2171. return ((g1p.x < g2p.x + g2s.x and g1p.x + g1s.x > g2p.x) and (g1p.y < g2p.y + g2s.y and g1p.y + g1s.y > g2p.y));
  2172. end;
  2173. local hsvEvent;
  2174. local function hsvFunction()
  2175. local M = services.mouse;
  2176. local X,Y = 0,0
  2177. if M.X < hsvHolder.AbsolutePosition.X then
  2178. X = 0
  2179. elseif M.X > hsvHolder.AbsolutePosition.X + hsvHolder.AbsoluteSize.X then
  2180. X = hsvHolder.AbsoluteSize.X
  2181. else
  2182. X = M.X - hsvHolder.AbsolutePosition.X
  2183. end
  2184. if M.Y < hsvHolder.AbsolutePosition.Y then
  2185. Y = 0
  2186. elseif M.Y > hsvHolder.AbsolutePosition.Y + hsvHolder.AbsoluteSize.Y then
  2187. Y = hsvHolder.AbsoluteSize.Y
  2188. else
  2189. Y = M.Y - hsvHolder.AbsolutePosition.Y
  2190. end
  2191. X,Y = X-7,Y -1
  2192. outerDragA.Position = UDim2.new(0,X,0,Y)
  2193. end
  2194. hsvHolder.InputBegan:connect(function(input)
  2195. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  2196. local M = services.mouse;
  2197. hsvFunction()
  2198. hsvEvent = M.Move:connect(function()
  2199. hsvFunction()
  2200. end)
  2201. end
  2202. end)
  2203. hsvHolder.InputEnded:connect(function(input)
  2204. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  2205. if hsvEvent then
  2206. hsvEvent:disconnect();
  2207. end
  2208. end
  2209. end)
  2210. local function createNumberOnlyBox(t)
  2211. local box = create("TextBox",{
  2212. MultiLine = false;
  2213. ClearTextOnFocus = false;
  2214. Font = Enum.Font.SourceSansLight;
  2215. BackgroundTransparency = 1;
  2216. ZIndex = 8;
  2217. TextColor3 = Color3.new(1,1,1);
  2218. Text = "";
  2219. })
  2220. for i,v in pairs(t)do
  2221. box[i]=v
  2222. end
  2223. box.Changed:connect(function()
  2224. box.Text = box.Text:gsub("%D","")
  2225. end)
  2226. return box
  2227. end
  2228. local rLabel = create('TextLabel',{
  2229. Font = Enum.Font.SourceSansLight;
  2230. ZIndex = 8;
  2231. Name = "rLabel";
  2232. Text = "R";
  2233. TextColor3 = Color3.new(1,1,1);
  2234. TextSize = 24;
  2235. Size = UDim2.new(.1,0,.1,0);
  2236. Position = UDim2.new(.15,0,.75,0);
  2237. BackgroundTransparency = 1;
  2238. Parent = window.Content
  2239. })
  2240. local rBox = createNumberOnlyBox({
  2241. Name = "rBox";
  2242. TextSize = 26;
  2243. Text = math.floor(settings.mainColor.r*255);
  2244. Position = UDim2.new(.15,0,0.85,0);
  2245. Size = UDim2.new(0.1,0,0.1,0);
  2246. Parent = window.Content;
  2247. })
  2248. local gLabel = create('TextLabel',{
  2249. Font = Enum.Font.SourceSansLight;
  2250. ZIndex = 8;
  2251. Name = "gLabel";
  2252. Text = "G";
  2253. TextColor3 = Color3.new(1,1,1);
  2254. TextSize = 20;
  2255. Size = UDim2.new(.1,0,.1,0);
  2256. Position = UDim2.new(.35,0,.75,0);
  2257. BackgroundTransparency = 1;
  2258. Parent = window.Content
  2259. })
  2260. local gBox = createNumberOnlyBox({
  2261. Name = "gBox";
  2262. TextSize = 26;
  2263. Text = math.floor(settings.mainColor.g*255);
  2264. Position = UDim2.new(.35,0,0.85,0);
  2265. Size = UDim2.new(0.1,0,0.1,0);
  2266. Parent = window.Content;
  2267. })
  2268. local bLabel = create('TextLabel',{
  2269. Font = Enum.Font.SourceSansLight;
  2270. ZIndex = 8;
  2271. Name = "bLabel";
  2272. Text = "B";
  2273. TextColor3 = Color3.new(1,1,1);
  2274. TextSize = 20;
  2275. Size = UDim2.new(.1,0,.1,0);
  2276. Position = UDim2.new(.55,0,.75,0);
  2277. BackgroundTransparency = 1;
  2278. Parent = window.Content
  2279. })
  2280. local bBox = createNumberOnlyBox({
  2281. Name = "bBox";
  2282. TextSize = 26;
  2283. Text = math.floor(settings.mainColor.b*255);
  2284. Position = UDim2.new(.55,0,0.85,0);
  2285. Size = UDim2.new(0.1,0,0.1,0);
  2286. Parent = window.Content;
  2287. })
  2288. local function updateColorGuis()
  2289. local h,s,l = Color3.toHSV(settings.mainColor)
  2290. rBox.Text = math.floor(settings.mainColor.r*255);
  2291. gBox.Text = math.floor(settings.mainColor.g*255);
  2292. bBox.Text = math.floor(settings.mainColor.b*255);
  2293. innerDragA.BackgroundColor3 = settings.mainColor;
  2294. innerDragB.BackgroundColor3 = settings.mainColor;
  2295. end
  2296. local function FocusLost()
  2297. settings.mainColor = Color3.fromRGB(tonumber(rBox.Text),tonumber(gBox.Text),tonumber(bBox.Text))
  2298. local h,s,l = Color3.toHSV(settings.mainColor)
  2299. updateColorGuis()
  2300. local colorHue = Color3.toHSV(settings.mainColor)
  2301. colorBarDrag.Position = UDim2.new(0,-2,0,(180*colorHue)-2);
  2302. outerDragA.Position = UDim2.new(0,((45*s)*4)-7,0,((45*l)*4)-1)
  2303. end
  2304. rBox.FocusLost:connect(function(enter)
  2305. if enter then
  2306. FocusLost()
  2307. end
  2308. end)
  2309. gBox.FocusLost:connect(function(enter)
  2310. if enter then
  2311. FocusLost()
  2312. end
  2313. end)
  2314. bBox.FocusLost:connect(function(enter)
  2315. if enter then
  2316. FocusLost()
  2317. end
  2318. end)
  2319. local cEvent
  2320. indicator.Changed:connect(function(prop)
  2321. if prop == "AbsolutePosition"then
  2322. if cEvent then cEvent:disconnect() end
  2323. coroutine.wrap(function()
  2324. for i,v in pairs(hsvTable)do
  2325. if collisionDetect(indicator,v)then
  2326. settings.mainColor = v.BackgroundColor3
  2327. updateColorGuis()
  2328. cEvent = v.Changed:connect(function(prop)
  2329. if prop == "BackgroundColor3"then
  2330. settings.mainColor = v.BackgroundColor3
  2331. updateColorGuis()
  2332. end
  2333. end)
  2334. end
  2335. end
  2336. end)()
  2337. end
  2338. end)
  2339. end)
  2340. end
  2341. end)
  2342. local function alternateColors(object,property,oldColor3,newColor3,i)
  2343. coroutine.wrap(function()
  2344. for i = 0,1,i do
  2345. object[property] = oldColor3:lerp(newColor3,i)
  2346. game:service'RunService'.RenderStepped:wait()
  2347. end
  2348. object[property] = newColor3
  2349. end)()
  2350. end
  2351. local Colorables = {}
  2352. local function addRecolorables(inst)
  2353. if inst.BackgroundColor3 == colorCheck then
  2354. table.insert(Colorables,inst)
  2355. end
  2356. inst.ChildAdded:connect(function(i)
  2357. if i.BackgroundColor3 == colorCheck then
  2358. table.insert(Colorables,i)
  2359. end
  2360. end)
  2361. end
  2362. Children(gui,function(inst)
  2363. addRecolorables(inst)
  2364. end)
  2365. gui.ChildAdded:connect(function(i)
  2366. Children(i,function(inst)
  2367. addRecolorables(inst)
  2368. end)
  2369. addRecolorables(i)
  2370. end)
  2371. Children(pingui,function(inst)
  2372. addRecolorables(inst)
  2373. end)
  2374. pingui.ChildAdded:connect(function(i)
  2375. Children(i,function(inst)
  2376. addRecolorables(inst)
  2377. end)
  2378. addRecolorables(i)
  2379. end)
  2380. game:service'RunService'.Stepped:connect(function()
  2381. if colorCheck ~= settings.mainColor then
  2382. coroutine.wrap(function()
  2383. for i,v in pairs(Colorables)do
  2384. v.BackgroundColor3 = settings.mainColor
  2385. end
  2386. colorCheck = settings.mainColor
  2387. end)()
  2388. end
  2389. end)
  2390. services.Players.PlayerRemoving:connect(function(player)
  2391. setCookie('BackgroundColor',tostring(math.floor(settings.mainColor.r*255)..", "..math.floor(settings.mainColor.g*255)..", "..math.floor(settings.mainColor.b*255)));
  2392. setCookie('KeyBind',tostring(settings.toggleKey):sub(14))
  2393. setCookie('BlurLevel',tostring(settings.blurLevel))
  2394. end)
  2395. local Intro = createIcon('rbxassetid://1039272774',{
  2396. Size = UDim2.new(0,150,0,150);
  2397. Position = UDim2.new(.5,-50,0,-150);
  2398. Visible = true;
  2399. Parent = gui;
  2400. })
  2401. local IntroText2 = create('TextLabel',{
  2402. Transparency = 1;
  2403. Text = "Nebula Hub V2 - Leaked";
  2404. TextSize = 42;
  2405. TextColor3 = Color3.new(1,1,1);
  2406. Font = Enum.Font.SourceSansLight;
  2407. Position = UDim2.new(0,0,0,-42);
  2408. Size = UDim2.new(1,0,0,42);
  2409. Parent = Intro;
  2410. })
  2411. local IntroText = create('TextLabel',{
  2412. Transparency = 1;
  2413. Text = "LeviTheOtaku";
  2414. TextSize = 32;
  2415. TextColor3 = Color3.new(1,1,1);
  2416. Font = Enum.Font.SourceSansLight;
  2417. Position = UDim2.new(0,0,1,0);
  2418. Size = UDim2.new(1,0,0,30);
  2419. Parent = Intro;
  2420. })
  2421. repeat wait()until Intro.IsLoaded
  2422. Intro:TweenPosition(UDim2.new(.5,-75,.5,-75),Enum.EasingDirection.Out,Enum.EasingStyle.Back,.5,true)
  2423. wait(.75)
  2424. tweenRecursiveTransparency(IntroText2,0,-.05);
  2425. tweenRecursiveTransparency(IntroText,0,-.05);
  2426. wait(5)
  2427. Intro:TweenPosition(UDim2.new(.5,-75,1,0),Enum.EasingDirection.In,Enum.EasingStyle.Quint,.5,true)
  2428. tweenRecursiveTransparency(Intro,1,.05)
  2429. tweenRecursiveTransparency(IntroText,1,.05)
  2430. tweenRecursiveTransparency(IntroText2,1,.05)
  2431. repeat wait()until Intro.ImageTransparency == 1
  2432. Intro:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement