Unable to declare more than one command inside BubbleChatSettings. I don’t see any problem here but it is giving me this error.
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.
1 Like
CZXPEK
(czo)
#2
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
ValiantWind
(ValiantWind)
#3
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