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 » Roblox » All Things ROBLOX
Home Search
 

Re: How to print text on one line

Previous Thread :: Next Thread 
adoman is not online. adoman
Joined: 01 Sep 2010
Total Posts: 306
10 Jan 2016 08:13 PM
Normally it goes down a line everytime you print()

How can this print() work on the same line

SO Instead of this

while true do
print("hello")
wait(1)
end

output -
hello
hello
hello

THIS:
while true do
print("hello")
wait(1)
end

output -
hellohellohello
Report Abuse
gamedude809 is not online. gamedude809
Joined: 02 Jan 2010
Total Posts: 38147
10 Jan 2016 08:16 PM
aer you asking a question
or is this a tutorial


If you forum on ATR, join my group: http://www.roblox.com/My/Groups.aspx?gid=2696037 ;)
Report Abuse
adoman is not online. adoman
Joined: 01 Sep 2010
Total Posts: 306
10 Jan 2016 08:17 PM
Stop please no spam, Just want to know how to do this..
Report Abuse
Nemraz is not online. Nemraz
Joined: 08 Dec 2012
Total Posts: 3879
10 Jan 2016 08:17 PM
in the context of what, the output?

oh i see, you have to specify a certain variable or value or something itself that once the script is fully done, takes that info and prints it out.
Report Abuse
Nemraz is not online. Nemraz
Joined: 08 Dec 2012
Total Posts: 3879
10 Jan 2016 08:18 PM
http://wiki.roblox.com/index.php?title=Variable
Report Abuse
adoman is not online. adoman
Joined: 01 Sep 2010
Total Posts: 306
10 Jan 2016 08:19 PM
bump
Report Abuse
adoman is not online. adoman
Joined: 01 Sep 2010
Total Posts: 306
10 Jan 2016 08:20 PM
No, like println

where the output bar shows everything on the Same line

Report Abuse
JamesMarconi is not online. JamesMarconi
Joined: 05 Jan 2012
Total Posts: 858
10 Jan 2016 08:20 PM
What are you asking? Just say print("hellohellohello")
...


Report Abuse
bobbowolf is not online. bobbowolf
Joined: 15 Jan 2010
Total Posts: 11398
10 Jan 2016 08:28 PM
Comic Sans, that's how



From, your local bonehead
Report Abuse
adoman is not online. adoman
Joined: 01 Sep 2010
Total Posts: 306
10 Jan 2016 08:47 PM
no on a loop..
Report Abuse
bobbowolf is not online. bobbowolf
Joined: 15 Jan 2010
Total Posts: 11398
10 Jan 2016 08:48 PM
well i dont know



#code Use comic sans #code you know this is just a test of the code thing k?
Report Abuse
AgnosticAnon is not online. AgnosticAnon
Joined: 09 Jan 2016
Total Posts: 45
10 Jan 2016 08:49 PM
Nemraz is correct.

What I suppose is occurring is that the interpreter is comprehending the line as ending via the "\0" escape character, which is the null zero(Also known informally as the "string terminator") in C.

Given that this would seem to prevent the use of escape sequences, you will need to concatenate each value onto a variable, as shown below:

local s = ""; --I used an empty variable so that "Hello" will stack individual. The semicolons are a habit.

while wait() do --Infinite loop. Self Explanatory.

s = s.."hello";

print(s);

end

Hopefully that helped you.
Report Abuse
adoman is not online. adoman
Joined: 01 Sep 2010
Total Posts: 306
10 Jan 2016 08:55 PM
answered : io.write
Report Abuse
AgnosticAnon is not online. AgnosticAnon
Joined: 09 Jan 2016
Total Posts: 45
10 Jan 2016 08:56 PM
"answered : io.write"

The standard I/O library is disabled inside ROBLOX.
Report Abuse
DanBossStar321 is not online. DanBossStar321
Joined: 26 Dec 2012
Total Posts: 27652
10 Jan 2016 09:03 PM
Scripting Helpers

#code ("𝗧𝗮𝗸𝗲 𝗮 𝗹𝗲𝗮𝗸 𝗳𝗿𝗼𝗺 𝘁𝗵𝗲 𝗼𝘁𝗵𝗲𝗿 𝘀𝗶𝗱𝗲!")

Report Abuse
AgnosticAnon is not online. AgnosticAnon
Joined: 09 Jan 2016
Total Posts: 45
10 Jan 2016 09:05 PM
"Scripting Helpers"

Game-Design now. Scripting-Helpers was dissolved.

Although most users deliberately post their questions inside Scripters.
Report Abuse
BuildIntoGames is not online. BuildIntoGames
Joined: 02 Sep 2011
Total Posts: 6634
10 Jan 2016 09:05 PM
Impossible to do, unless you print the results afterwards


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Roblox » All Things ROBLOX
   
 
   
  • 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