I’m trying to make a script that writes text similar to a typewriter with one word at a time. I want to change it to fit on a SurfaceGui but it does not work. Here’s the script:
local text = "TestText"
for i = 1, #text do
script.Parent.TextLabel.Text = string.sub(text, 1, i)
wait()
end
For some reason the text does not appear on a SurfaceGui but it does appear on a ScreenGui. Anyone know what’s up?
Did you placed the SurfaceGui in the right direction?
It could be that you faced it in the wrong direction so you can’t see it from the side you are looking on it
LocalScripts do not run in places outside of ReplicatedFirst, a descendant of player (PlayerGui, Backpack, etc), or the player’s character. As much as I hate using Scripts to manipulate UI, a Script is your only choice here. You could even do it client-side by putting the LocalScript in an appropriate location.