Problem with chat script!

HI

i have a problem with all chat script in my game like joining and leaving text owner adming tags.
in other game this is work but idk why in my game all script in the chat categorie dont work.

THX For Help!!

2 Likes

can’t help you without seeing the script

2 Likes




Capture d’écran 2023-11-05 200413

1 Like

what are the errors in the output?

2 Likes

nothing this is weird

1 Like

give me a few seconds i will try this in a baseplate

1 Like

idk why it work on a other game i mad for practice

1 Like

and the owner admin tags dont work

1 Like

server scripts arent meant to be in startergui, (change the script to a localscript)

1 Like

let me know if this helps please

1 Like

it dont work

let me look over it one more time and see if i can change anything

it work for you ? gerjmgrjegrjrejg

I am fixing it, give me a minute

I found a fix let me send the script


it a chat problem with all my donate messsage dont work but in a other game i make it work

I found a fix im sending the script

Go to “TextChatService” and make sure that “ChatVersion” is LegacyChatService.

delete the old script (the one in startergui)

and put this in

image

local events = game.ReplicatedStorage.Events
local startGui = game.StarterGui

events.Joining.OnClientEvent:Connect(function(plr)
	game.StarterGui:SetCore("ChatMakeSystemMessage", {
		["Text"] = plr.Name.." Has joined the game",
		["Color"] = Color3.fromRGB(0, 255, 0),
		["Font"] = Enum.Font.SourceSansBold,
	})
end)

events.Leaving.OnClientEvent:Connect(function(plr)
	game.StarterGui:SetCore("ChatMakeSystemMessage", {
		["Text"] = plr.Name.." Has left the game",
		["Color"] = Color3.fromRGB(255, 0, 0),
		["Font"] = Enum.Font.SourceSansBold,
	})
end)

(let me know if it helps)

1 Like

where i need to put the script

Startergui, And make sure it is a LocalScript

1 Like