local Players = game:GetService(“Players”)
local SoundService = game:GetService(“SoundService”)
local function playChatSoundForLetter(player, message)
local character = player.Character
if character then
local head = character:FindFirstChild(“Head”)
if head then
for i = 1, #message do
local randomPitch = math.random(9,10)
local letter = message:sub(i, i)
local sound = Instance.new(“Sound”)
sound.Parent = head
sound.SoundId = “rbxassetid://13664620552”
sound.Volume = 1
sound.RollOffMaxDistance = 50
sound:Play()
sound.PlaybackSpeed = (randomPitch / 10)
head.Face.Texture = “rbxassetid://14774529510”
wait(0.1)
head.Face.Texture = “rbxassetid://14747411629”
sound:Destroy()
end
end
end
end
local Players = game:GetService(“Players”)
local textchatService = game:GetService(“TextChatService”)
local chatEvent = game.ReplicatedStorage.ChatEvent
local function playChatSoundForLetter(player, message)
local character = player.Character
if character then
local head = character:FindFirstChild(“Head”)
if head then
for i = 1, #tostring(message) do
local randomPitch = math.random(9, 10)
local letter = tostring(message):sub(i, i)
local sound = Instance.new(“Sound”)
sound.Parent = head
sound.SoundId = “rbxassetid://13664620552”
sound.Volume = 1
sound.RollOffMaxDistance = 50
sound:Play()
sound.PlaybackSpeed = (randomPitch / 10)
head.Face.Texture = “rbxassetid://14774529510”
wait(0.1)
head.Face.Texture = “rbxassetid://14747411629”
sound:Destroy()
end
end
end
end