|
| 13 Sep 2015 08:11 PM |
If there is more then one brick called part can the script run them all at the same time?
stupid question i kinds know the answer
yes, right
Copy and paste was here, THEN Roblox+ Attacked |
|
|
| Report Abuse |
|
|
amanda
|
  |
| Joined: 21 Nov 2006 |
| Total Posts: 5925 |
|
|
| 13 Sep 2015 08:14 PM |
if this is ur explorer
explorer workspace camera terrain part part script players serverstorage egfskfgoi
and in ur script ur all like
game.Workspace.part
then ur script will be all confused |
|
|
| Report Abuse |
|
|
|
| 13 Sep 2015 08:14 PM |
Does the part have a specific purpose in relation to the user?
Are they all under the same parent
#code print ("Shots fired, ready for the war!") -- Currently working on Gui's |
|
|
| Report Abuse |
|
|
|
| 13 Sep 2015 08:17 PM |
Well im making my brothers name and going to make it change colors from lime green to black
im just trying to get better with scripting learning small things at first also just showing my little brother that when my uncle said Programming isnt going to get you far in this country he was wrong
my brother got hyped when i made a script that changes players speed after 10 seconds
i remember when i had to press properties then humanoid then speed and type 100
Copy and paste was here, THEN Roblox+ Attacked |
|
|
| Report Abuse |
|
|
|
| 13 Sep 2015 08:19 PM |
naming them all part wouldn't be smart
name them something to different
for example:
Lime1 Black2
something you'd know
#code print ("Shots fired, ready for the war!") -- Currently working on Gui's |
|
|
| Report Abuse |
|
|
|
| 13 Sep 2015 08:19 PM |
here me making the script still havent fisnished it Workspace.Part.BrickColor = BrickColor.New("Lime Green")
Copy and paste was here, THEN Roblox+ Attacked |
|
|
| Report Abuse |
|
|
|
| 13 Sep 2015 08:20 PM |
ill just name them 1 2 3 4 5 6 7 8 9 10
Copy and paste was here, THEN Roblox+ Attacked |
|
|
| Report Abuse |
|
|
|
| 13 Sep 2015 08:21 PM |
game.Workspace.Part = BrickColor.New("Lime Green") wait(however much time you wanted, I forgot) game.Workspace.Part = BrickColor.New(choose which color)
#code print ("Shots fired, ready for the war!") -- Currently working on Gui's |
|
|
| Report Abuse |
|
|
|
| 13 Sep 2015 08:21 PM |
okay guys how can i make it that i write all the names in one script?
Copy and paste was here, THEN Roblox+ Attacked |
|
|
| Report Abuse |
|
|
|
| 13 Sep 2015 08:22 PM |
so i dont have to change the names right?
Copy and paste was here, THEN Roblox+ Attacked |
|
|
| Report Abuse |
|
|
|
| 13 Sep 2015 08:23 PM |
What do you mean all names?
Also remember to use variables, it will save you a lot of time.
#code print ("Shots fired, ready for the war!") -- Currently working on Gui's |
|
|
| Report Abuse |
|
|
|
| 13 Sep 2015 08:23 PM |
local PART = workspace:GetChildren()
for I = 1, #PART do if PART[I].Name == "Part" then PART[I].BrickColor = BrickColor.new("Bright green") end end |
|
|
| Report Abuse |
|
|
|
| 13 Sep 2015 08:23 PM |
You don't need 2 parts if you're just changing the color of a part
Unless you made one part appear while the other fades away
#code print ("Shots fired, ready for the war!") -- Currently working on Gui's |
|
|
| Report Abuse |
|
|
|
| 13 Sep 2015 08:24 PM |
would this work im goign to insert the script in workspace here the scripts content
while true do Workspace.Part.BrickColor = BrickColor.New("Lime Green") wait(0.5) Workspace.Part.BrickColor = BrickColor.New("black") end
also there will be more then one brick names part
Copy and paste was here, THEN Roblox+ Attacked |
|
|
| Report Abuse |
|
|
|
| 13 Sep 2015 08:26 PM |
local Parts = workspace:GetChildren()
local time = .5
for i = 1, #Parts do if Parts[i].Name == "Part" then Parts[i].BrickColor = BrickColor.new("Bright green") wait(time) Parts[i].BrickCOlor = BrickColor.new("Bright yellow") wait(time) end end |
|
|
| Report Abuse |
|
|
|
| 13 Sep 2015 08:27 PM |
@rep
are you purposely making the script far more advanced then it needs to be?
#code print ("Shots fired, ready for the war!") -- Currently working on Gui's |
|
|
| Report Abuse |
|
|
|
| 13 Sep 2015 08:28 PM |
that looks confusing just tell me if mine will work or not
i want to learnt to script not copy and paste other peoples
Copy and paste was here, THEN Roblox+ Attacked |
|
|
| Report Abuse |
|
|
|
| 13 Sep 2015 08:28 PM |
| Well he asked at beginning he wanted to change all parts with the name Part. |
|
|
| Report Abuse |
|
|
|
| 13 Sep 2015 08:28 PM |
@2030
that script is unneeded
you just need to change the baseplate color
#code print ("Shots fired, ready for the war!") -- Currently working on Gui's |
|
|
| Report Abuse |
|
|
|
| 13 Sep 2015 08:30 PM |
would this script work or not?
while true do Workspace.Part.BrickColor = BrickColor.New("Lime Green") wait(0.5) Workspace.Part.BrickColor = BrickColor.New("black") end
im new to all of this and dont want to get advanced
Copy and paste was here, THEN Roblox+ Attacked |
|
|
| Report Abuse |
|
|
|
| 13 Sep 2015 08:31 PM |
Try it in studio
open up output first
#code print ("Shots fired, ready for the war!") -- Currently working on Gui's |
|
|
| Report Abuse |
|
|
|
| 13 Sep 2015 08:31 PM |
time = .5;
game.Workspace.Baseplate.BrickColor = BrickColor.new("Bright green") wait(time) game.Workspace.Baseplate.BrickColor = BrickColor.new("Bright yellow") |
|
|
| Report Abuse |
|
|
|
| 13 Sep 2015 08:32 PM |
kk im in studio making the model/name in bricks
Copy and paste was here, THEN Roblox+ Attacked |
|
|
| Report Abuse |
|
|
|
| 13 Sep 2015 08:33 PM |
time = .5; while wait() do game.Workspace.Baseplate.BrickColor = BrickColor.new("Bright green") wait(time) game.Workspace.Baseplate.BrickColor = BrickColor.new("Bright yellow") wait(time) end |
|
|
| Report Abuse |
|
|
|
| 13 Sep 2015 08:34 PM |
@Re
would that keep changing the colors?
Copy and paste was here, THEN Roblox+ Attacked |
|
|
| Report Abuse |
|
|