lolita5432

Untitled

Feb 15th, 2017
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.33 KB | None | 0 0
  1. --[[CreateGuiFunction]]--
  2. CreateGui = function()
  3. local MusicGui = Instance.new("ScreenGui")
  4. local MusicFrame = Instance.new("Frame")
  5. local PlayButton = Instance.new("ImageButton")
  6. local CustomSong = Instance.new("TextBox")
  7. local _456388452 = Instance.new("TextButton")
  8. local _534429024 = Instance.new("TextButton")
  9. local _481946023 = Instance.new("TextButton")
  10. local _511168957 = Instance.new("TextButton")
  11. local _358172355 = Instance.new("TextButton")
  12. local _517663466 = Instance.new("TextButton")
  13.  
  14. -- Properties
  15.  
  16. MusicGui.Name = "MusicGui"
  17.  
  18. MusicFrame.Name = "MusicFrame"
  19. MusicFrame.Parent = MusicGui
  20. MusicFrame.BackgroundColor3 = Color3.new(0.129412, 0.129412, 0.129412)
  21. MusicFrame.BackgroundTransparency = 0.5
  22. MusicFrame.Position = UDim2.new(0, 0, 0.5, -250)
  23. MusicFrame.Size = UDim2.new(0, 200, 0, 500)
  24.  
  25. PlayButton.Name = "PlayButton"
  26. PlayButton.Parent = MusicFrame
  27. PlayButton.BackgroundColor3 = Color3.new(1, 1, 1)
  28. PlayButton.BackgroundTransparency = 1
  29. PlayButton.Position = UDim2.new(0.5, -25, 1, -50)
  30. PlayButton.Size = UDim2.new(0, 50, 0, 50)
  31. PlayButton.Image = "rbxassetid://562286524"
  32. PlayButton.ImageColor3 = Color3.new(0, 0.666667, 1)
  33.  
  34. CustomSong.Name = "CustomSong"
  35. CustomSong.Parent = MusicFrame
  36. CustomSong.BackgroundColor3 = Color3.new(1, 1, 1)
  37. CustomSong.BackgroundTransparency = 1
  38. CustomSong.Position = UDim2.new(0.5, -100, 1, -110)
  39. CustomSong.Size = UDim2.new(0, 200, 0, 50)
  40. CustomSong.Font = Enum.Font.SciFi
  41. CustomSong.FontSize = Enum.FontSize.Size24
  42. CustomSong.Text = "Custom Id"
  43. CustomSong.TextColor3 = Color3.new(0.333333, 0.666667, 1)
  44.  
  45. _456388452.Name = "456388452"
  46. _456388452.Parent = MusicFrame
  47. _456388452.BackgroundColor3 = Color3.new(1, 1, 1)
  48. _456388452.BackgroundTransparency = 1
  49. _456388452.Position = UDim2.new(0, 0, 0, 120)
  50. _456388452.Size = UDim2.new(0, 200, 0, 50)
  51. _456388452.Font = Enum.Font.SciFi
  52. _456388452.FontSize = Enum.FontSize.Size12
  53. _456388452.Text = "Jauz & Marshmello - Magic "
  54. _456388452.TextColor3 = Color3.new(0.333333, 0.666667, 1)
  55.  
  56. _534429024.Name = "534429024"
  57. _534429024.Parent = MusicFrame
  58. _534429024.BackgroundColor3 = Color3.new(1, 1, 1)
  59. _534429024.BackgroundTransparency = 1
  60. _534429024.Size = UDim2.new(0, 200, 0, 50)
  61. _534429024.Font = Enum.Font.SciFi
  62. _534429024.FontSize = Enum.FontSize.Size12
  63. _534429024.Text = "The Glitch Mob - Seven Nation Army"
  64. _534429024.TextColor3 = Color3.new(0.333333, 0.666667, 1)
  65.  
  66. _481946023.Name = "481946023"
  67. _481946023.Parent = MusicFrame
  68. _481946023.BackgroundColor3 = Color3.new(1, 1, 1)
  69. _481946023.BackgroundTransparency = 1
  70. _481946023.Position = UDim2.new(0, 0, 0, 60)
  71. _481946023.Size = UDim2.new(0, 200, 0, 50)
  72. _481946023.Font = Enum.Font.SciFi
  73. _481946023.FontSize = Enum.FontSize.Size12
  74. _481946023.Text = "Uplink - To Myself (feat. NK)"
  75. _481946023.TextColor3 = Color3.new(0.333333, 0.666667, 1)
  76.  
  77. _511168957.Name = "511168957"
  78. _511168957.Parent = MusicFrame
  79. _511168957.BackgroundColor3 = Color3.new(1, 1, 1)
  80. _511168957.BackgroundTransparency = 1
  81. _511168957.Position = UDim2.new(0, 0, 0, 240)
  82. _511168957.Size = UDim2.new(0, 200, 0, 50)
  83. _511168957.Font = Enum.Font.SciFi
  84. _511168957.FontSize = Enum.FontSize.Size12
  85. _511168957.Text = "Jauz x Ephwurd - Rock The Party "
  86. _511168957.TextColor3 = Color3.new(0.333333, 0.666667, 1)
  87.  
  88. _358172355.Name = "358172355"
  89. _358172355.Parent = MusicFrame
  90. _358172355.BackgroundColor3 = Color3.new(1, 1, 1)
  91. _358172355.BackgroundTransparency = 1
  92. _358172355.Position = UDim2.new(0, 0, 0, 180)
  93. _358172355.Size = UDim2.new(0, 200, 0, 50)
  94. _358172355.Font = Enum.Font.SciFi
  95. _358172355.FontSize = Enum.FontSize.Size12
  96. _358172355.Text = "Duke Dumont - Need U"
  97. _358172355.TextColor3 = Color3.new(0.333333, 0.666667, 1)
  98.  
  99. _517663466.Name = "517663466"
  100. _517663466.Parent = MusicFrame
  101. _517663466.BackgroundColor3 = Color3.new(1, 1, 1)
  102. _517663466.BackgroundTransparency = 1
  103. _517663466.Position = UDim2.new(0, 0, 0, 300)
  104. _517663466.Size = UDim2.new(0, 200, 0, 50)
  105. _517663466.Font = Enum.Font.SciFi
  106. _517663466.FontSize = Enum.FontSize.Size12
  107. _517663466.Text = "PPAP Pen Pineapple Apple Pen "
  108. _517663466.TextColor3 = Color3.new(0.333333, 0.666667, 1)
  109. return MusicGui
  110. end
  111.  
  112. MusicGui = CreateGui()
  113. MusicGui.Parent = game.Players.LocalPlayer.PlayerGui
  114. repeat wait()
  115.  
  116. until game.Players.LocalPlayer.CharacterAdded
  117. local Part = Instance.new("Part", game.Workspace[""..game.Players.LocalPlayer.Name])
  118. Part.CanCollide = false
  119. Part.Shape = "Block"
  120. Part.Anchored = true
  121. Part.Locked = true
  122. Part.Name = "MusicItem"
  123. Part.Transparency = 0.5
  124. Part.Material = "Neon"
  125. Part.BrickColor = BrickColor.new("Toothpaste")
  126. local Sound = Instance.new("Sound", Part)
  127. Sound.SoundId = "https://www.roblox.com/asset/?id=534429024"
  128. Sound.Looped = true
  129. Sound.Pitch = 1
  130. Sound.Name = "Sound"
  131. Sound.Volume = 1
  132. Sound:Play()
  133. spawn(function()
  134. --[[Objects]]--
  135. local MusicGuiOpen = UDim2.new(0, 0,0.5, -250)
  136. local MusicGuiClosed = UDim2.new(-1, 0,0.5, -250)
  137. local MainFrame = MusicGui['MusicFrame']
  138. local Player = game.Players.LocalPlayer
  139. local Character = Player.Character
  140. local CustomId = MainFrame['CustomSong']
  141. local PlayButton = MainFrame['PlayButton'];
  142. local GlitchMob = MainFrame['534429024']
  143. local Uplink = MainFrame['481946023']
  144. local Marshmello = MainFrame['456388452']
  145. local Dumont = MainFrame['358172355']
  146. local Rock = MainFrame['511168957']
  147. local Pineapple = MainFrame['517663466']
  148. --[[functions]]--
  149. GlitchMob.MouseButton1Down:connect(function()
  150. if Character.Humanoid.RigType == Enum.HumanoidRigType.R15 then
  151. Sound.SoundId = "http://www.roblox.com/asset/?id="..GlitchMob.Name
  152. Sound:Stop()
  153. wait()
  154. Sound:Play()
  155. else
  156. Sound.SoundId = "http://www.roblox.com/asset/?id="..GlitchMob.Name
  157. Sound:Stop()
  158. wait()
  159. Sound:Play()
  160. end
  161. end)
  162.  
  163. Uplink.MouseButton1Down:connect(function()
  164. if Character.Humanoid.RigType == Enum.HumanoidRigType.R15 then
  165. Sound.SoundId = "http://www.roblox.com/asset/?id="..Uplink.Name
  166. Sound:Stop()
  167. wait()
  168. Sound:Play()
  169. else
  170. Sound.SoundId = "http://www.roblox.com/asset/?id="..Uplink.Name
  171. Sound:Stop()
  172. wait()
  173. Sound:Play()
  174. end
  175. end)
  176.  
  177. Marshmello.MouseButton1Down:connect(function()
  178. if Character.Humanoid.RigType == Enum.HumanoidRigType.R15 then
  179. Sound.SoundId = "http://www.roblox.com/asset/?id="..Marshmello.Name
  180. Sound:Stop()
  181. wait()
  182. Sound:Play()
  183. else
  184. Sound.SoundId = "http://www.roblox.com/asset/?id="..Marshmello.Name
  185. Sound:Stop()
  186. wait()
  187. Sound:Play()
  188. end
  189. end)
  190.  
  191. Dumont.MouseButton1Down:connect(function()
  192. if Character.Humanoid.RigType == Enum.HumanoidRigType.R15 then
  193. Sound.SoundId = "http://www.roblox.com/asset/?id="..Dumont.Name
  194. Sound:Stop()
  195. wait()
  196. Sound:Play()
  197. else
  198. Sound.SoundId = "http://www.roblox.com/asset/?id="..Dumont.Name
  199. Sound:Stop()
  200. wait()
  201. Sound:Play()
  202. end
  203. end)
  204.  
  205. Rock.MouseButton1Down:connect(function()
  206. if Character.Humanoid.RigType == Enum.HumanoidRigType.R15 then
  207. Sound.SoundId = "http://www.roblox.com/asset/?id="..Rock.Name
  208. Sound:Stop()
  209. wait()
  210. Sound:Play()
  211. else
  212. Sound.SoundId = "http://www.roblox.com/asset/?id="..Rock.Name
  213. Sound:Stop()
  214. wait()
  215. Sound:Play()
  216. end
  217. end)
  218.  
  219. Pineapple.MouseButton1Down:connect(function()
  220. if Character.Humanoid.RigType == Enum.HumanoidRigType.R15 then
  221. Sound.SoundId = "http://www.roblox.com/asset/?id="..Pineapple.Name
  222. Sound:Stop()
  223. wait()
  224. Sound:Play()
  225. else
  226. Sound.SoundId = "http://www.roblox.com/asset/?id="..Pineapple.Name
  227. Sound:Stop()
  228. wait()
  229. Sound:Play()
  230. end
  231. end)
  232.  
  233. PlayButton.MouseButton1Down:connect(function()
  234. if Character.Humanoid.RigType == Enum.HumanoidRigType.R15 then
  235. Sound.SoundId = "http://www.roblox.com/asset/?id="..CustomId.Text
  236. Sound:Stop()
  237. wait()
  238. Sound:Play()
  239. else
  240. Sound.SoundId = "http://www.roblox.com/asset/?id="..CustomId.Text
  241. Sound:Stop()
  242. wait()
  243. Sound:Play()
  244. end
  245. end)
  246. end)
  247.  
  248.  
  249.  
  250.  
  251. local speed = 0.2
  252. local function transition(c2,c1)
  253. for i = 0,1,speed do
  254. Part.BrickColor = BrickColor.new(Color3.new(((c1.r*(1-i))+(c2.r*i)),((c1.g*(1-i))+(c2.g*i)),((c1.b*(1-i))+(c2.b*i))))
  255. wait()
  256. end
  257. end
  258. game:GetService("RunService").RenderStepped:connect(function()
  259. Part.CFrame = CFrame.new(game.Workspace[""..game.Players.LocalPlayer.Name].HumanoidRootPart.Position) * CFrame.new(0,5,0)
  260. end)
  261.  
  262.  
  263. while true do wait()
  264. local newColor = Color3.new(math.random(),math.random(),math.random())
  265. transition(newColor,Part.BrickColor)
  266. local alg = math.floor(Sound.PlaybackLoudness)/120
  267. Part.Size = Vector3.new(.6+alg,.6+alg,.6+alg)
  268. end
Add Comment
Please, Sign In to add comment