Why is my text not showing

I am making a rebirth system and this is my menu organiser script. When I test it in game the frame and the button both show but both texts don’t. Can anyone help me?



02f71441adc379dc616ab4a27f8f7b8a

1 Like

is it a local script? You need a local script to change guis

Where’s the issue at ?

Char limit

Yeah it’s a local script but for some reason the text wont show up

It doesn’t show any errors but text wont show but the frame and button both do.
fc36b3cfdfb70121e3e04159722f5f26

Maybe the text only updates when the rebirth count changes?

Try making the RebirthAmount and the cost both Visible.

If it says it’s already visible but not showing up, remove the lines that says:

script.Parent.Parent.RebirthAmount.Visible = false
script.Parent.Parent.cost.Visible = false

They are already visible but I don’t have them 2 lines in my script. I’m not sure on what’s causing the text to not pop up.

Try putting it on StarterGui with a script of:

script.Parent.MouseButton1Click:Connect(function()
	if script.Parent.Parent.Visible == false then -- Better use false.
		script.Parent.Parent.Visible = true
	elseif script.Parent.Parent.Visible == true then
		script.Parent.Parent.Visible = false
	end
end)

Does it set the text when a player first joins the game? I believe your code only updates the rebirths text when rebirths value is changed.

You Gave variable like this for rebirth leaderstats:WaitForChild(“Rebirths”)
and u said Rebirth.Changed. Ig you have to do like this Rebirths.Value.Changed

I tried this unfortunately it didn’t work. I might be missing a line or 2 in the script or I need to change stuff in the script I’m not to sure.

When i play the game the texts do load in on the explorer and there are no errors in the output but the 2 texts don’t show up on the Gui but the frame and button do.

Hey small thing for you It should be Rebirth.Changed in case .Changed works with object, not it value

I put the the 2 text’s underneath the button and now it says (RebirthAmount is not a valid member of Frame “1”) but it is in the frame Can anyone Help?


ece5663a70aad873f32cc73836a3fd35

Change newButton.cost.Text to script.Parent.cost.Text.

And remove all newButton even the local one that says local newButton which makes the bug appear but you have the Replace thing, right ?

It’s not, it’s in the TextButton.

Would it work cause the menuOrganiser script is in the StarterGui section. Cause for the Script to work the menuOrganiser script needs to be where it is and the frame for the Rebirth Button has to be in ReplicatedStorage.
2ecf0a49d05d0f1479b11db360ce31e2
489fae4b1f96137748e767ffabc2fac7da1762e0

Yeah, but, you can put a LocalFile to the game that you work on…

oh my bad yeah you are correct

Don’t worry I Fixed it. I didn’t want to but I had to change the way the Gui was Gonna be unfortunately. I might change it to the way I want it in the Future.