#help

75 messages · Page 1 of 1 (latest)

harsh crest
#

I need help to make a script with some sentences that pop up at the bottom of the screen every 1 and a half minutes with tips for the game I can put the tips just need the script for the tips to show up and change

twilit idol
#

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.

quiet void
#

#tips counts how many elements are in tips

harsh crest
#

Thanks

quiet void
#

i also made it so it disappears in 10 seconds after appearing

harsh crest
#

Do I need to set up gui?

quiet void
#

put the script inside the text label

harsh crest
#

Okay

quiet void
#

because like

#

local textLabel = script.Parent

harsh crest
#

And change the “tip 1” and “tip 2” to whatever

quiet void
#

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

harsh crest
#

5

quiet void
#

or should i do it

harsh crest
#

I could try

#

What do i set the text to on the text label?

quiet void
#

just number

#

like

harsh crest
#

Okay

quiet void
#

[2] = "idk man"

#

in the end there must be a comma

#

unless its the last one

#

like
[1] = "tip 1",
[2] = "tip 2"

harsh crest
#

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

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

harsh crest
#

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)

quiet void
#

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

harsh crest
#

Oh mb

quiet void
#

with all is descedants

harsh crest
quiet void
#

why did you send me models idiot

harsh crest
#

Sorry

#

im new to dev

quiet void
#

idiot

#

do you not see this in the right of your screen

#

show me

#

means send a screenshot

quiet void
#

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

quiet void
#

second and third are children

#

second third and fourth are descedants

#

first is parent of second and third

#

third is parent of fourth

harsh crest
quiet void
#

ok now i see

harsh crest
#

Sorry

quiet void
#

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