Doing the script below allows me to make a chat bubble consisting of the message I want on top of anything
chatService:Chat(npc:FindFirstChild("Head"),message,Enum.ChatColor.Red)
However, how do I remove the chat bubble after for example 3 seconds? I can’t seem to find the chat bubble object in the workspace and I do not know how to delete it.
Thanks.
Forummer
(Forummer)
August 8, 2022, 5:07pm
#3
It’s possible to achieve this by listening for children to be added to the default ‘BubbleChat’ gui, this ‘ScreenGui’ instance acts as a container for all of the drawn chat bubbles.
local Enumeration = Enum
local Game = game
local Chat = Game:GetService("Chat")
local Players = Game:GetService("Players")
local Player = Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local PlayerGui = Player:FindFirstChildOfClass("PlayerGui") or Player:WaitForChild("PlayerGu…
You probably want the bubble’s duration to be dependent on the length of the message.
Tysm! I wish i’d be able to only set bubble chat duration for npcs and keep the original duration for players tho