-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTDS DJ Music Gui.lua
156 lines (153 loc) · 5.03 KB
/
TDS DJ Music Gui.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
-- DJ Music Gui, Made by MintTea#9260
-- Defining functions and variables
local DJ
local function getDJ()
if not DJ then
for i,v in pairs(workspace.Towers:GetChildren()) do
local Repl = v:FindFirstChild("Replicator")
local Owner = v:FindFirstChild("Owner")
if Repl and Repl:GetAttribute("Type") == "DJ Booth" and Owner and Owner.Value == game.Players.LocalPlayer.UserId then
DJ = v
end
end
end
end
local function Play(id)
getDJ()
if not DJ then return end
local response = game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer("Troops", "Execute", {Data = {[1] = id}, Name = "Music", Tower = DJ})
if not response then
game.StarterGui:SetCore("SendNotification", {
Title = "DJ Music Gui",
Text = "You don't have the DJ Music Gamepass! The Audio will only play for you...";
Duration = 3;
})
local hrp = DJ:WaitForChild("HumanoidRootPart")
if hrp then
hrp:FindFirstChild("Music").SoundId = "rbxassetid://"..tostring(id)
end
end
end
-- Initialization
local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/TacoCatBackWardsIsTacoCat/scripts/main/TwinkLib.lua", true))() -- A modification of twink library
local UI = library.Load("TDS DJ Music Gui [Must have custom music gamepass]")
-- Pages
local TDSAudios = UI.AddPage("TDS Originals")
local Popular = UI.AddPage("Popular Music")
local Meme = UI.AddPage("Meme Sounds")
local Roblox = UI.AddPage("Roblox Music")
local MonsterCat = UI.AddPage("MonsterCat")
local Custom = UI.AddPage("Settings")
-- Audio Ids
-- To add an Id, append ["Name"] = id to the dictionary below!!
local TDSIds = {
['Plushie DJ'] = 11580212035,
['Neko DJ'] = 5229282080,
['Default DJ'] = 3780415070,
['Neon Rave DJ'] = 4459639238,
['Smug Emote'] = 9166993097,
['ManRobotics Emote'] = 9166993858,
['Transcendence'] = 9166996324,
['Solar Lobby Theme'] = 7653200934,
['Turret Fire (troll)'] = 4743347100,
['Triumph!'] = 8013047518,
['Ghost DJ'] = 5994058479
}
local PopularIds = {
['Crab Rave'] = 5410086218,
["It's raining tacos"] = 142376088,
['Chicken Nugget DreamLand'] = 9245561450,
['TacoBoy 3000'] = 9245552700,
['Chair De Lune'] = 1838457617,
['Jingle Bells'] = 9046954223,
['Uptown'] = 1845554017,
['Backrooms'] = 7910582982,
['8 bit kitty - Underscore'] = 9039445224,
['Phantom at the Opera'] = 1843463175
}
local MemeIds = {
['Rickrolled'] = 7363412529,
['Amogus'] = 6425216149,
['COCA COLA ESPUMA'] = 5693336619,
['WHOS THAT POKEMON'] = 130767090,
['Everybody do the flop'] = 130778839,
['Sad Violin'] = 135308045,
['Windows XP shutdown'] = 784747919,
['FEED ME'] = 130766856,
['I have fallen and I cant get up'] = 130768088,
['WHAT ARE YOU DOING IN MY SWAMP'] = 130767645,
['Minions - BEDOBEDOBEDO'] = 130844390,
['THIS IS SPARTA'] = 130781067,
['THATS MY PURSE'] = 130760834,
['Ohhhh my gawd'] = 7632147717,
['Im Batman'] = 130769318,
['Minecraft death sound'] = 2607544190,
["John's laugh"] = 130759239,
['ITS FREE'] = 130771265,
['I can smell you'] = 130767611,
['Mhmm Chezburger'] = 1495409522,
['Can you hear me? [LOUD]'] = 4769589095,
['HOTEL HOTEL HOTEL'] = 2752862458,
['The rock eyebrow meme'] = 8987546731
}
local RobloxIds = {
['Time Goes By'] = 9047104919,
['Friends'] = 9039768700,
['When you coming back'] = 1837871067,
['Musical Box (A)'] = 1840493961,
['Robotic Dance C'] = 1847853099,
['Night Vision'] = 1837849285,
['Solar Flares'] = 1836842889,
['Stepping up'] = 1837324424,
['Light Dreamer'] = 9047107124,
['Lofi Dreams Hip Hop'] = 9047050075
}
local MonsterCatIds = {
['Shiawase'] = 5409360995,
['Destroy Me'] = 7023617400,
['Tokyo Machine - Play'] = 5410085763,
['Tokyo Machine - Epic'] = 5410085694,
['Protostar - New Horizons'] = 7028518546,
['Sapporo'] = 7028877251
}
-- Main Code
for i,v in next, TDSIds do
TDSAudios.AddButton(i, function()
Play(v)
end)
end
for i,v in next, PopularIds do
Popular.AddButton(i, function()
Play(v)
end)
end
for i,v in next, MemeIds do
Meme.AddButton(i, function()
Play(v)
end)
end
for i,v in next, RobloxIds do
Roblox.AddButton(i, function()
Play(v)
end)
end
for i,v in pairs(MonsterCatIds) do
MonsterCat.AddButton(i, function()
Play(v)
end)
end
Custom.AddTextBox("Audio Id", {}, function(v)
local id = tonumber(v)
if id then
Play(id)
end
end)
Custom.AddLabel("Client Sided Settings")
Custom.AddSlider("DJ Volume", {Min=0, Max=10, Def=1}, function(value)
getDJ()
if not DJ then return end
local hrp = DJ:WaitForChild("HumanoidRootPart")
if hrp then
hrp:FindFirstChild("Music").Volume = value
end
end)