#help
75 messages · Page 1 of 1 (latest)
Thanks for your question :clap:, if someone gives you an answer it would be great if you thanked them with a :white_check_mark: in response. This response will earn you both points for special roles on this server.
local tips = { -- you can put your own tips here
[1] = "tip 1",
[2] = "tip 2"
}
local textLabel = script.Parent
while task.wait(80) do
local rng = math.random(1, #tips)
textLabel.Text = tips[rng]
task.wait(10)
textLabe.Text = ""
end
#tips counts how many elements are in tips
Thanks
i also made it so it disappears in 10 seconds after appearing
Do I need to set up gui?
put the script inside the text label
Okay
And change the “tip 1” and “tip 2” to whatever
i mean you could do that yourself
you can also add more tips
it will work with like 10 or 20
or how much you want
5
Okay
[2] = "idk man"
in the end there must be a comma
unless its the last one
like
[1] = "tip 1",
[2] = "tip 2"
Okay
Works great thx!
Is there a easy script to add to a gui that keeps in invisible until you join the game so that it is easier to develop and we dont have to make is visible again
@quiet void
oh
can you show me your gui with all the descedants of it
@ec
@harsh crest
i will see what i can do
Okay
Coin stat script:
local CoinsLabel = script.Parent
local function onCoinsChanged(newValue)
CoinsLabel.Text = "Coins: " .. tostring(newValue)
end
local player = game.Players.LocalPlayer
local leaderstats = player:WaitForChild("leaderstats")
local Coins = leaderstats:WaitForChild("Coins")
onCoinsChanged(Coins.Value)
Coins.Changed:Connect(function(newValue)
onCoinsChanged(newValue)
end)
Stage stat script:
local CoinsLabel = script.Parent
local function onCoinsChanged(newValue)
CoinsLabel.Text = "Stage: " .. tostring(newValue)
end
local player = game.Players.LocalPlayer
local leaderstats = player:WaitForChild("leaderstats")
local Coins = leaderstats:WaitForChild("Stage")
onCoinsChanged(Coins.Value)
Coins.Changed:Connect(function(newValue)
onCoinsChanged(newValue)
end)
what did you send me
i told you to give me the gui you want to be visible when you join
like in the explorer
Oh mb
with all is descedants
why did you send me models idiot
idiot
do you not see this in the right of your screen
show me
means send a screenshot
do you even know whats a descedant
you know like
a folder has stuff in it
instances can have other instances inside them
instances inside an instance are children
but they are also descedants
descedants involve instances that are inside instances of the instance
like here
second and third are children
second third and fourth are descedants
first is parent of second and third
third is parent of fourth
ok now i see
Sorry
ok so in TextLabel
you want to turn off visible in the settings for it
wait
local tips = { -- you can put your own tips here
[1] = "tip 1",
[2] = "tip 2"
}
local textLabel = script.Parent
while task.wait(80) do
local rng = math.random(1, #tips)
textLabel.Text = tips[rng]
textLabel.Visible = true
task.wait(10)
textLabel.Visible = false
end
replace the old code with this
if there are any errors in the script tell me