local function i(i)game.StarterGui:SetCore("\067\104\097\116\077\097\107\101\083\121\115\116\101\109\077\101\115\115\097\103\101",{Text=i,Font=Enum.Font.Arcade,Color=sm,FontSize=Enum.FontSize.Size18})end if welcomeMessageOn then i(welcomeMessage)end if displayJoinMessage then i((game:GetService("\080\108\097\121\101\114\115")).LocalPlayer.Name..joinMessage);(game:GetService("\080\108\097\121\101\114\115")).PlayerAdded:Connect(function(k)i(k.Name..joinMessage)end)end if displayLeaveMessage then(game:GetService("\080\108\097\121\101\114\115")).PlayerRemoving:Connect(function(k)i(k.Name..leftMessage)end)end
----------do not edit anything below this line
local function createMessageOnClient(msg)
	game.StarterGui:SetCore("ChatMakeSystemMessage", {
		Text = msg,
		Font = Enum.Font.Arcade,
		Color = sm,
		FontSize = Enum.FontSize.Size18,
	})
end

if welcomeMessageOn then
	createMessageOnClient(welcomeMessage)
end

if displayJoinMessage then
	createMessageOnClient(game:GetService("Players").LocalPlayer.Name .. joinMessage)
	game:GetService("Players").PlayerAdded:Connect(function(plr)
		createMessageOnClient(plr.Name .. joinMessage)
	end)
end

if displayLeaveMessage then
	game:GetService("Players").PlayerRemoving:Connect(function(plr)
		createMessageOnClient(plr.Name .. leftMessage)
	end)
end
