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

Displaying A Variable in a GUI instead of a String?

Asked by 6 years ago

About this function...

function ChangeText(text)
    for _,v in pairs (game.Players:GetPlayers()) do
        if type(text) == "string" then
            v.PlayerGui.ScreenGui.TextLabel.Text = text
        elseif type(text) == "number" then
            _.PlayerGui.ScreenGui.TextLabel.Text = tostring(text)
        end
    end
end

Would this work? I need verification.

0
Hey, how about you try it out yourself? GIassWindows 141 — 6y
0
okay.... DeceptiveCaster 3761 — 6y

Answer this question