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

why does my math.random not change the text of a gui? i did define all variabeles

while true do
	local r = math.random(1,8)
if r == 1 then
	print("2s")
		t = "Found a bug or have something to share? Join our group! (link is in the description)"
	end
if r == 2 then
	print("2ss")
		t = "Tip: Leveling up skills is important! "
	end
if r == 3 then
	print("sss2")
		t = "Tip: Bosses can be tough, upgrade your sword to fight easier!"
	end
if r == 4 then
	print("2ssss")
		t = "Tip: Mining can be tough, upgrade your pickaxe to mine better ores and mine them faster!"
	end
if r == 5 then
	print("2sssss")
		t = "Tip: Digging can be tough, upgrade your shovel to dig faster!"
	end
if r == 6 then
	print("2ssssss")
		t = "Tip: If your really low, you can drink a potion before you die to reheal you! Or you can buy the 'fill healthbar' gamepass. "
	end
if r == 7 then
	print("2sssssss")
		t = "Tip: Bosses drop seldom loot"
	end
if r == 8 then
	print("2ssssssss")
		t = "Tip: Buying Gamepasses will help you alot, so will it to us!"
	end
	wait(3)

end


so i am trying to make like it shows tips inside a game and this is in a loading screen btw but it never works it never write the text. please help me thank you

5 comments

0

Replace "t" with a path to your text

0

i did i didnt show it its local t = script.Parent.Tips.Text

0

Like this "script.Parent.Text="Found a bug or have something to share? Join our group! (link is in the description)". This case is used when the script is found in the TextLable

0

Then replace all "t" values ??with "script.Parent.Tips.Text"

0

thank you ZaharKor12 i changed the t to script.Parent.Tips.Text and it worked tysm!!

1 answer

so basically i changed the value t to where the text is

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