Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago
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?

0
just add extra space before A.M. Time.Value..":".."00".." A.M.".."[Day Shift]" Yuuwa0519 197 — 4y
0
i tried that trickortreat333444 -6 — 4y

1 answer

Log in to vote
1
Answered by
Ziffixture 6913 Moderation Voter Community Moderator
4 years ago
Edited 4 years ago

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]"
0
Remember to accept this answer if it helped Ziffixture 6913 — 4y
0
+1 EmbeddedHorror 299 — 4y
Ad

Answer this question