generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Make a text appear letter by letter

Previous Thread :: Next Thread 
planesoldier is not online. planesoldier
Joined: 26 Sep 2010
Total Posts: 533
02 Oct 2014 11:40 AM
Hey There!

I want to do something like this:

script.Parent.Text = "H"
wait(0.1)
script.Parent.Text = "Hi"

However, when i do this with long sentences it takes ages to script this. Is there a faster way of doing this?

Thanks!
Planesoldier
Report Abuse
Vulnerite is not online. Vulnerite
Joined: 05 Nov 2007
Total Posts: 11492
02 Oct 2014 11:45 AM
string.sub

vulnerite AKA keith | tons of deleted accounts | i do stuff
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
02 Oct 2014 11:45 AM
for i = 1,10 do
string.sub("Hello World", i)
end


something like this
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
02 Oct 2014 11:48 AM
Hey again plane.

Txt = "Some text"
Label = script.Parent
for i = 1, Txt:len do
Label.Text = Label.Text..Txt:sub(i,i)
wait(0.1)
end
Report Abuse
Marolex is not online. Marolex
Joined: 17 Dec 2012
Total Posts: 1785
02 Oct 2014 12:14 PM
Txt = "Some text"
Label = script.Parent
for i = 1, Txt:len() do
Label.Text = Label.Text..Txt:sub(i,i)
wait(0.1)
end

forgot "()" after :len

~KingScrub
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
02 Oct 2014 12:53 PM
Ah, thanks.
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
02 Oct 2014 01:02 PM
I'm late but this is the way I would do it

function type(o, p, t)
for n = 1, #t do
o[p] = t:sub(1, n)
wait(0.03)
end
end


local h = Instance.new("Hint", workspace)
type(h, "Text", "Hello world!")

local m = Instance.new("Model", workspace)
type(m, "Name", "This is a model.")
Report Abuse
anaIyze is not online. anaIyze
Joined: 29 May 2014
Total Posts: 2048
02 Oct 2014 07:12 PM
Msg=function(_,__,___) -- string `string`, time `time`, removeTime `time`
local dt=.1
time=((__)or(.01)>dt)and(dt)or(__)or dt;
___=(___)or(4);
local m=Instance.new('Message',workspace);
for i=1,_:len''do
m.Text=_:sub(1,i)..(function()
local r='';
for x=i+1,_:len''do
r=r..tostring(math.random(0,9));
end;
return(r);
end)();
wait(__);
end;
game.Debris:addItem(h,___);
return(h);
end;
--//example:

Msg('SKJSFKJSHDFKSJFHSKJFHSDKFHSDKFJSBCJSDHFUEFHSDKF',1/30,4);
Report Abuse
newslate is not online. newslate
Joined: 10 Jun 2014
Total Posts: 217
02 Oct 2014 07:32 PM
that is so ugly oh my
Report Abuse
planesoldier is not online. planesoldier
Joined: 26 Sep 2010
Total Posts: 533
03 Oct 2014 12:34 AM
Thanks people!

I was sick of doing that for 30 minutes long.
Thanks :D!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image