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: I need help with a brick-making script

Previous Thread :: Next Thread 
Josh62999 is not online. Josh62999
Joined: 24 Nov 2009
Total Posts: 134
25 Nov 2012 01:30 AM
What I want to do is make a blue brick made out of ice appear at (0,30,0) over and over again. I have all the properties in the script in a way that I suppose is wrong. What should I change on my script?
Here it is:
function start()
while (true) do
p = Instance.new(Part) p.Location = Vector3.new(0, 30, 0) p.Size = Vector3.new(1, 1, 1) p.BrickColor = "Deep Blue" p.Parent = game.Workspace p.Name = "Water" p.Material = "Ice" p.Anchored = false p.CanCollide = true
wait(1)
end
end

(from "p = Instance.new(Part)" to "p.CanCollide = true" is on the same line in the script)
Report Abuse
Josh62999 is not online. Josh62999
Joined: 24 Nov 2009
Total Posts: 134
25 Nov 2012 01:33 AM
I also want it to loop.
Report Abuse
Octopus is not online. Octopus
Joined: 26 Feb 2008
Total Posts: 460
25 Nov 2012 02:07 AM
change "Location" to "Position"
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