Trouble with tostring or Leaderstats displaying in a TextLabel

Hey! I’ve been designing a game that lets you manage your medieval finances. Lately, when I tried to make a more formal display for the amount of coin you have, the textlabel didn’t have any text in it. I tried mixing in some text, but it was still blank. I’m referencing the leaderstats folder in the LocalPlayer by using WaitForChild, so I thought that was a cause for trouble. Here’s the localscript if you need it. There’s no errors in the Output.

local Player = game:GetService("Players")
local LocalPlayer = Player.LocalPlayer

local function count()
	local leaderstats = LocalPlayer:WaitForChild("leaderstats")
	local bizans = leaderstats:WaitForChild("Bizans")
	script.Parent.Text = tostring(bizans.Value) .. " Bizans"
	print(bizans.Value)
		
end

I really appreciate any help that can be done!

Thanks
PikeEnthusiast

I forgot to call my function. Sorry for the disturbance.

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