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: Table

Previous Thread :: Next Thread 
Zeloi is not online. Zeloi
Joined: 27 Sep 2010
Total Posts: 1143
22 May 2014 03:28 PM
How would I have text slowly appear letter by letter.

so it goes like...

a
aw
awe
awes
aweso
awesome

like every 1/3 of a second the following letter would appear.
Report Abuse
VerifiedName is not online. VerifiedName
Joined: 26 Jul 2009
Total Posts: 4534
22 May 2014 03:29 PM
you said earlier that you knew how to do some scripting.




you were obviously lying.
Report Abuse
Stefan631 is not online. Stefan631
Joined: 23 Dec 2010
Total Posts: 1350
22 May 2014 03:29 PM
a = "Message"
for i = 1, a:len() do
print(a:sub(1, i))
end

No clue if that will work lol.
Report Abuse
Stefan631 is not online. Stefan631
Joined: 23 Dec 2010
Total Posts: 1350
22 May 2014 03:31 PM
a = "Message"
for i = 1, a:len() do
print(a:sub(1, i))
end

Or

a = "Message"
for i = 1, a:len() do
print(a:sub(1, i))
wait(.33)
end
Report Abuse
FreeScriptMaker is not online. FreeScriptMaker
Joined: 29 Nov 2013
Total Posts: 2275
22 May 2014 03:31 PM
print(a:sub(1, i))

Should be

print(a:sub(i, i))
Report Abuse
Zeloi is not online. Zeloi
Joined: 27 Sep 2010
Total Posts: 1143
22 May 2014 03:38 PM
@VerifiedName

If I'm not experienced with scripting how did I make this?

Fram = script.Parent.Parent:WaitForChild("Option")

open = false
debounce = false

script.Parent.MouseButton1Up:connect(function()
if open == false and not debounce and Fram.Parent.Value.Value == false then
debounce = true
Fram.Parent.Value.Value = true
Fram.Visible = true
Fram.Position = UDim2.new(0.5, -250, -2, 0)
Fram:TweenPosition(UDim2.new(0.5,-250,0.5,-300),"Out","Back",1/2)
wait(1)
script.Parent.Text = "CLOSE"
open = true
debounce = false
else
Fram.Parent.Value.Value = false
Fram:TweenPosition(UDim2.new(0.5, -200, -2, 0),"Out","Linear",1/2)
wait(1)
Fram.Visible = false
script.Parent.Text = "OPTIONS"
open = false
debounce = false
end
end)

Some people could be amazing at scripting and not know how to do something.
Report Abuse
DeSpizer27 is not online. DeSpizer27
Joined: 13 Jul 2012
Total Posts: 2679
22 May 2014 03:39 PM
@Zeloi, that's not advanced scripting at all, but I'll give you a break since string manipulation can be a little challenging for those who are new to it.
Report Abuse
Stefan631 is not online. Stefan631
Joined: 23 Dec 2010
Total Posts: 1350
22 May 2014 03:44 PM
@FreeScriptMaker,

He said he wanted it like

M
Me
Mes
Mess
Messa
Messag
Message

Not
M
e
s
s
a
g
e
Report Abuse
FreeScriptMaker is not online. FreeScriptMaker
Joined: 29 Nov 2013
Total Posts: 2275
22 May 2014 03:45 PM
Well I was thinking of concatenating the message instead of resetting the text each time. Anyways it would do the same thing either way because you're using the print function.
Report Abuse
Zeloi is not online. Zeloi
Joined: 27 Sep 2010
Total Posts: 1143
22 May 2014 03:56 PM
Sorry if this is stupid but...

why wont this work?

a = "Welcome To Ultimate Sword Fighting"
print(a:sub(1,i))
game.Players.PlayerAdded:connect(function(player)
for i = 1, a:len() do
player[PlayerGui][CoreGui][Intro].Text = (a:sub(1, i))
wait(1/3)
end
end)

normal script in workspace
Report Abuse
Zeloi is not online. Zeloi
Joined: 27 Sep 2010
Total Posts: 1143
22 May 2014 03:57 PM
Oh I think I see the problem.
Report Abuse
FreeScriptMaker is not online. FreeScriptMaker
Joined: 29 Nov 2013
Total Posts: 2275
22 May 2014 03:58 PM
You need quotations around these
["PlayerGui"]

Or you can just use .PlayerGui instead of ["PlayerGui"]
Report Abuse
Zeloi is not online. Zeloi
Joined: 27 Sep 2010
Total Posts: 1143
22 May 2014 04:01 PM
Should I do :WaitForChild()'s?

because it says that PlayerGui is not a child of player.
Report Abuse
FreeScriptMaker is not online. FreeScriptMaker
Joined: 29 Nov 2013
Total Posts: 2275
22 May 2014 04:02 PM
No you should use FindFirstChild
Report Abuse
Zeloi is not online. Zeloi
Joined: 27 Sep 2010
Total Posts: 1143
22 May 2014 04:05 PM
a = ("Welcome To Ultimate Sword Fighting")
game.Players.PlayerAdded:connect(function(player)
for i = 1, a:len() do
player:FindFirstChild("PlayerGui").CoreGui.Intro.Text = a:sub(1, i)
print(a:sub(1,i))
wait(1/3)
end
end)

Output : Workspace.Intro:4: attempt to index a nil value
Report Abuse
Zeloi is not online. Zeloi
Joined: 27 Sep 2010
Total Posts: 1143
22 May 2014 04:05 PM
NVM

GOT IT TO WORK!
Report Abuse
transIate is not online. transIate
Joined: 20 Jun 2013
Total Posts: 2699
22 May 2014 04:18 PM
basic for loops you idiots
Report Abuse
FreeScriptMaker is not online. FreeScriptMaker
Joined: 29 Nov 2013
Total Posts: 2275
22 May 2014 04:19 PM
There is no reason to call anyone an idiot.
Report Abuse
transIate is not online. transIate
Joined: 20 Jun 2013
Total Posts: 2699
22 May 2014 04:23 PM
you're new sir
Report Abuse
SenseiWarrior is not online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
22 May 2014 04:25 PM
wow translate your profile is about 4 months older than his
let us praise you
Report Abuse
transIate is not online. transIate
Joined: 20 Jun 2013
Total Posts: 2699
22 May 2014 04:27 PM
this is not about age differences noob
what does that have to do with anything, i am 2007 member
it matters what knowledge and quality you put into things
noob
Report Abuse
SenseiWarrior is not online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
22 May 2014 04:36 PM
'you're new sir'

What else does that refer to
Report Abuse
transIate is not online. transIate
Joined: 20 Jun 2013
Total Posts: 2699
22 May 2014 07:29 PM
you
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
22 May 2014 07:52 PM
local a = "Hello World";

for x = 1, #a do
print(a:sub(1, i));
wait(1/3);
end
Report Abuse
DeSpizer27 is not online. DeSpizer27
Joined: 13 Jul 2012
Total Posts: 2679
22 May 2014 08:08 PM
@transiate chill
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