print(req)
print(req["DisplayName"])
print(req["Goal"])
			
print(string.format("%s %s/%s", string(req["DisplayName"]), string(0), string(req["Goal"])))

the table's contents:

local quest = {}

quest.Enabled = true

quest.Name = "Akkoza's Great Quest"
quest.Description = [[YOUR MOM!

GOTTEM!]]


quest.Requirements = {
	
	["BecomeGod"] = {
		["DisplayName"] = "become god.",
		["ValueType"] = "BoolValue",
		["Goal"] = true,
		["StartValue"] = false
	},
	
	["PlayerKill"] = {
		["DisplayName"] = "kill 3 other players",
		["ValueType"] = "NumberValue",
		["Goal"] = 3
	}
	
}



function quest:Reward(player)
	print("balls hahaha")
end

return quest

I have no issues when I print them individually, but as soon as I try combining them into a string [even w/o string.format], it gives me the error "attempt to call a table value"

2 comments

0

got answered on devforum, i had string instead of tostring

0

Edit your question's title to include "[Solved]" if you don't have an accepted answer to notify others that your question has been solved so that they don't have to waste time here trying to solve or are curious as to what the solution is. I have done it already, but just keep that in mind for future reference