Roblox How To | Random Tip/Hint GUI (V3)

Опубликовано: 04 Октябрь 2024
на канале: OnFireRobloxScripting
1,600
30

This is the third and hopefully last time I'll have to update this tutorial. Everytime I make one, someone in the comment section points out where it could be more efficient. Music used at the bottom of the description!

I ditched the traditional red background blue textboxes. Idk why, I just wanted to change it up a bit.

Changed from last time:
- wait integrated into the loop
- wait() is now task.wait()
- tips are in a table

My Discord server:   / discord  

Make sure to like and subscribe if you enjoyed it or if this video helped :)

Script (put under any text label and it will work):
local tips = {
"Did you know that [insert fun fact]",
"Welcome to my game",
"Don't ever use discord light mode",
"Hello"
}

while task.wait(10) do
local textlabel = script.Parent
local randomtip = math.random(1,4)
if randomtip == 1 then
textlabel.Text = "Tip: "..tips[1]
end
if randomtip == 2 then
textlabel.Text = "Tip: "..tips[2]
end
if randomtip == 3 then
textlabel.Text = "Tip: "..tips[3]
end
if randomtip == 4 then
textlabel.Text = "Tip: "..tips[4]
end
end

Song 1: Cartoon - On & On (feat. Daniel Levi) [NCS Release]
Music provided by NoCopyrightSounds
Free Download/Stream: http://ncs.io/onandon
Watch:    • Cartoon, Jéja - On & On (feat. Daniel...  

Music License: https://www.bensound.com/ (Song 2, called summer)

Tags: #onfirerobloxscripting #roblox #robloxstudio #tutorial #howto