Advertisement
Sinderblock

[LUA] Piano

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