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: I NEED HELP WITH THIS SCRIPT

Previous Thread :: Next Thread 
IllogicalGames is not online. IllogicalGames
Joined: 28 Feb 2014
Total Posts: 7609
18 Jul 2015 02:54 PM
what i need is a script that finds all the parts in workspace that are a certain color, then moves them all to lighting

sorry i'm not good at scripting
Report Abuse
DerpyMerpKing is not online. DerpyMerpKing
Joined: 05 Feb 2011
Total Posts: 2553
18 Jul 2015 02:56 PM
for i,v in pairs (game.Workspace:GetChildren()) do
if v.BrickColor = BrickColor.new("BrickColorHere") then
v.Parent = game.Lighting
end
end
Simple enough :3
if siggy == false then print"nooo :(" end
Report Abuse
IllogicalGames is not online. IllogicalGames
Joined: 28 Feb 2014
Total Posts: 7609
18 Jul 2015 02:59 PM
@derpy
doesn't work
Report Abuse
DerpyMerpKing is not online. DerpyMerpKing
Joined: 05 Feb 2011
Total Posts: 2553
18 Jul 2015 03:00 PM
what is the output?
if siggy == false then print"nooo :(" end
Report Abuse
IllogicalGames is not online. IllogicalGames
Joined: 28 Feb 2014
Total Posts: 7609
18 Jul 2015 03:01 PM
'then' expected near '='
Report Abuse
DerpyMerpKing is not online. DerpyMerpKing
Joined: 05 Feb 2011
Total Posts: 2553
18 Jul 2015 03:02 PM
OOHHHHHHH
change:
if v.BrickColor = BrickColor.new("BrickColorHere") then
to
if v.BrickColor == BrickColor.new("BrickColorHere") then
if siggy == false then print"nooo :(" end
Report Abuse
IllogicalGames is not online. IllogicalGames
Joined: 28 Feb 2014
Total Posts: 7609
18 Jul 2015 03:03 PM
i did that before and i got
BrickColor is not a valid member of Camera
and it still didn't work
lemme try something
Report Abuse
IllogicalGames is not online. IllogicalGames
Joined: 28 Feb 2014
Total Posts: 7609
18 Jul 2015 03:04 PM
i got it to work
ty
Report Abuse
DerpyMerpKing is not online. DerpyMerpKing
Joined: 05 Feb 2011
Total Posts: 2553
18 Jul 2015 03:04 PM
OK THIS WILL WORK
for i,v in pairs (game.Workspace:GetChildren()) do
if v:IsA("BasePart") then
if v.BrickColor == BrickColor.new("BrickColorHere") then
v.Parent = game.Lighting
end
end
end

if siggy == false then print"nooo :(" end
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