Advertisement
Guest User

Untitled

a guest
Oct 25th, 2014
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. screen = Instance.new("ScreenGui")
  2.  
  3. screen.Parent = me.PlayerGui
  4.  
  5. screen.Name = "Piano"
  6.  
  7.  
  8.  
  9. pos = 200
  10.  
  11.  
  12.  
  13. pos2 = 200
  14.  
  15.  
  16.  
  17. for i=0.4, 2, 0.1 do
  18.  
  19. pos = pos + 31
  20.  
  21. local p = Instance.new("TextButton")
  22.  
  23. p.Parent = screen
  24.  
  25. p.Size = UDim2.new(0, 30, 0, 85)
  26.  
  27. p.Position = UDim2.new(0,pos,0,300)
  28.  
  29. p.BackgroundColor3 = Color3.new(0.94,0.94,0.94)
  30.  
  31. p.Text = ""
  32.  
  33. local sound = Instance.new("Sound")
  34.  
  35. sound.Parent = game.Players
  36.  
  37. sound.Volume = 1
  38.  
  39. sound.Pitch = i
  40.  
  41. sound.SoundId = "rbxasset://sounds/uuhhh.wav"
  42.  
  43. p.MouseButton1Down:connect(function()
  44.  
  45. sound:play()
  46.  
  47. end)
  48.  
  49. end
  50.  
  51.  
  52.  
  53. for i=0.4, 2, 0.1 do
  54.  
  55. pos2 = pos2 + 31
  56.  
  57. local p = Instance.new("TextButton")
  58.  
  59. p.Parent = screen
  60.  
  61. p.Size = UDim2.new(0, 30, 0, 85)
  62.  
  63. p.Position = UDim2.new(0,pos2,0,405)
  64.  
  65. p.BackgroundColor3 = Color3.new(0.94,0.94,0.94)
  66.  
  67. p.Text = ""
  68.  
  69. local sound = Instance.new("Sound")
  70.  
  71. sound.Parent = game.Players
  72.  
  73. sound.Volume = 1
  74.  
  75. sound.Pitch = i
  76.  
  77. sound.SoundId = "rbxasset://sounds/uuhhh.wav"
  78.  
  79. p.MouseEnter:connect(function()
  80.  
  81. sound:play()
  82.  
  83. end)
  84.  
  85. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement