|
| 22 Jul 2014 06:26 PM |
Hello, Ive been not playing roblox for a while as they patched my DLL. But after watching Hero's, I have decided that a true man shall not give up. As a start im relearning to script. Whats wrong?
while True : print"Hello World!" |
|
|
| Report Abuse |
|
|
|
| 22 Jul 2014 06:26 PM |
while true do print"Hello World!" --should add a wait() somewhere tho end |
|
|
| Report Abuse |
|
|
|
| 22 Jul 2014 06:27 PM |
| All that did was make me crash... |
|
|
| Report Abuse |
|
|
CrowClaws
|
  |
| Joined: 04 Jul 2010 |
| Total Posts: 4466 |
|
|
| 22 Jul 2014 06:29 PM |
you have to add some kinda wait like wait(0.000001) Since it is a loop If a loop doesn't have a wait it crashes bc you are asking it to do infinite amount of things in 0 seconds |
|
|
| Report Abuse |
|
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 22 Jul 2014 06:30 PM |
| Well, mentioning the name PriorityMethod makes booing come running Ehh... |
|
|
| Report Abuse |
|
|
|
| 22 Jul 2014 06:31 PM |
@otherperson I think the smallest interval for wait() is 0.03.
@op
Can either do: while true do wait() print"Hello world!" end
or
while wait() do print"Hello world!" end |
|
|
| Report Abuse |
|
|
|
| 22 Jul 2014 06:35 PM |
| Thank you for all your replies, but I'm specifically trying to do this in Python, suggested by my syntax in the first post. Please help me do this. Im not interested in using LUA. |
|
|
| Report Abuse |
|
|
| |
|
Kodran
|
  |
| Joined: 15 Aug 2013 |
| Total Posts: 5330 |
|
|
| 22 Jul 2014 09:08 PM |
As you're on the roblox scripting help forum if you wanted help writing python code you should have stated you were looking for help in python and not lua.
Nonetheless, here is what you should be doing:
while True: str('Hello World!') |
|
|
| Report Abuse |
|
|
|
| 22 Jul 2014 09:10 PM |
| That gives me a syntax error about the : it seems... |
|
|
| Report Abuse |
|
|
Kodran
|
  |
| Joined: 15 Aug 2013 |
| Total Posts: 5330 |
|
|
| 22 Jul 2014 09:13 PM |
| Are you using IDLE? I put that exact script into IDLE and it worked. |
|
|
| Report Abuse |
|
|
|
| 22 Jul 2014 09:16 PM |
| Yeah, if you haven't noticed, this is on a Roblox forum. I'm talking about Roblox. |
|
|
| Report Abuse |
|
|
Kodran
|
  |
| Joined: 15 Aug 2013 |
| Total Posts: 5330 |
|
|
| 22 Jul 2014 09:20 PM |
As far as I know (which isn't extremely far) there is currently no support for python in roblox although it could be a plugin.
Anyways, you'll probably need to look at the specific plugin's tutorial because the code I wrote works in normal python. |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 22 Jul 2014 09:22 PM |
@Kod He is talking about exploiting |
|
|
| Report Abuse |
|
|