Advertisement
Adog1656

Untitled

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