you could have a typewriter function which types the text,using string.sub(), so lets say you want the script to activate 10 seconds into the game, we need a function to type the text and make it wait 10 seconds. place this script into the text UI
01 | local function TypeText(Txt, TimeToType, UI) |
02 | local TextLength = string.len(Txt) |
03 | local TimeToWait = TextLength / TimeToType |
04 | if not UI:IsA( "TextLabel" ) or not UI:IsA( "TextBox" ) or not UI:IsA( "TextButton" ) then |
05 | error ( "Script Error: UI is Not A TextLabel, TextButton, Or TextBox" ) |
06 | elseif UI:IsA( "TextLabel" ) or UI:IsA( "TextBox" ) or UI:IsA( "TextButton" ) then |
07 | for textCount = 1 , TextLength, 1 do |
08 | UI.Text = string.sub(Txt, 1 , i) |
16 | TypeTxt( "Welcome To PlaceName!" , 3 , script.Parent) |
20 | local Distance = (workspace.ShopPart.Position - game.Players.LocalPlayer.Character.HumanoidRootPart.Position).magnitude |
25 | TypeTxt( "Welcome To The Shop!" , 2.5 , game.StarterGui.ShopTextThingy) |