So I made this where if you type any text in the chat it’s gonna make a sound for each letter so like the sans thing from undertale. But how can I make the pitch randomized? Because it’s bland just at the same pitch and doesn’t sound good. How can I do that? Here is the script:
local sound = script.Sound
game:GetService("Players").PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(msg)
for i = 1,#msg do
sound:Play()
sound.Ended:Wait()
end
end)
end)
Here is what it would look like in the explorer
and here is what the script would contain this
if you would like me to explain further i could
the script inside the sfx is just for demonstration
I believe if you just add the PS.Octave = math.random(1,10)/10 below or any of the Sound:Play() or inside of those 2 lines it should randomize each time