Table not printing full array

hello everyone,

for some reason, i’m having trouble with printing a table with certain indexes and values
in this case, i want to print the following

print({
	SprintingSpeed = character.SprintSpeed,
	CurrentStamina = character.Stamina,
	MaxStamina = character.Stamina,
	StaminaGainPerSec = character.SpeedGainPerSec,
	StaminaLossPerSec = character.SpeedLossPerSec,
	OriginalWalkSpeed = character.WalkSpeed
})

character is referred to as the following table:

return {
	WalkSpeed = 16,
	Stamina = 150,
	StaminaLossPerSec = 10,
	StaminaGainPerSec = 20,
	SprintSpeed = 26,
	Name = "JX1DX1",
	Model = script.JX1DX1,
	Type = "Character",
	Cost = 0,
	Abilities = {
		require(script.Punch),
		require(script.Minion),
		require(script.Dash),
		require(script.Scream)
	},
	Skins = {
		["=)"] = require(script["=)"]),
		--require(script.Test)
	},
	RoundFunctions = {
		OnStun = function(Killer: Player)
			print("changed function "..Killer.Name)
		end,
	}
}

one of the missing values is, for example, StaminaLossPerSec

any help would be appreciated thanks!

Are you referring to the fact that you can’t print a table directly? When you print a table, it shows its “identification” rather than the contents inside of it. To print a table, you should use JsonEncode(table) and print it. HttpService | Documentation - Roblox Creator Hub

when you reference the value, you reference it as SpeedLossPerSec, when it should be StaminaLossPerSec, as thats what its stored as in the character table:

1 Like

Yea, didn’t understand this either

little mistakes make big mistakes
thank you very much

2 Likes