Guest User

Untitled

a guest
Dec 8th, 2019
78
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. boxpath = game.Workspace
  2. hasboombox = false
  3. invisplaying = false
  4. audioid = 123456789
  5.  
  6.  
  7. local creditsdab = Instance.new("ScreenGui")
  8. local Frame = Instance.new("Frame")
  9. local aidez = Instance.new("ImageLabel")
  10. local names = Instance.new("TextLabel")
  11. local scriptmadeby = Instance.new("TextLabel")
  12. local scriptmadeby_2 = Instance.new("TextLabel")
  13. local x = Instance.new("TextButton")
  14.  
  15.  
  16. creditsdab.Name = "creditsdab"
  17. creditsdab.Parent = game.CoreGui
  18.  
  19. Frame.Parent = creditsdab
  20. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  21. Frame.Position = UDim2.new(0.399554282, 0, 0.241054624, 0)
  22. Frame.Size = UDim2.new(0, 274, 0, 274)
  23.  
  24. aidez.Name = "aidez"
  25. aidez.Parent = Frame
  26. aidez.BackgroundColor3 = Color3.new(1, 1, 1)
  27. aidez.BorderColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  28. aidez.Position = UDim2.new(-0.000740621239, 0, 0.000178694725, 0)
  29. aidez.Size = UDim2.new(0, 274, 0, 274)
  30. aidez.Image = "rbxassetid://0&hash=9c3f6c00707d5ebde710fd2f3efd2b5e"
  31.  
  32. names.Name = "names"
  33. names.Parent = Frame
  34. names.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  35. names.BackgroundTransparency = 0.30000001192093
  36. names.BorderColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  37. names.Position = UDim2.new(0, 0, 0.897810221, 0)
  38. names.Size = UDim2.new(0, 274, 0, 28)
  39. names.Font = Enum.Font.SourceSans
  40. names.Text = "Vortexturize | aidez moi#4192 | Aidez "
  41. names.TextColor3 = Color3.new(1, 1, 1)
  42. names.TextSize = 14
  43.  
  44. scriptmadeby.Name = "scriptmadeby"
  45. scriptmadeby.Parent = Frame
  46. scriptmadeby.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  47. scriptmadeby.BackgroundTransparency = 0.30000001192093
  48. scriptmadeby.BorderColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  49. scriptmadeby.Position = UDim2.new(0, 0, -0.102189779, 0)
  50. scriptmadeby.Size = UDim2.new(0, 274, 0, 28)
  51. scriptmadeby.Font = Enum.Font.SourceSans
  52. scriptmadeby.Text = "Script made by"
  53. scriptmadeby.TextColor3 = Color3.new(1, 1, 1)
  54. scriptmadeby.TextSize = 14
  55.  
  56. scriptmadeby_2.Name = "scriptmadeby"
  57. scriptmadeby_2.Parent = Frame
  58. scriptmadeby_2.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  59. scriptmadeby_2.BackgroundTransparency = 0.30000001192093
  60. scriptmadeby_2.BorderColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  61. scriptmadeby_2.Position = UDim2.new(0, 0, -0.164233565, 0)
  62. scriptmadeby_2.Size = UDim2.new(0, 274, 0, 17)
  63. scriptmadeby_2.Font = Enum.Font.SourceSans
  64. scriptmadeby_2.Text = "stay in school and don't do drugs"
  65. scriptmadeby_2.TextColor3 = Color3.new(1, 1, 1)
  66. scriptmadeby_2.TextScaled = true
  67. scriptmadeby_2.TextSize = 14
  68. scriptmadeby_2.TextWrapped = true
  69.  
  70. x.Name = "x"
  71. x.Parent = creditsdab
  72. x.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  73. x.BackgroundTransparency = 0.30000001192093
  74. x.BorderColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  75. x.Position = UDim2.new(0.600445747, 0, 0.188323915, 0)
  76. x.Size = UDim2.new(0, 28, 0, 28)
  77. x.Font = Enum.Font.SourceSansSemibold
  78. x.Text = "X"
  79. x.TextColor3 = Color3.new(1, 1, 1)
  80. x.TextSize = 30
  81.  
  82. x.MouseButton1Click:connect(function()
  83. creditsdab:Destroy()
  84. end)
  85.  
  86.  
  87. function findplayer(namey)
  88. local name = string.lower(namey)
  89. local player = nil
  90.  
  91. names = game.Players:GetChildren()
  92.  
  93. for i,v in pairs(names) do
  94. strlower = string.lower(v.Name)
  95. sub = string.sub(strlower,1,#name)
  96. if name == sub then
  97. player = v
  98. if player.Name ~= game.Players.LocalPlayer.Name then
  99.  
  100. end
  101. end
  102. end
  103. if player then
  104. return player.Name
  105. else
  106. return false
  107. end
  108. end
  109.  
  110. function toversionid(id)
  111. local dab = game:HttpGet("https://www.roblox.com/studio/plugins/info?assetId="..id)
  112. if string.find(dab, 'value="') then
  113. local epic = string.find(dab, 'value="')
  114. local almost = string.sub(dab, epic + 7, epic + 18)
  115. local filter1 = string.gsub(almost, " ", "")
  116. local filter2 = string.gsub(filter1, "/", "")
  117. local filter3 = string.gsub(filter2, ">", "")
  118. local filter4 = string.gsub(filter3, '"', "")
  119. local versionid = string.gsub(filter4, "<", "")
  120. return versionid
  121. end
  122. end
  123.  
  124.  
  125.  
  126. function percentencode(id)
  127. local third = string.gsub(tostring(id), "3", "%%33")
  128. local first = string.gsub(third, "1", "%%31")
  129. local second = string.gsub(first, "2", "%%32")
  130. local fourth = string.gsub(second, "4", "%%34")
  131. local fifth = string.gsub(fourth, "5", "%%35")
  132. local sixth = string.gsub(fifth, "6", "%%36")
  133. local seventh = string.gsub(sixth, "7", "%%37")
  134. local eighth = string.gsub(seventh, "8", "%%38")
  135. local ninth = string.gsub(eighth, "9", "%%39")
  136. local PercentEncodedId = ninth
  137. return PercentEncodedId
  138. end
  139.  
  140. StartMessage = "Encrypted_By_Jam#4465"
  141.  
  142. function toplayable(id)
  143. local playableid = StartMessage..".hash_%61%6c%73%6f%5f%79%6f%75%5f%74%68%69%6e%6b%5f%64%65%63%72%79%70%74%69%6e%67%5f%74%68%69%73%5f%69%73%5f%67%6f%6e%6e%61%5f%68%65%6c%70%3f%5f%46%55%43%4b%5f%55%50%5f%4e%49%47%47%41%21%5f%59%6f%75%5f%77%72%6f%6e%67%5f%4c%4f%4c%21%5f%43%59%41%5f%63%75%6e%74%5f%61%73%73%5f%6c%61%74%65%72%5f%73%69%6e%63%65%72%65%6c%79%5f%42%6f%62%5f%52%6f%73%73%5f&%76%65%72%73%69%6f%6e%69%64="..tostring(id)
  144. return playableid
  145. end
  146.  
  147.  
  148. function fullyconvert(id)
  149. local convert = toversionid(id)
  150. local encoded = percentencode(convert)
  151. local playable = toplayable(encoded)
  152. return playable
  153. end
  154.  
  155. game.Players.LocalPlayer.Chatted:Connect(function(msg, plr)
  156. local lower = string.lower(msg)
  157. local len = string.len(lower)
  158. if string.find(lower,":changemessage ") then
  159. local newmessage = string.gsub(lower,":changemessage ","")
  160. StartMessage = string.gsub(newmessage, " ", "_")
  161. end
  162. if string.find(lower,"/e changemessage ") then
  163. local newmessage = string.gsub(lower,"/e changemessage ","")
  164. StartMessage = string.gsub(newmessage, " ", "_")
  165. end
  166. if string.find(lower,"/e :changemessage ") then
  167. local newmessage = string.gsub(lower,"/e :changemessage ","")
  168. StartMessage = string.gsub(newmessage, " ", "_")
  169. end
  170. end)
  171.  
  172.  
  173. if game.Players.LocalPlayer.Character:FindFirstChild("BoomBox") then
  174. boxpath = game.Players.LocalPlayer.Character:FindFirstChild("BoomBox")
  175. hasboombox = true
  176. elseif game.Players.LocalPlayer.Backpack:FindFirstChild("BoomBox") then
  177. boxpath = game.Players.LocalPlayer.Backpack:FindFirstChild("BoomBox")
  178. hasboombox = true
  179. end
  180. wait()
  181.  
  182. if hasboombox == true and invisplaying == false then
  183. boxpath.Activated:Connect(function()
  184. if invisplaying == false then
  185. game.Players.LocalPlayer.PlayerGui:WaitForChild("ChooseSongGui")
  186. game.Players.LocalPlayer.PlayerGui.ChooseSongGui:WaitForChild("Frame")
  187. local button = Instance.new("TextButton")
  188. button.Name = "InvisPlay"
  189. button.Style = "RobloxButton"
  190. button.Size = UDim2.new(0.75, 0, 0.2, 0)
  191. button.Position = UDim2.new(0.125, 0, 1.1, 0)
  192. button.TextColor3 = Color3.new(1, 1, 1)
  193. button.TextStrokeTransparency = 0
  194. button.Text = "Invisible Play"
  195. button.TextScaled = true
  196. button.Parent = game.Players.LocalPlayer.PlayerGui.ChooseSongGui:WaitForChild("Frame")
  197. button.MouseEnter:Connect(function()
  198. if game.Players.LocalPlayer.PlayerGui.ChooseSongGui.Frame:FindFirstChild("TextBox") then
  199. audioid = game.Players.LocalPlayer.PlayerGui.ChooseSongGui.Frame:FindFirstChild("TextBox").Text
  200. end
  201. end)
  202. button.MouseMoved:Connect(function()
  203. if game.Players.LocalPlayer.PlayerGui.ChooseSongGui.Frame:FindFirstChild("TextBox") then
  204. audioid = game.Players.LocalPlayer.PlayerGui.ChooseSongGui.Frame:FindFirstChild("TextBox").Text
  205. end
  206. end)
  207. button.MouseButton1Click:Connect(function()
  208. ifplayer = findplayer(audioid)
  209. if game.Players:FindFirstChild(ifplayer) then
  210. -- print(ifplayer)
  211. if game.Players:FindFirstChild(ifplayer) then
  212. if game.Players:FindFirstChild(ifplayer).Character then
  213. if game.Players:FindFirstChild(ifplayer).Character:FindFirstChild("Torso") then
  214. if game.Players:FindFirstChild(ifplayer).Character.Torso:FindFirstChild("Song") then
  215. if game.Players.LocalPlayer.Character:FindFirstChild("BoomBox") then
  216. game.Players.LocalPlayer.Character.BoomBox.Remote:FireServer("PlaySong", tostring(game.Players:FindFirstChild(ifplayer).Character.Torso:FindFirstChild("Song").SoundId))
  217. wait(0.6)
  218. if game.Players.LocalPlayer.Character.BoomBox:FindFirstChild("Server") then
  219. game.Players.LocalPlayer.Character.BoomBox:FindFirstChild("Server"):Destroy()
  220. end
  221. invisplaying = true
  222. forgsub = tostring(game.Players:FindFirstChild(ifplayer).Character.Torso:FindFirstChild("Song").SoundId)
  223. yaid = string.sub(forgsub, 33, -1)
  224. -- print(yaid)
  225. game.Players.LocalPlayer.Character.BoomBox.Remote:FireServer("PlaySong", yaid)
  226. wait(0.6)
  227. if game.Players.LocalPlayer.Character.BoomBox:FindFirstChild("Server") then
  228. game.Players.LocalPlayer.Character.BoomBox:FindFirstChild("Server"):Destroy()
  229. end
  230. invisplaying = true
  231. print(ifplayer.." : "..tostring(game.Players:FindFirstChild(ifplayer).Character.Torso:FindFirstChild("Song").SoundId))
  232. end
  233. end
  234. end
  235. end
  236. end
  237. else
  238. -- print(ifplayer)
  239. wait()
  240. if game.Players.LocalPlayer.Character:FindFirstChild("BoomBox") then
  241. yesid = string.gsub(tostring(audioid), "rbxassetid://", "")
  242. siid = string.gsub(yesid, "http://www.roblox.com/asset/", "")
  243. yupid = string.gsub(siid, "?id=", "")
  244. waitaminute = game:GetService("MarketplaceService"):GetProductInfo(tonumber(yupid))
  245. if waitaminute then
  246. encrypted = fullyconvert(yupid)
  247. game.Players.LocalPlayer.Character.BoomBox.Remote:FireServer("PlaySong", tostring(encrypted))
  248. wait(0.6)
  249. if game.Players.LocalPlayer.Character.BoomBox:FindFirstChild("Server") then
  250. game.Players.LocalPlayer.Character.BoomBox:FindFirstChild("Server"):Destroy()
  251. end
  252. invisplaying = true
  253. else
  254. local encoded = percentencode(yupid)
  255. local playable = toplayable(encoded)
  256. game.Players.LocalPlayer.Character.BoomBox.Remote:FireServer("PlaySong", tostring(playable))
  257. wait(0.6)
  258. if game.Players.LocalPlayer.Character.BoomBox:FindFirstChild("Server") then
  259. game.Players.LocalPlayer.Character.BoomBox:FindFirstChild("Server"):Destroy()
  260. end
  261. invisplaying = true
  262. end
  263. end
  264. end
  265. if game.Players.LocalPlayer.PlayerGui:FindFirstChild("ChooseSongGui") then
  266. game.Players.LocalPlayer.PlayerGui:FindFirstChild("ChooseSongGui"):Destroy()
  267. end
  268. end)
  269.  
  270.  
  271.  
  272. game.Players.LocalPlayer.PlayerGui.ChooseSongGui.Frame:WaitForChild("TextLabel").Text = "Thanks for using my script! \n (From Aidez) \n \n Put any type of audio ID to play it \n (Works with hashes and such)"
  273. game.Players.LocalPlayer.PlayerGui.ChooseSongGui.Frame:WaitForChild("TextButton").MouseEnter:Connect(function()
  274. if game.Players.LocalPlayer.PlayerGui.ChooseSongGui.Frame:FindFirstChild("TextBox") then
  275. audioid = game.Players.LocalPlayer.PlayerGui.ChooseSongGui.Frame:FindFirstChild("TextBox").Text
  276. end
  277. end)
  278. game.Players.LocalPlayer.PlayerGui.ChooseSongGui.Frame:FindFirstChild("TextButton").MouseMoved:Connect(function()
  279. if game.Players.LocalPlayer.PlayerGui.ChooseSongGui.Frame:FindFirstChild("TextBox") then
  280. audioid = game.Players.LocalPlayer.PlayerGui.ChooseSongGui.Frame:FindFirstChild("TextBox").Text
  281. end
  282. end)
  283. game.Players.LocalPlayer.PlayerGui.ChooseSongGui.Frame:FindFirstChild("TextButton").MouseButton1Click:Connect(function()
  284. ifplayer = findplayer(audioid)
  285. if game.Players:FindFirstChild(ifplayer) then
  286. -- print(ifplayer)
  287. if game.Players:FindFirstChild(ifplayer) then
  288. if game.Players:FindFirstChild(ifplayer).Character then
  289. if game.Players:FindFirstChild(ifplayer).Character:FindFirstChild("Torso") then
  290. if game.Players:FindFirstChild(ifplayer).Character.Torso:FindFirstChild("Song") then
  291. if game.Players.LocalPlayer.Character:FindFirstChild("BoomBox") then
  292. game.Players.LocalPlayer.Character.BoomBox.Remote:FireServer("PlaySong", tostring(game.Players:FindFirstChild(ifplayer).Character.Torso:FindFirstChild("Song").SoundId))
  293. forgsub = tostring(game.Players:FindFirstChild(ifplayer).Character.Torso:FindFirstChild("Song").SoundId)
  294. yaid = string.sub(forgsub, 33, -1)
  295. -- print(yaid)
  296. game.Players.LocalPlayer.Character.BoomBox.Remote:FireServer("PlaySong", yaid)
  297. print(ifplayer.." : "..tostring(game.Players:FindFirstChild(ifplayer).Character.Torso:FindFirstChild("Song").SoundId))
  298. end
  299. end
  300. end
  301. end
  302. end
  303. else
  304. -- print(ifplayer)
  305. wait()
  306. if game.Players.LocalPlayer.Character:FindFirstChild("BoomBox") then
  307. yesid = string.gsub(tostring(audioid), "rbxassetid://", "")
  308. siid = string.gsub(yesid, "http://www.roblox.com/asset/", "")
  309. yupid = string.gsub(siid, "?id=", "")
  310. waitaminute = game:GetService("MarketplaceService"):GetProductInfo(tonumber(yupid))
  311. if waitaminute then
  312. encrypted = fullyconvert(yupid)
  313. game.Players.LocalPlayer.Character.BoomBox.Remote:FireServer("PlaySong", tostring(encrypted))
  314. else
  315. local encoded = percentencode(yupid)
  316. local playable = toplayable(encoded)
  317. game.Players.LocalPlayer.Character.BoomBox.Remote:FireServer("PlaySong", tostring(playable))
  318. end
  319. end
  320. end
  321. if game.Players.LocalPlayer.PlayerGui:FindFirstChild("ChooseSongGui") then
  322. game.Players.LocalPlayer.PlayerGui:FindFirstChild("ChooseSongGui"):Destroy()
  323. end
  324. end)
  325. end -- if invisible playing then
  326. end)
  327. end
  328.  
  329. game.Players.LocalPlayer.CharacterAdded:Connect(function()
  330. invisplaying = false
  331. wait()
  332.  
  333. if hasboombox == true and invisplaying == false then
  334. boxpath = game.Players.LocalPlayer.Backpack:WaitForChild("BoomBox")
  335. wait()
  336. boxpath.Activated:Connect(function()
  337. if invisplaying == false then
  338. game.Players.LocalPlayer.PlayerGui:WaitForChild("ChooseSongGui")
  339. game.Players.LocalPlayer.PlayerGui.ChooseSongGui:WaitForChild("Frame")
  340. local button = Instance.new("TextButton")
  341. button.Name = "InvisPlay"
  342. button.Style = "RobloxButton"
  343. button.Size = UDim2.new(0.75, 0, 0.2, 0)
  344. button.Position = UDim2.new(0.125, 0, 1.1, 0)
  345. button.TextColor3 = Color3.new(1, 1, 1)
  346. button.TextStrokeTransparency = 0
  347. button.Text = "Invisible Play"
  348. button.TextScaled = true
  349. button.Parent = game.Players.LocalPlayer.PlayerGui.ChooseSongGui:WaitForChild("Frame")
  350. button.MouseEnter:Connect(function()
  351. if game.Players.LocalPlayer.PlayerGui.ChooseSongGui.Frame:FindFirstChild("TextBox") then
  352. audioid = game.Players.LocalPlayer.PlayerGui.ChooseSongGui.Frame:FindFirstChild("TextBox").Text
  353. end
  354. end)
  355. button.MouseMoved:Connect(function()
  356. if game.Players.LocalPlayer.PlayerGui.ChooseSongGui.Frame:FindFirstChild("TextBox") then
  357. audioid = game.Players.LocalPlayer.PlayerGui.ChooseSongGui.Frame:FindFirstChild("TextBox").Text
  358. end
  359. end)
  360. button.MouseButton1Click:Connect(function()
  361. ifplayer = findplayer(audioid)
  362. if game.Players:FindFirstChild(ifplayer) then
  363. -- print(ifplayer)
  364. if game.Players:FindFirstChild(ifplayer) then
  365. if game.Players:FindFirstChild(ifplayer).Character then
  366. if game.Players:FindFirstChild(ifplayer).Character:FindFirstChild("Torso") then
  367. if game.Players:FindFirstChild(ifplayer).Character.Torso:FindFirstChild("Song") then
  368. if game.Players.LocalPlayer.Character:FindFirstChild("BoomBox") then
  369. game.Players.LocalPlayer.Character.BoomBox.Remote:FireServer("PlaySong", tostring(game.Players:FindFirstChild(ifplayer).Character.Torso:FindFirstChild("Song").SoundId))
  370. wait(0.6)
  371. if game.Players.LocalPlayer.Character.BoomBox:FindFirstChild("Server") then
  372. game.Players.LocalPlayer.Character.BoomBox:FindFirstChild("Server"):Destroy()
  373. end
  374. invisplaying = true
  375. forgsub = tostring(game.Players:FindFirstChild(ifplayer).Character.Torso:FindFirstChild("Song").SoundId)
  376. yaid = string.sub(forgsub, 33, -1)
  377. -- print(yaid)
  378. game.Players.LocalPlayer.Character.BoomBox.Remote:FireServer("PlaySong", yaid)
  379. wait(0.6)
  380. if game.Players.LocalPlayer.Character.BoomBox:FindFirstChild("Server") then
  381. game.Players.LocalPlayer.Character.BoomBox:FindFirstChild("Server"):Destroy()
  382. end
  383. invisplaying = true
  384. print(ifplayer.." : "..tostring(game.Players:FindFirstChild(ifplayer).Character.Torso:FindFirstChild("Song").SoundId))
  385. end
  386. end
  387. end
  388. end
  389. end
  390. else
  391. -- print(ifplayer)
  392. wait()
  393. if game.Players.LocalPlayer.Character:FindFirstChild("BoomBox") then
  394. yesid = string.gsub(tostring(audioid), "rbxassetid://", "")
  395. siid = string.gsub(yesid, "http://www.roblox.com/asset/", "")
  396. yupid = string.gsub(siid, "?id=", "")
  397. waitaminute = game:GetService("MarketplaceService"):GetProductInfo(tonumber(yupid))
  398. if waitaminute then
  399. encrypted = fullyconvert(yupid)
  400. game.Players.LocalPlayer.Character.BoomBox.Remote:FireServer("PlaySong", tostring(encrypted))
  401. wait(0.6)
  402. if game.Players.LocalPlayer.Character.BoomBox:FindFirstChild("Server") then
  403. game.Players.LocalPlayer.Character.BoomBox:FindFirstChild("Server"):Destroy()
  404. end
  405. invisplaying = true
  406. else
  407. local encoded = percentencode(yupid)
  408. local playable = toplayable(encoded)
  409. game.Players.LocalPlayer.Character.BoomBox.Remote:FireServer("PlaySong", tostring(playable))
  410. wait(0.6)
  411. if game.Players.LocalPlayer.Character.BoomBox:FindFirstChild("Server") then
  412. game.Players.LocalPlayer.Character.BoomBox:FindFirstChild("Server"):Destroy()
  413. end
  414. invisplaying = true
  415. end
  416. end
  417. end
  418. if game.Players.LocalPlayer.PlayerGui:FindFirstChild("ChooseSongGui") then
  419. game.Players.LocalPlayer.PlayerGui:FindFirstChild("ChooseSongGui"):Destroy()
  420. end
  421. end)
  422. game.Players.LocalPlayer.PlayerGui:WaitForChild("ChooseSongGui")
  423. game.Players.LocalPlayer.PlayerGui.ChooseSongGui:WaitForChild("Frame")
  424. game.Players.LocalPlayer.PlayerGui.ChooseSongGui.Frame:WaitForChild("TextLabel").Text = "Thanks for using my script! \n (From Aidez) \n \n Put any type of audio ID to play it \n (Works with hashes and such)"
  425. game.Players.LocalPlayer.PlayerGui.ChooseSongGui.Frame:WaitForChild("TextButton").MouseEnter:Connect(function()
  426. if game.Players.LocalPlayer.PlayerGui.ChooseSongGui.Frame:FindFirstChild("TextBox") then
  427. audioid = game.Players.LocalPlayer.PlayerGui.ChooseSongGui.Frame:FindFirstChild("TextBox").Text
  428. end
  429. end)
  430. game.Players.LocalPlayer.PlayerGui.ChooseSongGui.Frame:FindFirstChild("TextButton").MouseMoved:Connect(function()
  431. if game.Players.LocalPlayer.PlayerGui.ChooseSongGui.Frame:FindFirstChild("TextBox") then
  432. audioid = game.Players.LocalPlayer.PlayerGui.ChooseSongGui.Frame:FindFirstChild("TextBox").Text
  433. end
  434. end)
  435. game.Players.LocalPlayer.PlayerGui.ChooseSongGui.Frame:FindFirstChild("TextButton").MouseButton1Click:Connect(function()
  436. ifplayer = findplayer(audioid)
  437. wait()
  438. if game.Players:FindFirstChild(ifplayer) then
  439. -- print(ifplayer)
  440. if game.Players:FindFirstChild(ifplayer) then
  441. if game.Players:FindFirstChild(ifplayer).Character then
  442. if game.Players:FindFirstChild(ifplayer).Character:FindFirstChild("Torso") then
  443. if game.Players:FindFirstChild(ifplayer).Character.Torso:FindFirstChild("Song") then
  444. if game.Players.LocalPlayer.Character:FindFirstChild("BoomBox") then
  445. forgsub = tostring(game.Players:FindFirstChild(ifplayer).Character.Torso:FindFirstChild("Song").SoundId)
  446. yaid = string.sub(forgsub, 33, -1)
  447. -- print(yaid)
  448. game.Players.LocalPlayer.Character.BoomBox.Remote:FireServer("PlaySong", yaid)
  449. print(ifplayer.." : "..tostring(game.Players:FindFirstChild(ifplayer).Character.Torso:FindFirstChild("Song").SoundId))
  450. end
  451. end
  452. end
  453. end
  454. end
  455. else
  456. -- print(ifplayer)
  457. wait()
  458. yesid = string.gsub(tostring(audioid), "rbxassetid://", "")
  459. siid = string.gsub(yesid, "http://www.roblox.com/asset/", "")
  460. yupid = string.gsub(siid, "?id=", "")
  461. waitaminute = game:GetService("MarketplaceService"):GetProductInfo(tonumber(yupid))
  462. if waitaminute then
  463. encrypted = fullyconvert(yupid)
  464. if game.Players.LocalPlayer.Character:FindFirstChild("BoomBox") then
  465. game.Players.LocalPlayer.Character.BoomBox.Remote:FireServer("PlaySong", tostring(encrypted))
  466. end
  467. else
  468. local encoded = percentencode(yupid)
  469. local playable = toplayable(encoded)
  470. game.Players.LocalPlayer.Character.BoomBox.Remote:FireServer("PlaySong", tostring(playable))
  471. end
  472.  
  473. end
  474. if game.Players.LocalPlayer.PlayerGui:FindFirstChild("ChooseSongGui") then
  475. game.Players.LocalPlayer.PlayerGui:FindFirstChild("ChooseSongGui"):Destroy()
  476. end
  477. end)
  478. end -- if invisplaying == false then
  479. end)
  480. end
  481. end)
  482.  
  483.  
  484.  
  485. if hasboombox == false then
  486. print("You need to have the boombox gamepass to get use out of this script!")
  487. end
RAW Paste Data