Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do i Change certain part of the text and not the whole thing?


		Crate.Value = Crate.Value + 1
		Guiname.Text = "Crate.Value/10" -- i only want to change the Crate.Value to change not /10
		

This is Change only ScreenonGui Text

1 answer

✓ Accepted answer

You can concatenate the string inside the text box like so.

Crate.Value = Crate.Value + 1
Guiname.Text = ((Crate.Value).."/10")

For a future concept, you might want to give the "10" a value as well so it can be "upgraded" later on or easily changed.

Crate.Value = Crate.Value + 1

Guiname.Text = ((Crate.Value).."/"..(CrateMax.Value))  -- CrateMax is just another number value.

This discussion is preserved as it was. New answers, comments, and votes are closed.