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 » Scripters
Home Search
 

Re: How is this script...

Previous Thread :: Next Thread 
Vahlqos is not online. 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 is not online. 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
OneTrueGodTheHolyCow is not online. OneTrueGodTheHolyCow
Joined: 24 Oct 2013
Total Posts: 9350
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
OneTrueGodTheHolyCow is not online. OneTrueGodTheHolyCow
Joined: 24 Oct 2013
Total Posts: 9350
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
lampwnage121 is not online. lampwnage121
Joined: 20 Oct 2012
Total Posts: 4285
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
AndroidKitKat is not online. AndroidKitKat
Joined: 21 Sep 2013
Total Posts: 1525
26 Dec 2013 07:26 AM
Since when did the elitism disappear?
Report Abuse
littleAU999 is not online. littleAU999
Joined: 15 Jan 2011
Total Posts: 1375
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
AndroidKitKat is not online. AndroidKitKat
Joined: 21 Sep 2013
Total Posts: 1525
26 Dec 2013 07:38 AM
^ Parentheses make it look cleaner.

EOS db 0x00 ;End of String Marker
Report Abuse
digpoe is not online. 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
AndroidKitKat is not online. AndroidKitKat
Joined: 21 Sep 2013
Total Posts: 1525
26 Dec 2013 07:42 AM
^ Interesting.

EOS db 0x00 ;End of String Marker
Report Abuse
OneTrueGodTheHolyCow is not online. OneTrueGodTheHolyCow
Joined: 24 Oct 2013
Total Posts: 9350
26 Dec 2013 07:42 AM
@little,

you don't always need to split your code into multiple lines.
Report Abuse
littleAU999 is not online. littleAU999
Joined: 15 Jan 2011
Total Posts: 1375
26 Dec 2013 07:45 AM
ya ik
;3
Report Abuse
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12490
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
OneTrueGodTheHolyCow is not online. OneTrueGodTheHolyCow
Joined: 24 Oct 2013
Total Posts: 9350
26 Dec 2013 08:30 AM
^

except wait takes a number
Report Abuse
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12490
26 Dec 2013 08:36 AM
It will take either.
Report Abuse
OneTrueGodTheHolyCow is not online. OneTrueGodTheHolyCow
Joined: 24 Oct 2013
Total Posts: 9350
26 Dec 2013 08:37 AM
ewwwww
Report Abuse
MettaurSp is not online. MettaurSp
Joined: 20 Mar 2010
Total Posts: 3179
26 Dec 2013 08:51 AM
game.Trolls:StartTrollFite() --that also happened
Report Abuse
Vahlqos is not online. Vahlqos
Joined: 23 Nov 2013
Total Posts: 1879
26 Dec 2013 11:28 AM
Thank you all :p
Report Abuse
Fluffmiceter is not online. Fluffmiceter
Joined: 28 Jan 2012
Total Posts: 6931
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 is not online. 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
littleAU999 is not online. littleAU999
Joined: 15 Jan 2011
Total Posts: 1375
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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