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: Script Changing GUI text help.

Previous Thread :: Next Thread 
Sekheret332 is not online. Sekheret332
Joined: 22 Nov 2011
Total Posts: 490
02 Sep 2013 10:26 AM

this isn't working. the local text is a TextLabel. it goes, GUI-Frame-Script, Text
why does it not work. i want it to look like something is typing.


local Text = Script.Parent.Text.Text
wait(5)
Text = ("F_")
wait(.2)
Text = ("Fi_")
wait(.2)
Text = ("Fil_")
wait(.2)
Text = ("File_")
wait(.2)
Text = ("Files_")
wait(.2)
Text = ("Files._")
wait(.2)
Text = ("Files.S_")
wait(.2)
Text = ("Files.Su_")
wait(.2)
Text = ("Files.Suc_")
wait(.1)
Text = ("Files.Succ_")
wait(.2)
Text = ("Files.Succ_")
wait(.2)
Text = ("Files.Succe_")
wait(.2)
Text = ("Files.Succes_")
wait(.2)
Text = ("Files.Success_")
wait(.2)
Text.Text = ("Files.Successf_")
wait(.2)
Text = ("Files.Successfu_")
wait(.2)
Text = ("Files.Successful_")
wait(.2)
Text = ("Files.Successfull_")
wait(.2)
Text = ("Files.Successfully_")
wait(.2)
Text = ("Files.Successfully._")
wait(.2)
Text = ("Files.Successfully.L_")
wait(.2)
Text = ("Files.Successfully.Lo_")
wait(.2)
Text = ("Files.Successfully.Loa_")
wait(.2)
Text = ("Files.Successfully.Load_")
wait(.2)
Text = ("Files.Successfully.Loade_")
wait(.2)
Text = ("Files.Successfully.Loaded_")
wait(.2)
Text = ("Files.Successfully.Loaded")
wait(.2)
Text = ("Files.Successfully.Loaded_")
wait(.2)
Text = ("Files.Successfully.Loaded")
wait(.2)
Text = ("Files.Successfully.Loaded_")
wait(.2)
Text = ("Files.Successfully.Loaded")
wait(.2)
Text = ("Files.Successfully.Loaded_")
wait(1)
Report Abuse
brinkokevin is not online. brinkokevin
Joined: 25 Jul 2012
Total Posts: 1673
02 Sep 2013 10:28 AM
:D
Text = "Files.Successfully.Loaded_"

try this up and change button named Text to LoadText there should be error

local Text = Script.Parent.LoadText.Text
Report Abuse
Sekheret332 is not online. Sekheret332
Joined: 22 Nov 2011
Total Posts: 490
02 Sep 2013 10:31 AM
nothing. anyone else?
Report Abuse
Sekheret332 is not online. Sekheret332
Joined: 22 Nov 2011
Total Posts: 490
02 Sep 2013 10:34 AM
bump
Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
02 Sep 2013 10:35 AM
you put script.Parent.Text.Text, I'm not sure if you named a textbox "Text" but if you want to change the text in script.Parent you just have to do script.Parent.Text
Report Abuse
Sekheret332 is not online. Sekheret332
Joined: 22 Nov 2011
Total Posts: 490
02 Sep 2013 10:37 AM
what?
Report Abuse
Sekheret332 is not online. Sekheret332
Joined: 22 Nov 2011
Total Posts: 490
02 Sep 2013 10:39 AM
nothing
Report Abuse
Desperian is not online. Desperian
Joined: 07 Feb 2012
Total Posts: 3371
02 Sep 2013 10:42 AM
@Sek,
1) script not Script. If you look at your output window, you would notice it would be screaming 'attempt to index global 'Script' (a nil value)' at you.
2) Also, you can clear it up a bit.

local TextObject = script.Parent.Text
local Te = "Files.Successfully.Loaded_"

