How to Change Text With String Value

I’m trying to change text with a text and string value.
You probably dont understand sorry for my english
here is code

local text = script.Parent
local gui = script.Parent.Parent
local StartValue = game:GetService(“ReplicatedStorage”).GameInfo.StartTime
db = 1

repeat
if StartValue.Value == 0 then
wait(1)
text.TextTransparency = 1
end
if StartValue.Value > 0 then
wait(1)
text.TextTransparency = 0
end
wait()
text.Text = text.Text [StartValue.Value]
until db == 0

I’m trying to write "Explode in (string value) in text

Can’t you do this in your case

text.Text = "Explode in " .. StartValue.Value

Also if this is a stringvalue your if statements wont work because it’ll be comparing a string to a number

2 Likes