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

3 comments
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
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
Oh alright thanks