Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local id = "rbxassetid://5706402256"
- local waid = 1/4
- function convrang(x, minx, maxx, miny, maxy)
- return ((x - minx)/(maxx-minx))*(maxy - miny) + miny
- end
- local s = {4,5,6,4,8,4,6,4,3,5,6,3,8,3,6,3,2,5,6,2,8,2,6,2,1,5,6,1,8,1,6,5}
- print(math.min(table.unpack(s)))
- print(math.max(table.unpack(s)))
- --print(convrang(3-1, 0, 3, 0, 11+1))
- for i = 1,#s do
- local sound = Instance.new("Sound", owner.Character.Head)
- sound.SoundId = id
- sound.Pitch = 1.059463 ^ (s[i] + 30*0.5-1)
- --sound.Pitch = convrang(s[i], 1, 8, 0.5, 1)
- --local pitch = Instance.new("PitchShiftSoundEffect", sound)
- --pitch.Octave = convrang(s[i], 0, 8, 1, 1+1)
- sound:Play()
- task.wait(waid)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement