Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 2 years ago
Edited 2 years ago
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

0
Replace "t" with a path to your text ZaharKor12 12 — 2y
0
i did i didnt show it its local t = script.Parent.Tips.Text theweirdcrusher 0 — 2y
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 ZaharKor12 12 — 2y
0
Then replace all "t" values ??with "script.Parent.Tips.Text" ZaharKor12 12 — 2y
0
thank you ZaharKor12 i changed the t to script.Parent.Tips.Text and it worked tysm!! theweirdcrusher 0 — 2y

1 answer

Log in to vote
0
Answered by 2 years ago

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

Ad

Answer this question