Hello there!
-
What do you want to achieve? Keep it simple and clear!
I want to create a custom Bubble Chat background and text color3 for the names of the players that will be specified in the script. -
What is the issue? Include screenshots / videos if possible!
Well the issue is that when i try to do it on myself it works but when i try to put the name of an another player such as “Player1” the script tells me that he doesn’t exist A.K.A “(PlayerName) isn’t a valid member of Players” and I have tried to fix that by putting an else if the statement is false but it still doesn’t fix it… it would be nice if someone can help me I just want to at least know what I am supposed to do because I am confused as to how to make this work. -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I tried looking this up online but I couldn’t find any results.
The part of "BubbleChat" local script part that i'm editing (it works if I put my own name but it doesn't if I put anyone else's name) this is obviously not the entire script
function createChatBubbleMain(filePrefix, sliceRect)
local chatBubbleMain = Instance.new("ImageLabel")
chatBubbleMain.Name = "ChatBubble"
chatBubbleMain.ScaleType = Enum.ScaleType.Slice
chatBubbleMain.SliceCenter = sliceRect
chatBubbleMain.Image = "rbxasset://textures/" .. tostring(filePrefix) .. ".png"
if game.Players.Nerkonl then
chatBubbleMain.ImageColor3 = Color3.fromRGB(0,0,0)
elseif game.Players.Nerkonl == nil then
chatBubbleMain.ImageColor3 = Color3.fromRGB(255,255,255)
end
chatBubbleMain.BackgroundTransparency = 1
chatBubbleMain.BorderSizePixel = 0
chatBubbleMain.Size = UDim2.new(1.0, 0, 1.0, 0)
chatBubbleMain.Position = UDim2.new(0,0,0,0)
return chatBubbleMain
end
function createChatBubbleTail(position, size)
local chatBubbleTail = Instance.new("ImageLabel")
chatBubbleTail.Name = "ChatBubbleTail"
chatBubbleTail.Image = "rbxasset://textures/ui/dialog_tail.png"
if game.Players.Nerkonl then
chatBubbleTail.ImageColor3 = Color3.fromRGB(0,0,0)
elseif game.Players.Nerkonl == nil then
chatBubbleTail.ImageColor3 = Color3.fromRGB(255,255,255)
end
chatBubbleTail.BackgroundTransparency = 1
chatBubbleTail.BorderSizePixel = 0
chatBubbleTail.Position = position
chatBubbleTail.Size = size
return chatBubbleTail
end