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: Why wont this 7 line script work?

Previous Thread :: Next Thread 
kingmatt2 is not online. kingmatt2
Joined: 20 Aug 2011
Total Posts: 6494
14 Jun 2013 04:24 PM
while true do
wait(1)
local lava = game.Workspace.Lava:Clone()
lava.Name = "lava"
lava.Anchored = false
lava.Position = Vector3.new(20.5, 16.99, -11.5)
end




No output!
Report Abuse
mjemje is not online. mjemje
Joined: 28 Mar 2009
Total Posts: 25787
14 Jun 2013 04:26 PM
You have to put lava.Parent = Workspace
Clone's parents are nil by default.
Report Abuse
Maradar is not online. Maradar
Joined: 06 Mar 2012
Total Posts: 4478
14 Jun 2013 04:27 PM
lava's name changed, therefore the loop wouldn't continue since it's name was altered in the first loop.
Report Abuse
kingmatt2 is not online. kingmatt2
Joined: 20 Aug 2011
Total Posts: 6494
14 Jun 2013 04:27 PM
Oh Silly me...
Report Abuse
mjemje is not online. mjemje
Joined: 28 Mar 2009
Total Posts: 25787
14 Jun 2013 04:29 PM
No, that's fine, maradar. If you look at the superball script, it creates an Instance.new("Part") with the variable missile, but then says "missile.Name = "CannonBall"" or something like that. The script works fine.
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