Advertisement
iiWolfie

roblox boombox script

May 6th, 2016
1,881
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. local playb = Instance.new("TextButton",frame)
  2. playb.BackgroundColor3 = Color3.new(0,85/255,0)
  3. playb.BorderColor3 = Color3.new(0,0,0)
  4. playb.BorderSizePixel = 2
  5. playb.Size = UDim2.new(.3,0,.2,0)
  6. playb.Position = UDim2.new(.1,0,.7,0)
  7. playb.Text = "Play"
  8. playb.TextColor3 = Color3.new(255,255,255)
  9. playb.TextScaled = true
  10.  
  11. local stopb = Instance.new("TextButton",frame)
  12. stopb.BackgroundColor3 = Color3.new(170/255,0,0)
  13. stopb.BorderColor3 = Color3.new(0,0,0)
  14. stopb.BorderSizePixel = 2
  15. stopb.Size = UDim2.new(.3,0,.2,0)
  16. stopb.Position = UDim2.new(.6,0,.7,0)
  17. stopb.Text = "Stop"
  18. stopb.TextColor3 = Color3.new(255,255,255)
  19. stopb.TextScaled = true
  20.  
  21. local stipb = Instance.new("TextBox",frame)
  22. stipb.BackgroundColor3 = Color3.new(0,0,127/255)
  23. stipb.BorderColor3 = Color3.new(0,0,0)
  24. stipb.BorderSizePixel = 2
  25. stipb:TweenSize(UDim2.new(.5,0,.25,0),"Out","Quad",1,true)
  26. stipb.Position = UDim2.new(.25,0,.3,0)
  27. stipb.Text = "SoundId"
  28. stipb.TextColor3 = Color3.new(255,255,255)
  29. stipb.TextScaled = true
  30.  
  31. local label = Instance.new("TextLabel",frame)
  32. label.Text = "Made by Nuberzzz"
  33. label.TextScaled = true
  34. label:TweenSize(UDim2.new(1,0,.2,0))
  35. label.TextColor3 = Color3.new(255,255,255)
  36. label.BackgroundTransparency = 1
  37. --stipb.Size = UDim2.new(1,0,.2,0)
  38.  
  39. local Playing = false
  40.  
  41. stipb.Changed:connect(function()
  42. sound.SoundId = "rbxassetid://" .. stipb.Text
  43. end)
  44.  
  45. playb.MouseButton1Click:connect(function()
  46. sound:Play()
  47. Playing = true
  48. end)
  49.  
  50. stopb.MouseButton1Click:connect(function()
  51. sound:Stop()
  52. Playing = false
  53. end)
  54.  
  55. while true do
  56. if Playing then
  57. mesh.Scale = Vector3.new(1.1,1.1,1.1)
  58. wait(.2)
  59. mesh.Scale = Vector3.new(1,1,1)
  60. end
  61. wait(.2)
  62. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement