local TextChatService = game:GetService("Chat")
task.wait(1)
for i,v in pairs(script.Parent:GetChildren()) do
if v:IsA("Model") then
local head = v:FindFirstChild("Head")
print(head)
TextChatService:Chat(head, "Final hunt!")
end
end
This is the script. It gets the model in the folder, and then uses TCS to display a bubble. But it wont show the bubble. IDK WHAT TO DO IVE BEEN RESEARCHING FOR 5 HOURS
Because you’re using deprecated service.
you should use Text Chat Service Instead.
also you use try to get player model using script.parent assuming it’s in player character then script.parent mean the character model not the workspace you should use script.parent.parent
Using display bubble method set the first argument to character model
( obtain from playerservice.player you want.Character ) or part you want to make it talk.
local TextChatService = game:GetService("TextChatService")
task.wait(1)
for i,v in pairs(script.Parent.Parent:GetChildren()) do
if v:IsA("Model") then
local Head = v:FindFirstChild("Head")
if not Head then return end
TextChatService:DisplayBubble(Head, "Final hunt!")
end
end
this script is assuming you put it in startercharacter or character model.
but to make it better you should put this into workspace and then change from i,v in pairs(script.Parent.Parent:GetChildren()) do to for i,v in pairs(script.Parent:GetChildren()) do
Happy Scripting!
local TextChatService = game:GetService("TextChatService")
task.wait(1)
for i,v in pairs(workspace.class:GetChildren()) do
if v:IsA("Model") then
local Head = v:FindFirstChild("Head")
if not Head then return end
print(Head)
TextChatService:DisplayBubble(Head, "Final hunt!")
end
end
Still does not show any chat bubbles or anything. it prints out the head correctly too. This has to be a roblox issue because there is literally no reason this should not work
local TextChatService = game:GetService("Chat")
task.wait(1)
for i,v in pairs(workspace.class:GetChildren()) do
if v:IsA("Model") then
local Head = v:FindFirstChild("Head")
if not Head then return end
print(Head)
TextChatService:Chat(Head, "Final hunt!")
end
end