for i = 1, Te:len() do
wait(0.2)
TextObject.Text = Te:sub(1,i)
end
Report Abuse
Sekheret332 is not online. Sekheret332
Joined: 22 Nov 2011
Total Posts: 490
02 Sep 2013 10:45 AM
now it says 11:44:10.070 - Players.Player1.PlayerGui.GUI.Frame.Script:3: attempt to index global 'Text' (a nil value)

current script.

local LoadText = script.Parent.LoadText
wait(5)
Text.Text = ("F_")
wait(.2)
Text.Text = ("Fi_")
wait(.2)
Text.Text = ("Fil_")
wait(.2)
Text.Text = ("File_")
wait(.2)
Text.Text = ("Files_")
wait(.2)
Text.Text = ("Files _")
wait(.2)
Text.Text = ("Files S_")
wait(.2)
Text.Text = ("Files Su_")
wait(.2)
Text.Text = ("Files Suc_")
wait(.1)
Text.Text = ("Files Succ_")
wait(.2)
Text.Text = ("Files Succ_")
wait(.2)
Text.Text = ("Files Succe_")
wait(.2)
Text.Text = ("Files Succes_")
wait(.2)
Text.Text = ("Files Success_")
wait(.2)
Text.Text = ("Files Successf_")
wait(.2)
Text.Text = ("Files Successfu_")
wait(.2)
Text.Text = ("Files Successful_")
wait(.2)
Text.Text = ("Files Successfull_")
wait(.2)
Text.Text = ("Files Successfully_")
wait(.2)
Text.Text = ("Files Successfully _")
wait(.2)
Text.Text = ("Files Successfully L_")
wait(.2)
Text.Text = ("Files Successfully Lo_")
wait(.2)
Text.Text = ("Files Successfully Loa_")
wait(.2)
Text.Text = ("Files Successfully Load_")
wait(.2)
Text.Text = ("Files Successfully Loade_")
wait(.2)
Text.Text = ("Files Successfully Loaded_")
wait(.2)
Text.Text = ("Files Successfully Loaded")
wait(.2)
Text.Text = ("Files Successfully Loaded_")
wait(.2)
Text.Text = ("Files Successfully Loaded")
wait(.2)
Text.Text = ("Files Successfully Loaded_")
wait(.2)
Text.Text = ("Files Successfully Loaded")
wait(.2)
Text.Text = ("Files Successfully Loaded_")
wait(1)
Report Abuse
your90 is not online. your90
Joined: 06 Mar 2011
Total Posts: 1380
02 Sep 2013 10:46 AM
end
Report Abuse
Desperian is not online. Desperian
Joined: 07 Feb 2012
Total Posts: 3371
02 Sep 2013 10:47 AM
Makes a variable named 'LoadText', but then attempts to use a non-existant 'Text' variable.
Report Abuse
Sekheret332 is not online. Sekheret332
Joined: 22 Nov 2011
Total Posts: 490
02 Sep 2013 10:48 AM
what do you mean? how do i fix it?
Report Abuse
your90 is not online. your90
Joined: 06 Mar 2011
Total Posts: 1380
02 Sep 2013 10:48 AM
despm mv j vjf fjg gmdmdm lol flilike tshusmjrandknm tgexr
Report Abuse
Desperian is not online. Desperian
Joined: 07 Feb 2012
Total Posts: 3371
02 Sep 2013 10:49 AM
...

By changing the variable named to 'Text' or by changing the 'Text.Text = Bleh' bits to 'LoadText.Text'...
Report Abuse
Sekheret332 is not online. Sekheret332
Joined: 22 Nov 2011
Total Posts: 490
02 Sep 2013 10:50 AM
oh i see! in the local area I put LoadText. I am fixing it now. standby please
Report Abuse
Sekheret332 is not online. Sekheret332
Joined: 22 Nov 2011
Total Posts: 490
02 Sep 2013 10:52 AM
OMG TYSM!!!!
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