Vahlqos
|
  |
| Joined: 23 Nov 2013 |
| Total Posts: 1879 |
|
|
| 25 Dec 2013 11:37 PM |
while wait(10) do local part = Instance.new("Part",workspace) part.Position = Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) print'1' --printing 1 end
Guess what it does? Also first script i ever made ^.^
Any criticism would be very nice :) |
|
|
| Report Abuse |
|
|
Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
|
| 25 Dec 2013 11:38 PM |
It creates a new brick between the values -20, 20 every 10 seconds!
nice script bud |
|
|
| Report Abuse |
|
|
|
| 26 Dec 2013 06:10 AM |
criticism:
always use () when ur calling a function
add a space after , to make it look nicer
???
u did good |
|
|
| Report Abuse |
|
|
|
| 26 Dec 2013 06:11 AM |
so
while wait(10) do local part = Instance.new("Part", workspace) part.Position = Vector3.new(math.random(-20, 20), math.random(-20, 20), math.random(-20, 20)) print('1') --printing 1 end
|
|
|
| Report Abuse |
|
|
|
| 26 Dec 2013 06:28 AM |
le use one line if you`re only going to do one thing to an instanced object
while wait(10) do Instance.new("Part", workspace).Position = Vector3.new(math.random(-20, 20), math.random(-20, 20), math.random(-20, 20)) print('1') --printing 1 end |
|
|
| Report Abuse |
|
|
|
| 26 Dec 2013 07:26 AM |
| Since when did the elitism disappear? |
|
|
| Report Abuse |
|
|
|
| 26 Dec 2013 07:36 AM |
@sn0x
u dont gotta always use parenthesis only when you're calling a function with more than 1 argument |
|
|
| Report Abuse |
|
|
|
| 26 Dec 2013 07:38 AM |
^ Parentheses make it look cleaner.
EOS db 0x00 ;End of String Marker |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 26 Dec 2013 07:40 AM |
| android: I think Christmas happened. It ran the Lua code 'Elitism:Destroy()' (assuming Elitism was previously defined) |
|
|
| Report Abuse |
|
|
|
| 26 Dec 2013 07:42 AM |
^ Interesting.
EOS db 0x00 ;End of String Marker |
|
|
| Report Abuse |
|
|
|
| 26 Dec 2013 07:42 AM |
@little,
you don't always need to split your code into multiple lines. |
|
|
| Report Abuse |
|
|
| |
|
|
| 26 Dec 2013 07:59 AM |
while true do wait'10' local i=Instance local part=i.new'Part' part.Parent=workspace part.Position=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) print'1' --printing 1 end
This is how code SHOULD be done. |
|
|
| Report Abuse |
|
|
|
| 26 Dec 2013 08:30 AM |
^
except wait takes a number |
|
|
| Report Abuse |
|
|
| |
|
| |
|
MettaurSp
|
  |
| Joined: 20 Mar 2010 |
| Total Posts: 3179 |
|
|
| 26 Dec 2013 08:51 AM |
| game.Trolls:StartTrollFite() --that also happened |
|
|
| Report Abuse |
|
|
Vahlqos
|
  |
| Joined: 23 Nov 2013 |
| Total Posts: 1879 |
|
| |
|
|
| 26 Dec 2013 02:56 PM |
--Ho, why not thus?
while wait(10) do Instance.new("Part",game.Workspace).Position=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) print('1') --printing 1 end |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 26 Dec 2013 03:04 PM |
| ^ That's not a good way because suppose he wants to change the name as well, he would have to rewrite that part. |
|
|
| Report Abuse |
|
|
|
| 26 Dec 2013 03:21 PM |
ok kids this is how its done
while wait(10) do local part = Instance.new("Part",Workspace) local x,y,z = math.random(-20,20),math.random(-20,20),math.random(-20,20) part.CFrame = CFrame.new(x,y,z) end
simple |
|
|
| Report Abuse |
|
|