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

TextLabel is not changing?

Asked by 3 years ago

My localscript is not changing the text, no errors in the output or anything I have no idea why so i just decided to ask here whats the problem? What i want to do here is change everybodies text with the typewrite effect

for i,v in pairs (game.Players:GetPlayers()) do
local TextLabel= v.PlayerGui.ScreenGui.TextLabel
    local function typewrite(object, text, length)
        for i = 1,#text,1 do
            object.Text = string.sub (text,1,i)
            workspace["UnderTale - Text Sound(Fixed)"]:Play()
            wait(length)
            TextLabel.Visible = true
        typewrite(TextLabel, "Text")
        wait(1)
        typewrite(TextLabel, "Text2")
        wait(1)
        typewrite(TextLabel, "Text3.")
            wait(3)
            TextLabel.Visible = false
            TextLabel.Text = "-"
        end
    end
end
0
A Server Script cannot see the content of the player's PlayerGui. And a LocalScript can only see the content of it's own player's PlayerGui Spjureeedd 385 — 3y
0
And you're calling your function inside itself, I haven't coded in a while but I'm pretty sure that's an infinite loop Spjureeedd 385 — 3y
0
Oh alright thanks YuiiIsOld 13 — 3y

Answer this question