My text changing script used to work, i disabled it then re-enabled it and it no longer works

  1. What do you want to achieve? read topic

  2. What is the issue?
    everything used to work, it doesn’t throw any errors, and it does every print. yet it doesnt work

  3. What solutions have you tried so far? ive tried for over 3 hrs to fix this

here is my code

all the variables were defined earlier so dont worry

pcall(rebirths.Changed:Connect(function()
	for _, child in pairs(scrollingFrame:GetChildren()) do
		print("done0")
		if child:IsA("TextButton") then
			local rebirthsAmount = tonumber(child.Name)
			print("done1")
			child.clickPrice.Text = abbreviateNumber:Abbreviate(rebirthsAmount*100*((1)+rebirthsv/10)) 
			print("done2")
			child.clickPrice2.Text = (rebirthsAmount*100*((1)+rebirths.Value/10)) 
		end
	end
end)

it does every thing right except this line:

child.clickPrice.Text = abbreviateNumber:Abbreviate(rebirthsAmount*100 ((1)+rebirthsv/10))

it doesn’t change the text

AND YES I MADE AN ABBREVIATE MODULE ALREADY THATS NOT THE ISSUE

Bump! please help me!

(char limit 1111111111)

Does Abbreviate() return a s string or number?

thats what im testing… it always returns a string… (i use it in other scripts) except in this one

HuhGIF

function abbreviateNumber:Abbreviate(number)
	local text = tostring(math.floor(number))

thtas what it does

Can you show whole script? Also, you don’t need the pcall which might potentially be blocking errors

i tried it without pcall and it didnt throw an error either :confused:

ill send it to u in a message… im a lil protective of my scripts since we haven’t released our game yet

Are you referencing gui from StarterGui or PlayerGui?

I dint receive it unfortunately…

you should have it in your in-box

221212`31343