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