Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to connect things with ".." but with more spaces?

local Clock = game.Lighting.ClockTime
local Time = script.Parent.Time
local PlayerGui = game.Players.LocalPlayer.PlayerGui
local TextLabel = PlayerGui.ScreenGui.TextLabel


while true do
	if Clock <= 14 then
		
		Time.Value = 6
		
		TextLabel.Text = Time.Value..":".."00"     ..                  "A.M."       ..                   "[Day Shift]"

	
	
	end
	
end




















I need to basically make it so that the "00" doesn't stick with "A.M." Can anyone help me?

2 comments

0

just add extra space before A.M. Time.Value..":".."00".." A.M.".."[Day Shift]"

0

i tried that

1 answer

The spaces you desire to have within the string, are supposed to be defined as characters alongside the rest, attempting to do so by splitting the joining syntax, with cause an error of syntax itself, what you're looking for is this format:

TextLabel.Text = Time.Value..":".."00".." AM".." [Day Shift]"

2 comments

0

Remember to accept this answer if it helped

0

+1

This discussion is preserved as it was. New answers, comments, and votes are closed.