Advertisement
Roblox_Xploits

why

Jul 8th, 2017
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.87 KB | None | 0 0
  1. local info = game.ReplicatedStorage.musicEvents.getSong:InvokeServer()
  2. if info ~= nil then
  3. script.Parent.TextLabel.Text = "Now Playing: " .. info
  4. end
  5.  
  6. game.ReplicatedStorage.musicEvents.newSong.OnClientEvent:connect(function(song)
  7. script.Parent.TextLabel.Text = "Now Playing: " .. song
  8. script.Parent.Frame:TweenSize(UDim2.new(.5,0,1,0), Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, .2, true)
  9. script.Parent.Parent.opt.down.ImageColor3 = Color3.new(1,1,1)
  10. script.Parent.Parent.opt.up.ImageColor3 = Color3.new(1,1,1)
  11. end)
  12.  
  13. game.ReplicatedStorage.musicEvents.voteChange.OnClientEvent:connect(function(percent)
  14. script.Parent.Frame:TweenSize(UDim2.new(percent,0,1,0), Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, .2, true)
  15. end)
  16.  
  17. game.ReplicatedStorage.musicEvents.addSong.OnClientEvent:connect(function()
  18. script.Parent.Parent.add.Visible = true
  19. end)
  20.  
  21. local selected = nil
  22.  
  23. script.Parent.Parent:WaitForChild("opt"):WaitForChild("up").MouseEnter:connect(function()
  24. if selected ~= script.Parent.Parent.opt.down then
  25. script.Parent.Parent.opt.down.ImageColor3 = Color3.new(1,1,1)
  26. end
  27. script.Parent.Parent.opt.add.ImageColor3 = Color3.new(1,1,1)
  28. if selected ~= script.Parent.Parent.opt.up then
  29. spawn(function()
  30. for i=1,10 do
  31. script.Parent.Parent.opt.up.ImageColor3 = Color3.new(1 - (i*.1),1-((8.5*i)/255),1 - (i*.1))
  32. wait()
  33. end
  34. end)
  35. end
  36. end)
  37.  
  38. script.Parent.Parent.opt.up.MouseLeave:connect(function()
  39. if selected ~= script.Parent.Parent.opt.up then
  40. script.Parent.Parent.opt.up.ImageColor3 = Color3.new(1,1,1)
  41. end
  42. end)
  43.  
  44. script.Parent.Parent.opt:WaitForChild("down").MouseEnter:connect(function()
  45. if selected ~= script.Parent.Parent.opt.up then
  46. script.Parent.Parent.opt.up.ImageColor3 = Color3.new(1,1,1)
  47. end
  48. script.Parent.Parent.opt.add.ImageColor3 = Color3.new(1,1,1)
  49. if selected ~= script.Parent.Parent.opt.down then
  50. spawn(function()
  51. for i=1,10 do
  52. script.Parent.Parent.opt.down.ImageColor3 = Color3.new(1,1 - (i*.1),1 - (i*.1))
  53. wait()
  54. end
  55. end)
  56. end
  57. end)
  58.  
  59. script.Parent.Parent.opt.down.MouseLeave:connect(function()
  60. if selected ~= script.Parent.Parent.opt.down then
  61. script.Parent.Parent.opt.down.ImageColor3 = Color3.new(1,1,1)
  62. end
  63. end)
  64.  
  65. script.Parent.Parent.opt:WaitForChild("add").MouseEnter:connect(function()
  66. if selected ~= script.Parent.Parent.opt.up then
  67. script.Parent.Parent.opt.up.ImageColor3 = Color3.new(1,1,1)
  68. end
  69. if selected ~= script.Parent.Parent.opt.down then
  70. script.Parent.Parent.opt.down.ImageColor3 = Color3.new(1,1,1)
  71. end
  72. spawn(function()
  73. for i=1,10 do
  74. script.Parent.Parent.opt.add.ImageColor3 = Color3.new(1 - (i*.1),1- ((i*4.2)/255),1)
  75. wait()
  76. end
  77. end)
  78. end)
  79.  
  80. script.Parent.Parent.opt.add.MouseLeave:connect(function()
  81. script.Parent.Parent.opt.add.ImageColor3 = Color3.new(1,1,1)
  82. end)
  83.  
  84. script.Parent.Parent.opt.add.MouseButton1Down:connect(function()
  85. if script.Parent.Parent.add.Visible == false then
  86. script.Parent.Parent.opt.add.ImageColor3 = Color3.new(1,1,1)
  87. game.ReplicatedStorage.musicEvents.purchaseSong:FireServer()
  88. end
  89. end)
  90.  
  91. script.Parent.Parent.opt.up.MouseButton1Down:connect(function()
  92. game.ReplicatedStorage.musicEvents.voteYes:FireServer()
  93. selected = script.Parent.Parent.opt.up
  94. script.Parent.Parent.opt.up.ImageColor3 = Color3.new(0, 170/255, 0)
  95. end)
  96.  
  97. script.Parent.Parent.opt.down.MouseButton1Down:connect(function()
  98. game.ReplicatedStorage.musicEvents.voteNo:FireServer()
  99. selected = script.Parent.Parent.opt.down
  100. script.Parent.Parent.opt.down.ImageColor3 = Color3.new(1,0,0)
  101. end)
  102.  
  103. warn("Music player by Wizzy011")
  104.  
  105. script.Parent.Parent:WaitForChild("add"):WaitForChild("TextButton").MouseButton1Down:connect(function()
  106. if script.Parent.Parent.add.TextBox.Text ~= "" then
  107. game.ReplicatedStorage.musicEvents.addSong:FireServer(script.Parent.Parent.add.TextBox.Text)
  108. script.Parent.Parent.add.Visible = false
  109. end
  110. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement