Making a message in chat but don't know how

as yesterday that there was not so much replies of my topic that i was making a message in chat, now i have a script that makes a message at the chat, i have a table that i stored all the names of difficulties, a script of making the chat message, but the issue is that i don’t know a way to get the values of the table and replace as the name of the difficulty, i will send images later so you can identify what i m saying

later, LUIZVAG

in StarterGui:
Create local script and:

game.StarterGui:SetCore(“ChatMakeSystemMessage”, {
Text = “”
Color = Color3.new()
})

i already have this and know how, but i explained that i have a table that stores the values of the difficulties, the number 3 is the effortless difficulty, also it’s an obby game, but thanks for replying

game.Players.Chatted:Connect(function(mess)
if mess == “” then
– code
end
end)

i can send photos so you can see the script

the image 1

the image 2

the image 3

i think it’s better to identify what i can do

You just can copy script and paste in your scripts.

yes, because i m a starter at programming, what i can do for it?

I too starter programmer, but you can create var with localScript.Source() or Script.Source()
and get string number in your code i think

i will try, thanks for reading

local s = LocalScript.Source()
local attribute = s.NumberToWorld[0]

use a module script and just require/get the table.

i will see it, i m doing this right now, i will try both the solutions that you two have suggested, but thanks for replying