Message Not Showing Up

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I wanna make appear a message when player buy products
  2. What is the issue? Include screenshots / videos if possible!
    There is no message that appear after buying
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    rewriting the whole script in another way

Here is the current code used:


local bought = game.ReplicatedStorage.BuyingCurrencyEvents.Bought

local TextColorFontSize = {
	[300]  = {[1]="SourceSans" ,[2] =Color3.fromRGB(101, 177, 30), [3]=  "Size18",[4] =" has bought 300 Points !"};
	[1000]  = {[1]= "SourceSans",[2] =Color3.fromRGB(101, 177, 30), [3]=  "Size18",[4] =" has bought 1,000 Points !"};
	[2500]  = {[1]= "SourceSans",[2] =Color3.fromRGB(212, 151, 29), [3]=  "Size18",[4] =" has bought 2,500 Points !!"};
	[5000]  = {[1]= "SourceSansBold",[2] =Color3.fromRGB(212, 151, 29), [3]=  "Size18",[4] =" has bought 5,000 Points !!!"};
	[10000]  = {[1]= "SourceSansBold",[2] =Color3.fromRGB(34, 212, 212), [3]=  "Size18",[4] =" has bought 10,000 Points !!!!"};
	[20000]  = {[1]= "SourceSansBold",[2] =Color3.fromRGB(34, 212, 212), [3]=  "Size18",[4] =" has bought 20,000 Points !!!!!"};
	[25000]  = {[1]= "SourceSansBold",[2] =Color3.fromRGB(138, 54, 212), [3]=  "Size18",[4] =" has bought 25,000 Points !!!!!"};
	[30000]  = {[1]= "SourceSansBold",[2] =Color3.fromRGB(158, 50, 212), [3]=  "Size18",[4] =" has bought 30,000 Points !!!!!!"};
	[40000]  = {[1]= "SourceSansBold",[2] = Color3.fromRGB(162, 44, 212), [3]=  "Size18",[4] =" has bought the SUPER 40,000 Points pack !!!!!!"};
	[50000]  = {[1]="SourceSansBold" ,[2] = Color3.fromRGB(227, 20, 13), [3]=  "Size20",[4] =" HAS BOUGHT THE LEGENDARY 50,000 POINTS PACK !!!!!!!"};
}
-- Creation of a function for speeding the process
	
bought.OnClientEvent:Connect(function(player,amount)
	local setting = TextColorFontSize[amount]
	print(player,setting)
	game.StarterGui:SetCore("ChatMakeSystemMessage", {
		Text = player..setting[4],
		Color = setting[2],
		Font = Enum.Font[setting[1]],
		TextSize = Enum.FontSize[setting[3]]
	})
end)
		
	

Just wanna know where I’m wrong

try changing this to

Text = player.Name .. setting[4],

Still nothing, at the start, the remote event was already sending the player name, so I tried to send only the player instance and made : “Text = player.Name… setting[4]” but still nothing :confused:

it maybe the way your setting the other properties just try a basic message in the clientevent

Also the client event is printing the player and setting?

game.StarterGui:SetCore("ChatMakeSystemMessage", {
	Text = "[SERVER] " .. 'TestingMessage';
	Color = Color3.fromRGB(255, 0, 0);
	Font = Enum.Font.SourceSansBold; 
	TextSize = 18
})

I tried to put both, a simple and mine, the simple work, but not mine and I still cannot figure why, maybe my text cannot be send

Tried another version, but still nothing

local bought = game.ReplicatedStorage.BuyingCurrencyEvents.Bought

local TextColorFontSize = {
	[300] = {[1] = Enum.Font.SourceSans , [2] = Color3.new(0.396078, 0.694118, 0.117647), [3] = Enum.FontSize.Size18, [4] = " has bought 300 Points !"};
	[1000] = {[1] = Enum.Font.SourceSans, [2] = Color3.new(0.396078, 0.694118, 0.117647), [3] =  Enum.FontSize.Size18, [4] = " has bought 1,000 Points !"};
	[2500] = {[1] = Enum.Font.SourceSans, [2] = Color3.new(0.831373, 0.592157, 0.113725), [3] =  Enum.FontSize.Size18, [4] = " has bought 2,500 Points !!"};
	[5000] = {[1] = Enum.Font.SourceSansBold, [2] = Color3.new(0.831373, 0.592157, 0.113725), [3]  = Enum.FontSize.Size18, [4] = " has bought 5,000 Points !!!"};
	[10000] = {[1] = Enum.Font.SourceSansBold, [2] = Color3.new(0.133333, 0.831373, 0.831373), [3] = Enum.FontSize.Size18, [4] = " has bought 10,000 Points !!!!"};
	[20000] = {[1] = Enum.Font.SourceSansBold, [2] = Color3.new(0.133333, 0.831373, 0.831373), [3] = Enum.FontSize.Size18, [4] = " has bought 20,000 Points !!!!!"};
	[25000] = {[1] = Enum.Font.SourceSansBold, [2] = Color3.new(0.541176, 0.211765, 0.831373), [3] = Enum.FontSize.Size18, [4] = " has bought 25,000 Points !!!!!"};
	[30000] = {[1] = Enum.Font.SourceSansBold, [2] = Color3.new(0.619608, 0.172549, 0.831373), [3] = Enum.FontSize.Size18, [4] = " has bought 30,000 Points !!!!!!"};
	[40000] = {[1] = Enum.Font.SourceSansBold, [2] = Color3.new(0.635294, 0.172549, 0.831373), [3] =  Enum.FontSize.Size18, [4] = " has bought the SUPER 40,000 Points pack !!!!!!"};
	[50000] = {[1] = Enum.Font.SourceSansBold , [2] = Color3.new(0.890196, 0.0784314, 0.0509804), [3] = Enum.FontSize.Size24, [4] = " HAS BOUGHT THE LEGENDARY 50,000 POINTS PACK !!!!!!!"};
}
-- Creation of a function for the process

bought.OnClientEvent:Connect(function(player,amount)
	local setting = TextColorFontSize[amount]
	print(player,setting)
	
	
	game.StarterGui:SetCore("ChatMakeSystemMessage",{
		Text = player.. setting[4],
		Color = setting[2],
		Font = setting[1],
		TextSize = setting[3]
	})

end)

Okay Nvm the text is sended, but VERY VERY VERY SMALL xD
image

I’m trying to solve it

I finally found a solution, fontsize & textsize both were needed

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.