Advertisement
TheFlamingBlaster

FlameMusic offical build

Nov 28th, 2015
366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 14.35 KB | None | 0 0
  1. -- Welcome to FlameMusic
  2. -- This is built for ScriptBuilder, however you can run it if you'd like in your own place if you'd like.
  3. -- This build was built by TheFlamingBlaster, you can feel free to modify it however you like, as long as you keep me in the credits.
  4. -- If you create anything with this code, feel free to message me on roblox and what you've done, I'd love to see your creations.
  5. -- If you do modify this code, be sure to put yourself in the "Other Contributors" to let everyone know what you've done.
  6. -- Be sure to run this script in ScriptBuilder with local commands, if you're playing Voidacity's script builder, run it like this:
  7. --
  8. -- Have fun, and without furtherado, let's start up the code!
  9. local plr = game:GetService'Players'.LocalPlayer
  10. local version = ("1.0.0 alpha ")
  11. print("[FlameMusic]Version"..version)
  12. local credits = ("TheFlamingBlaster ")
  13. local othercontributors = ("") -- <-- If you're working with FlameMusic, be sure to put your name here.
  14. if othercontributors ~= "" then
  15.     contrib = ("with thanks to "..othercontributors.." for helping out!")
  16. else
  17.     contrib = "."
  18. end
  19. print("[FlameMusic]Credits to "..credits..contrib)
  20. print("[FlameMusic]Configuring SoundService to best suit FlameMusic...")
  21. game:GetService'SoundService'.DistanceFactor = 60
  22. game:GetService'SoundService'.AmbientReverb = "Auditorium"
  23. print ("[FlameMusic]FlameMusic has been run by"..plr.Character.Name..".")
  24. game.SoundService.RolloffScale = 1
  25. print ("[FlameMusic]Enabling guis")
  26. local moosicPlayer = Instance.new(("Sound"),plr.Character.Torso)
  27. moosicPlayer.Volume = (1)
  28. local screengui = Instance.new(("ScreenGui"),plr.PlayerGui)
  29. -- Setting up some main gui stuff
  30. local main = Instance.new(("Frame"),screengui) -- Main holding frame
  31. main.Style = Enum.FrameStyle.RobloxRound
  32. main.Size = UDim2.new(0,300,0,200)
  33. main.Position = UDim2.new(0.5,0,0.5,0)
  34. main.BackgroundTransparency = (1)
  35. main.Draggable = (true)
  36. main.Active = (true)
  37. local textbox = Instance.new(("TextBox"),main) -- ID Box
  38. textbox.Text = 285150228
  39. textbox.Size = UDim2.new(0,200,0,50)
  40. textbox.Position = UDim2.new(0.075,0,0.3,0)
  41. textbox.ClearTextOnFocus = (false)
  42. local textButton = Instance.new(("TextButton"),textbox) -- Play Button
  43. textButton.Position = UDim2.new(1,0,0,0)
  44. textButton.Size = UDim2.new(0,50,0,50)
  45. textButton.Text = (">")
  46. textButton.BackgroundColor3 = Color3.new(0,1,0)
  47. local textButton4 = Instance.new(("TextButton"),textbox) -- Repeat button
  48. textButton4.Position = UDim2.new(0,0,1,0)
  49. textButton4.Size = UDim2.new(0,50,0,50)
  50. textButton4.Text = ("R")
  51. textButton4.BackgroundColor3 = Color3.new(1,0,0)
  52. local textButton5 = Instance.new(("TextButton"),textbox) -- Disco Button-
  53. textButton5.Position = UDim2.new(0,50,1,0)
  54. textButton5.Size = UDim2.new(0,50,0,50)
  55. textButton5.Text = ("D")
  56. textButton5.BackgroundColor3 = Color3.new(1,0,0)
  57. local textButton6 = Instance.new(("TextButton"),textbox) -- Disco Button-
  58. textButton6.Position = UDim2.new(0,100,1,0)
  59. textButton6.Size = UDim2.new(0,50,0,50)
  60. textButton6.Text = ("S")
  61. textButton6.BackgroundColor3 = Color3.new(1,0,0)
  62. local textButton2 = Instance.new(("TextButton"),textbox) -- Global Button
  63. textButton2.Position = UDim2.new(1,0,1,0)
  64. textButton2.Size = UDim2.new(0,50,0,50)
  65. textButton2.Text = ("G")
  66. textButton2.BackgroundColor3 = Color3.new(1,0,0)
  67. local textButton3 = Instance.new(("TextButton"),main) -- Expanding the Reconmended Tunes
  68. textButton3.Style = 2
  69. textButton3.Position = UDim2.new(0.95,0,0,0)
  70. textButton3.Size = UDim2.new(0.05,0,1,0)
  71. textButton3.TextColor3 = Color3.new(1,1,1)
  72. textButton3.Text = (">>")
  73. local textButton7 = Instance.new(("TextButton"),main) -- Expanding settings
  74. textButton7.Position = UDim2.new(0,0,0.95,0)
  75. textButton7.Size = UDim2.new(1,0,0.05,0)
  76. textButton7.TextColor3 = Color3.new(1,1,1)
  77. textButton7.Text = ("Settings")
  78. textButton7.BackgroundColor3 = Color3.new(0,0,0)
  79. local RecTunesMain = Instance.new("Frame",main) -- Main Holder
  80. RecTunesMain.Position = UDim2.new(1.05,0,-0.05,0)
  81. RecTunesMain.Size = UDim2.new(0,300,0,200)
  82. RecTunesMain.Visible = false
  83. RecTunesMain.Style = Enum.FrameStyle.RobloxRound
  84. local RecTunes = Instance.new("ScrollingFrame",RecTunesMain) -- Scrolling frame within the holder
  85. RecTunes.BackgroundTransparency = 1
  86. RecTunes.Size = UDim2.new(1,0,1,0)
  87. local RecTunesTxt = Instance.new("TextLabel",RecTunes) -- Labels
  88. RecTunesTxt.Size = UDim2.new(1,0,0.1,0)
  89. RecTunesTxt.Position = UDim2.new(0,0,0,0)
  90. RecTunesTxt.Text = ("Picks for "..game:GetService'Players'.LocalPlayer.Character.Name)
  91. RecTunesTxt.TextWrapped = true
  92. RecTunesTxt.TextScaled = true
  93. RecTunesTxt.BackgroundTransparency = 1
  94. RecTunesTxt.TextColor3 = Color3.new(1,1,1)
  95. local SettingsMain = Instance.new("Frame",main) -- Settings display
  96. SettingsMain.Position = UDim2.new(-0.025,0,1.05,0)
  97. SettingsMain.Size = UDim2.new(0,300,0,200)
  98. SettingsMain.Visible = false
  99. SettingsMain.Style = Enum.FrameStyle.RobloxRound
  100. local Settings = Instance.new("ScrollingFrame",SettingsMain)
  101. Settings.BackgroundTransparency = 1
  102. Settings.Size = UDim2.new(1,0,1,0)
  103. local PitchBox = Instance.new("TextBox",Settings)
  104. PitchBox.Size = UDim2.new(0.9,0,0.05,0)
  105. PitchBox.Text = "1"
  106. PitchBox.Position = UDim2.new(0,0,0.05,0)
  107. local LabelPitch = Instance.new("TextLabel",Settings)
  108. LabelPitch.TextColor3 = Color3.new(1,1,1)
  109. LabelPitch.BackgroundTransparency = 1
  110. LabelPitch.TextWrapped = true
  111. LabelPitch.TextScaled = true
  112. LabelPitch.Position = UDim2.new(0,0,0,0)
  113. LabelPitch.Size = UDim2.new(1,0,0.05,0)
  114. LabelPitch.Text = "Set pitch"
  115. local PitchButton = Instance.new("TextButton",PitchBox)
  116. PitchButton.Size = UDim2.new(0.1,0,1,0)
  117. PitchButton.Position = UDim2.new(1,0,0,0)
  118. PitchButton.BackgroundColor = BrickColor.Green()
  119. PitchButton.Text = ">"
  120. local LabelTime = Instance.new("TextLabel",Settings)
  121. LabelTime.TextColor3 = Color3.new(1,1,1)
  122. LabelTime.BackgroundTransparency = 1
  123. LabelTime.TextWrapped = true
  124. LabelTime.TextScaled = true
  125. LabelTime.Position = UDim2.new(0,0,0.1,0)
  126. LabelTime.Size = UDim2.new(1,0,0.05,0)
  127. LabelTime.Text = "Set Time Position"
  128. local TimeBox = Instance.new("TextBox",Settings)
  129. TimeBox.Size = UDim2.new(0.9,0,0.05,0)
  130. TimeBox.Text = ""
  131. TimeBox.Position = UDim2.new(0,0,0.15,0)
  132. local TimeButton = Instance.new("TextButton",TimeBox)
  133. TimeButton.Size = UDim2.new(0.1,0,1,0)
  134. TimeButton.Position = UDim2.new(1,0,0,0)
  135. TimeButton.BackgroundColor = BrickColor.Green()
  136. TimeButton.Text = ">"
  137.  
  138. local LabelVolume = Instance.new("TextLabel",Settings)
  139. LabelVolume.TextColor3 = Color3.new(1,1,1)
  140. LabelVolume.BackgroundTransparency = 1
  141. LabelVolume.TextWrapped = true
  142. LabelVolume.TextScaled = true
  143. LabelVolume.Position = UDim2.new(0,0,0.20,0)
  144. LabelVolume.Size = UDim2.new(1,0,0.05,0)
  145. LabelVolume.Text = "Set Volume"
  146. local VolumeBox = Instance.new("TextBox",Settings)
  147. VolumeBox.Size = UDim2.new(0.9,0,0.05,0)
  148. VolumeBox.Text = "1"
  149. VolumeBox.Position = UDim2.new(0,0,0.25,0)
  150. local VolumeButton = Instance.new("TextButton",VolumeBox)
  151. VolumeButton.Size = UDim2.new(0.1,0,1,0)
  152. VolumeButton.Position = UDim2.new(1,0,0,0)
  153. VolumeButton.BackgroundColor = BrickColor.Green()
  154. VolumeButton.Text = ">"
  155. local LabelVolume = Instance.new("TextLabel",Settings)
  156. LabelVolume.TextColor3 = Color3.new(1,1,1)
  157. LabelVolume.BackgroundTransparency = 1
  158. LabelVolume.TextWrapped = true
  159. LabelVolume.TextScaled = true
  160. LabelVolume.Position = UDim2.new(0,0,0.30,0)
  161. LabelVolume.Size = UDim2.new(0.9,0,0.15,0)
  162. LabelVolume.Text = ("Version: "..version..". This version of FlameMusic was made by "..credits..contrib)
  163.  
  164. -- Reconmended button stuffz
  165. local RTButton1 = Instance.new("TextButton",RecTunes)
  166. RTButton1.Style = 2
  167. RTButton1.Size = UDim2.new(1,0,0.05,0)
  168. RTButton1.Text = "Windows 10 Song"
  169. RTButton1.TextColor3 = Color3.new(1,1,1)
  170. RTButton1.Position = UDim2.new(0,0,0.1,0)
  171.  
  172. local RTButton2 = Instance.new("TextButton",RecTunes)
  173. RTButton2.Style = 2
  174. RTButton2.Size = UDim2.new(1,0,0.05,0)
  175. RTButton2.Text = "Radioactive"
  176. RTButton2.TextColor3 = Color3.new(1,1,1)
  177. RTButton2.Position = UDim2.new(0,0,0.15,0)
  178.  
  179. local RTButton3 = Instance.new("TextButton",RecTunes)
  180. RTButton3.Style = 2
  181. RTButton3.Size = UDim2.new(1,0,0.05,0)
  182. RTButton3.Text = "Silento Watch Me (Whip/ Nae Nae)"
  183. RTButton3.TextColor3 = Color3.new(1,1,1)
  184. RTButton3.Position = UDim2.new(0,0,0.20,0)
  185.  
  186. local RTButton4 = Instance.new("TextButton",RecTunes)
  187. RTButton4.Style = 2
  188. RTButton4.Size = UDim2.new(1,0,0.05,0)
  189. RTButton4.Text = "Little Einsteins"
  190. RTButton4.TextColor3 = Color3.new(1,1,1)
  191. RTButton4.Position = UDim2.new(0,0,0.25,0)
  192.  
  193. local RTButton5 = Instance.new("TextButton",RecTunes)
  194. RTButton5.Style = 2
  195. RTButton5.Size = UDim2.new(1,0,0.05,0)
  196. RTButton5.Text = "Splatoon Squid Kid TV Commercial"
  197. RTButton5.TextColor3 = Color3.new(1,1,1)
  198. RTButton5.Position = UDim2.new(0,0,0.30,0)
  199.  
  200. local RTButton6 = Instance.new("TextButton",RecTunes)
  201. RTButton6.Style = 2
  202. RTButton6.Size = UDim2.new(1,0,0.05,0)
  203. RTButton6.Text = "To the moon"
  204. RTButton6.TextColor3 = Color3.new(1,1,1)
  205. RTButton6.Position = UDim2.new(0,0,0.35,0)
  206.  
  207. local RTButton7 = Instance.new("TextButton",RecTunes)
  208. RTButton7.Style = 2
  209. RTButton7.Size = UDim2.new(1,0,0.05,0)
  210. RTButton7.Text = "Hewkii - Next Time"
  211. RTButton7.TextColor3 = Color3.new(1,1,1)
  212. RTButton7.Position = UDim2.new(0,0,0.40,0)
  213.  
  214. local RTButton8 = Instance.new("TextButton",RecTunes)
  215. RTButton8.Style = 2
  216. RTButton8.Size = UDim2.new(1,0,0.05,0)
  217. RTButton8.Text = "Windows XP Setup Music Remix"
  218. RTButton8.TextColor3 = Color3.new(1,1,1)
  219. RTButton8.Position = UDim2.new(0,0,0.40,0)
  220.  
  221. local RTButton9 = Instance.new("TextButton",RecTunes)
  222. RTButton9.Style = 2
  223. RTButton9.Size = UDim2.new(1,0,0.05,0)
  224. RTButton9.Text = "4000 Degrees Kelvin"
  225. RTButton9.TextColor3 = Color3.new(1,1,1)
  226. RTButton9.Position = UDim2.new(0,0,0.45,0)
  227.  
  228. local RTButton10 = Instance.new("TextButton",RecTunes)
  229. RTButton10.Style = 2
  230. RTButton10.Size = UDim2.new(1,0,0.05,0)
  231. RTButton10.Text = "AC/DC - Back In Black"
  232. RTButton10.TextColor3 = Color3.new(1,1,1)
  233. RTButton10.Position = UDim2.new(0,0,0.50,0)
  234.  
  235. -- Wow, that was tiring, that's a bunch of buttons.
  236.  
  237. local txt = Instance.new("TextLabel",main) -- Text label stuff
  238. txt.Text = ("FlameMusic, input a id and click the green button!")
  239. txt.Size = UDim2.new(1,0,0.2,0)
  240. txt.TextWrapped = true
  241. txt.TextScaled = true
  242. txt.BackgroundTransparency = 1
  243. txt.TextColor = BrickColor.New(255,255,255)
  244. local txt2 = Instance.new("TextLabel",main) -- Now Playing box
  245. txt2.Size = UDim2.new(1,0,0.2,0)
  246. txt2.Position = UDim2.new(0,0,0.8,0)
  247. txt2.TextWrapped = true
  248. txt2.TextScaled = true
  249. txt2.BackgroundTransparency = 1
  250. txt2.TextColor = BrickColor.New(255,255,255)
  251. txt2.Text = ""
  252. print ("[FlameMusic]All is good! Sucessfully started.")
  253. -- Now all the button actions
  254. textButton.MouseButton1Down:connect(function()
  255.     moosicPlayer:Pause()
  256.     local id = textbox.Text
  257.     local Asset = game:GetService("MarketplaceService"):GetProductInfo(id)
  258.     print("[FlameMusic] Now Playing: "..Asset.Name)
  259.     txt2.Text = ("Now Playing: "..Asset.Name)
  260.     moosicPlayer.SoundId = ("rbxassetid://"..id)
  261.     wait(0.1)
  262.     moosicPlayer:Play()
  263.     wait(moosicPlayer.TimeLength)
  264.     txt2.Text = ("")
  265. end)
  266. textButton2.MouseButton1Down:connect(function()
  267. if game:GetService'SoundService'.RolloffScale == 1 then
  268.     print("[FlameMusic] Music for "..game:GetService'Players'.LocalPlayer.Character.Name.."'s player is now global.")
  269.     game:GetService'SoundService'.RolloffScale = 0
  270.     textButton2.BackgroundColor = BrickColor.new(0,1,0)
  271. else
  272.     print("[FlameMusic] Music for "..game:GetService'Players'.LocalPlayer.Character.Name.."'s player is no longer global.")
  273.     textButton2.BackgroundColor = BrickColor.new(1,0,0)
  274.     game:GetService'SoundService'.RolloffScale = 1
  275. end
  276. end)
  277. textButton3.MouseButton1Down:connect(function()
  278. if RecTunesMain.Visible == false then
  279.     textButton3.Text = "<<"
  280.     RecTunesMain.Visible = true
  281. else
  282.     textButton3.Text = ">>"
  283.     RecTunesMain.Visible = false
  284. end
  285. end)
  286. textButton4.MouseButton1Down:connect(function()
  287. if moosicPlayer.Looped == false then
  288.     print("[FlameMusic] Music for "..game:GetService'Players'.LocalPlayer..Character.Name.."'s player is now looped.")
  289.     moosicPlayer.Looped = true
  290.     textButton4.BackgroundColor3 = Color3.new(0,1,0)
  291. else
  292.     print("[FlameMusic] Music for "..game:GetService'Players'.LocalPlayer.Character.Name.."'s player is no longer looped.")
  293.     moosicPlayer.Looped = false
  294.     textButton4.BackgroundColor3 = Color3.new(1,0,0)
  295. end
  296. end)
  297. textButton5.MouseButton1Down:connect(function()
  298. i = 0
  299. if textButton5.BackgroundColor3 == Color3.new(1,0,0) then
  300.     while i < 1000 do
  301.     textButton5.BackgroundColor3 = Color3.new(0,1,0)
  302.     local r = math.random() * 5
  303.     print (r)
  304.     local g = math.random() * 5
  305.     print (g)
  306.     local b = math.random() * 5
  307.     print (b)
  308.     game:GetService'Lighting'.OutdoorAmbient = Color3.new(r,g,b)
  309.     i = i + 1
  310.     wait(0.1)
  311.     end
  312. else
  313. textButton5.BackgroundColor3 = Color3.new(1,0,0)   
  314. end
  315. end)
  316. textButton6.MouseButton1Down:connect(function()
  317. moosicPlayer:Pause()
  318. txt2.Text = "Stopped"
  319. wait(3)
  320. txt2.Text = ""
  321. end)
  322. PitchButton.MouseButton1Down:connect(function()
  323. moosicPlayer.Pitch = PitchBox.Text
  324. if moosicPlayer.Pitch > 3 then
  325.     moosicPlayer.Pitch = 3
  326.     PitchBox.Text = 3
  327. end
  328. if moosicPlayer.Pitch < 0.1 then
  329.     moosicPlayer.Pitch = 0.1
  330.     PitchBox.Text = 0.1
  331. end
  332. end)
  333. VolumeButton.MouseButton1Down:connect(function()
  334. moosicPlayer.Volume = VolumeBox.Text
  335. end)
  336. TimeButton.MouseButton1Down:connect(function()
  337. moosicPlayer.TimePosition = TimeBox.Text
  338. end)
  339.  
  340. textButton7.MouseButton1Down:connect(function()
  341. if SettingsMain.Visible == false then
  342.     SettingsMain.Visible = true
  343. else
  344.     SettingsMain.Visible = false
  345. end
  346. end)
  347. -- Reconmended picks button actions
  348. RTButton1.MouseButton1Down:connect(function()
  349. textbox.Text = "285150228"
  350. end)
  351. RTButton2.MouseButton1Down:connect(function()
  352. textbox.Text = "236896548"
  353. end)
  354. RTButton3.MouseButton1Down:connect(function()
  355. textbox.Text = "215733323"
  356. end)
  357. RTButton4.MouseButton1Down:connect(function()
  358. textbox.Text = "219701493"
  359. end)
  360. RTButton5.MouseButton1Down:connect(function()
  361. textbox.Text = "257813600"
  362. end)
  363. RTButton6.MouseButton1Down:connect(function()
  364. textbox.Text = "258395888"
  365. end)
  366. RTButton7.MouseButton1Down:connect(function()
  367. textbox.Text = "147447076"
  368. end)
  369. RTButton8.MouseButton1Down:connect(function()
  370. textbox.Text = "279290177"
  371. end)
  372. RTButton9.MouseButton1Down:connect(function()
  373. textbox.Text = "142300248"
  374. end)
  375. RTButton10.MouseButton1Down:connect(function()
  376. textbox.Text = "143645755"
  377. end)
  378. game:GetService'Players'.LocalPlayer.Character.Humanoid.Died:connect(function()
  379.     moosicPlayer:Pause()
  380. end)
  381.  
  382.  
  383. -- Be sure to add any reconmended picks here, it'll make your life easier.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement