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: whats wrong [6] (hard)

Previous Thread :: Next Thread 
xXmodzXx123 is not online. xXmodzXx123
Joined: 10 Jun 2012
Total Posts: 1874
19 Jan 2014 02:06 PM
if game.Workspace.Lava_Falls == true
for i=1, 60 do
game.Workspace.Lava_Falls.Rock_Small:Clone(RS)
RS.Position = game.Workspace.Lava_Falls.Lava_Bottom.Position
end


-- ive lost what the script is doing --
Report Abuse
xXmodzXx123 is not online. xXmodzXx123
Joined: 10 Jun 2012
Total Posts: 1874
19 Jan 2014 02:07 PM
its meant to say
if lava is in workspace
clone a small rock
paste small rock above lava_bottom
do it 60 times
end
Report Abuse
xXmodzXx123 is not online. xXmodzXx123
Joined: 10 Jun 2012
Total Posts: 1874
19 Jan 2014 02:09 PM
b1
Report Abuse
xXmodzXx123 is not online. xXmodzXx123
Joined: 10 Jun 2012
Total Posts: 1874
19 Jan 2014 02:12 PM
b2
Report Abuse
xXmodzXx123 is not online. xXmodzXx123
Joined: 10 Jun 2012
Total Posts: 1874
19 Jan 2014 02:18 PM
b3... cmon smart people :)
Report Abuse
alexthemongolian is not online. alexthemongolian
Joined: 23 Mar 2011
Total Posts: 655
19 Jan 2014 02:19 PM
if game.Workspace.Lava_Falls == true
for i=1, 60 do
RS = game.Workspace.Lava_Falls.Rock_Small:clone()
RS.parent = game.Workspace
RS.Position = game.Workspace.Lava_Falls.Lava_Bottom.Position
end
Report Abuse
Nyxis is not online. Nyxis
Joined: 15 Nov 2012
Total Posts: 3374
19 Jan 2014 02:19 PM
'if game.Workspace.Lava_Falls == true'

See something missing there? I sure do.
Report Abuse
Wakarimasu is not online. Wakarimasu
Joined: 12 Nov 2013
Total Posts: 1448
19 Jan 2014 02:20 PM
if game.Workspace.Lava_Falls == true then
for i=1, 60 do
RS = game.Workspace.Lava_Falls.Rock_Small:clone()
RS.parent = game.Workspace
RS.Position = game.Workspace.Lava_Falls.Lava_Bottom.Position
end
end
Report Abuse
xXmodzXx123 is not online. xXmodzXx123
Joined: 10 Jun 2012
Total Posts: 1874
19 Jan 2014 02:21 PM
mabye... im thinking off something like

if game.Workspace.Lava_Falls == true
then for i=1, 60 do
RS = game.Workspace.Lava_Falls.Rock_Small:clone()
RS.parent = game.Workspace
RS.Position = game.Workspace.Lava_Falls.Lava_Bottom.Position
end
Report Abuse
alexthemongolian is not online. alexthemongolian
Joined: 23 Mar 2011
Total Posts: 655
19 Jan 2014 02:21 PM
if game.Workspace.Lava_Falls == true then
then for i=1, 60 do
RS = game.Workspace.Lava_Falls.Rock_Small:clone()
RS.parent = game.Workspace
RS.Position = game.Workspace.Lava_Falls.Lava_Bottom.Position
end
end
Report Abuse
xXmodzXx123 is not online. xXmodzXx123
Joined: 10 Jun 2012
Total Posts: 1874
19 Jan 2014 02:24 PM
[T_T] Anytorso else
Report Abuse
alexthemongolian is not online. alexthemongolian
Joined: 23 Mar 2011
Total Posts: 655
19 Jan 2014 02:24 PM
I'm trolling you
Report Abuse
xXmodzXx123 is not online. xXmodzXx123
Joined: 10 Jun 2012
Total Posts: 1874
19 Jan 2014 02:25 PM
ik
Report Abuse
Wakarimasu is not online. Wakarimasu
Joined: 12 Nov 2013
Total Posts: 1448
19 Jan 2014 02:31 PM
Jesus christ man. There's a 'then' for every conditional statement, use it.

And you're missing an End
Report Abuse
Wakarimasu is not online. Wakarimasu
Joined: 12 Nov 2013
Total Posts: 1448
19 Jan 2014 02:33 PM
if game.Workspace.Lava_Falls then
for i=1, 60 do
RS = game.Workspace.Lava_Falls.Rock_Small:clone()
RS.Parent = game.Workspace
RS.Position = game.Workspace.Lava_Falls.Lava_Bottom.Position
wait()
end
end
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
19 Jan 2014 02:34 PM
if game.Workspace:FindFirstChild("Lava_Falls") then
for i=1, 60 do
RS = game.Workspace.Lava_Falls.Rock_Small:Clone()
RS.Position = game.Workspace.Lava_Falls.Lava_Bottom.Position
RS.Parent = game.Workspace
wait()
end
end
Report Abuse
xXmodzXx123 is not online. xXmodzXx123
Joined: 10 Jun 2012
Total Posts: 1874
19 Jan 2014 02:34 PM
fair play
Report Abuse
ServerStorage is not online. ServerStorage
Joined: 03 Oct 2013
Total Posts: 111
19 Jan 2014 02:35 PM
Is that a value...?
(Lava_Falls)
Report Abuse
xXmodzXx123 is not online. xXmodzXx123
Joined: 10 Jun 2012
Total Posts: 1874
19 Jan 2014 02:38 PM
no a model
Report Abuse
ServerStorage is not online. ServerStorage
Joined: 03 Oct 2013
Total Posts: 111
19 Jan 2014 02:41 PM
You know..
== true is to check if its true other wise asking if its true or false and if its true to do w/e but you know it only works with Boolvalues and like uhh DB = true or w/e

So yeh

If game.Workspace.themodel then -- thats 1 day to do it
end

also when ever you use if it always uses a end and you can also use elseif that doesn't need a end
Report Abuse
Nyxis is not online. Nyxis
Joined: 15 Nov 2012
Total Posts: 3374
19 Jan 2014 02:42 PM
if workspace:FindFirstChild("Model") then

end
Report Abuse
ServerStorage is not online. ServerStorage
Joined: 03 Oct 2013
Total Posts: 111
19 Jan 2014 02:43 PM
ye u can do either one they both work but findfirstchild helps it sometimes
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
19 Jan 2014 02:44 PM
There is a reason why FindFirstChild exists.
Always use it if you are:
-Unsure if something exists
-A name of a child is also a property name of an object
Report Abuse
vortexyamum is not online. vortexyamum
Joined: 31 Aug 2011
Total Posts: 1979
19 Jan 2014 05:17 PM
this is a pointless post of doom
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