A quick question how to add text "" after using a value

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I need add ""text after using a value and before
  2. What is the issue? Include screenshots / videos if possible!
    Idk how to do that lol
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I tryed to add …"(text)"…
local PlayerService = game:GetService("Players")
local Player = PlayerService.LocalPlayer
local GuiService = Player.PlayerGui
local GameGUI = GuiService.GameGUI
local RNGBar = GameGUI.GameFrame.PlayableFrame.RNGBar
local RNGProgress = RNGBar.RNGP
local RNGBarFiller = RNGBar.Filler
local RNGClicker = script.Parent
local RNGMultiValue = script.Parent.RNGMulti
local RNGNumber = 0
local ClickWait = 0
local debounce = false
local RNGnumbern = 10
RNGClicker.MouseButton1Click:Connect(function()
	if debounce then
		return
	end
	debounce = true
	RNGNumber = math.random(1,10)
	RNGProgress.Text = RNGNumber
	ClickWait = 20
	repeat
		ClickWait -= 1
		RNGClicker.Text = math.round(ClickWait - 1)/10 -- need to add text here
		wait(0.1)
	until ClickWait <= 0.3
	ClickWait = 0
	RNGClicker.Text = "Click to Generate!"
	debounce = false
end)
1 Like

Oh, I see where you need to add text.

1 Like
local PlayerService = game:GetService("Players")
local Player = PlayerService.LocalPlayer
local GuiService = Player.PlayerGui
local GameGUI = GuiService.GameGUI
local RNGBar = GameGUI.GameFrame.PlayableFrame.RNGBar
local RNGProgress = RNGBar.RNGP
local RNGBarFiller = RNGBar.Filler
local RNGClicker = script.Parent
local RNGMultiValue = script.Parent.RNGMulti
local RNGNumber = 0
local ClickWait = 0
local debounce = false
local RNGnumbern = 10
RNGClicker.MouseButton1Click:Connect(function()
	if debounce then
		return
	end
	debounce = true
	RNGNumber = math.random(1,10)
	RNGProgress.Text = RNGNumber
	ClickWait = 20
	repeat
		ClickWait -= 1
		RNGClicker.Text = (math.round(ClickWait - 1)/10).."" --put extra text inside the quotes
		wait(0.1)
	until ClickWait <= 0.3
	ClickWait = 0
	RNGClicker.Text = "Click to Generate!"
	debounce = false
end)

In Lua you can use the ".." operator it’s called the concatenate operator and it allows you to join together 2 values (on either side of the operator) into a single string.

1 Like

just like i need make nimber which player got “/” and now value which player need to get point

2 Likes

Ohh this is why i didn’t got it i used 3 dots

Hmmm Syntax error:Malformed Number

1 Like
RNGClicker.Text = math.round(ClickWait - 1)/10.."/"

Ignore this post, not relevant anymore.

1 Like

Oh nvm forgot about () 30 lettersssss

Yeah, with the parentheses it should work as expected.

1 Like

Lol, just realised what this is wrong position of text, but thanks a lot

1 Like