I want to make a TextLabel display a word on letter at a time. NOT like the following!
game.StarterGui.ScreenGui.Textlabel.Text = "E" wait(0.1) game.StarterGui.ScreenGui.Textlabel.Text = "EX" wait(0.1) game.StarterGui.ScreenGui.Textlabel.Text = "EXA" wait(0.1) game.StarterGui.ScreenGui.Textlabel.Text = "EXAM" wait(0.1) game.StarterGui.ScreenGui.Textlabel.Text = "EXAMP" wait(0.1) game.StarterGui.ScreenGui.Textlabel.Text = "EXAMPL" wait(0.1) game.StarterGui.ScreenGui.Textlabel.Text = "EXAMPLE"
Use a loop:
local text = "EXAMPLE"; for i = 1,#text do textlabel.Text = text:sub(1,i); wait(0.1); end
game.Players.LocalPlayer.PlayerGui.ScreenGui.Textlabel.Text = "E" wait(0.1) game.Players.LocalPlayer.PlayerGui.ScreenGui.Textlabel.Text = "EX" wait(0.1) game.Players.LocalPlayer.PlayerGui.ScreenGui.Textlabel.Text = "EXA" wait(0.1) game.Players.LocalPlayer.PlayerGui.ScreenGui.Textlabel.Text = "EXAM" wait(0.1) game.Players.LocalPlayer.PlayerGui.ScreenGui.Textlabel.Text = "EXAMP" wait(0.1) game.Players.LocalPlayer.PlayerGui.ScreenGui.Textlabel.Text = "EXAMPL" wait(0.1) game.Players.LocalPlayer.PlayerGui.ScreenGui.Textlabel.Text = "EXAMPLE"