I have created a script that is supposed to type out the text in the bubblechat text box when you send a message. That isnt happening. Everything else the script does works fine, but instead of typing out the message, it just puts a delay before the bubblechat appears, and the message appears all at once like it normally would, as if the script isnt doing anything. The script itself isnt running into any errors.
local TextChatService = game:GetService(“TextChatService”)
local Players = game:GetService(“Players”)TextChatService.OnBubbleAdded = function(message: TextChatMessage, adornee: Instance)
if message.TextSource then
local bubbleProperties = Instance.new(“BubbleChatMessageProperties”)
bubbleProperties.BackgroundTransparency = 0
bubbleProperties.BackgroundColor3 = Color3.new(0,0,0)
–bubbleProperties.TextSize = 20
bubbleProperties.TextColor3 = Color3.new(1, 1, 1)
bubbleProperties.TailVisible = truelocal sounds = {} for i, child in pairs(script:GetChildren()) do if child:IsA("Sound") then table.insert(sounds, child) end end local function typeText(text) print(text) for i = 1, #text do bubbleProperties.Text = string.sub(text, 1, i) sounds[math.random(1, #sounds)]:Play() wait() end end typeText(message.Text) return bubblePropertiesend
end
Any help with this would be appreciated and thank you for your time!