Advertisement
TheFlamingBlaster

flamemusicforb

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