Unable to declare more than one command inside BubbleChatSettings

image

Unable to declare more than one command inside BubbleChatSettings. I don’t see any problem here but it is giving me this error.
image

local ChatService = game:GetService("Chat")
ChatService.BubbleChatEnabled = true

local bubbleChatSettings = {
	LocalPlayerStudsOffset = Vector3.new(0,0,2)
	AdorneeName = "ui" 
}
ChatService:SetBubbleChatSettings(bubbleChatSettings)

it gets fixed when I remove any of my lines.
image

image

1 Like

you need to add a comma at the end because its a table

local ChatService = game:GetService("Chat")
ChatService.BubbleChatEnabled = true

local bubbleChatSettings = {
	LocalPlayerStudsOffset = Vector3.new(0,0,2),
	AdorneeName = "ui" 
}
ChatService:SetBubbleChatSettings(bubbleChatSettings)
2 Likes

You’re missing a comma at the end of line 5.

Try this:

local ChatService = game:GetService("Chat")
ChatService.BubbleChatEnabled = true

local bubbleChatSettings = {
	LocalPlayerStudsOffset = Vector3.new(0, 0, 2), -- Comma is needed here
	AdorneeName = "ui" 
}
ChatService:SetBubbleChatSettings(bubbleChatSettings)
1 Like