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: helppp meeee

Previous Thread :: Next Thread 
DominusAstra is not online. DominusAstra
Joined: 23 Jun 2014
Total Posts: 12468
27 Jan 2015 01:02 PM
local part = script.Parent
local color = part.BrickColor
local db = false

part.Touched:connect(function(t)
db = true
local p = game.Players:GetPlayerFromCharacter(t.Parent)
local c = p.Character
for i,v in pairs(c:GetChildren()) do
if v:IsA("Part") then
v.BrickColor = color
end
db = false
end
end)

-- it works the first time, but then i have another script where the brick color changes and then it wont work again...
Report Abuse
025110 is not online. 025110
Joined: 23 Nov 2012
Total Posts: 57661
27 Jan 2015 01:08 PM
idk try a recursion?


R$2,673
Report Abuse
DominusAstra is not online. DominusAstra
Joined: 23 Jun 2014
Total Posts: 12468
27 Jan 2015 01:09 PM
recursion?
Report Abuse
fishguy100 is not online. fishguy100
Joined: 16 Feb 2013
Total Posts: 3679
27 Jan 2015 01:15 PM
local part = script.Parent
local color = part.BrickColor
local db = false

part.Touched:connect(function(t)
db = true
local p = game.Players:GetPlayerFromCharacter(t.Parent)
local c = p.Character
for i,v in pairs(c:GetChildren()) do
if v:IsA("BasePart") then
v.BrickColor = color
end
db = false
end
end)
P.S. I do personal scripting for a fee
-fishguy100
Report Abuse
DominusAstra is not online. DominusAstra
Joined: 23 Jun 2014
Total Posts: 12468
27 Jan 2015 01:16 PM
that wasnt the problem...
Report Abuse
fishguy100 is not online. fishguy100
Joined: 16 Feb 2013
Total Posts: 3679
27 Jan 2015 01:17 PM
I will charge 100 robux to make this WHOLE system for you. Pm me the details or party chat me
Report Abuse
DeviousDeviation is not online. DeviousDeviation
Joined: 28 Dec 2010
Total Posts: 9306
27 Jan 2015 01:22 PM
local part = script.Parent
local db = false

part.Touched:connect(function(t)
db = true
local p = game.Players:GetPlayerFromCharacter(t.Parent)
local c = p.Character
for i,v in pairs(c:GetChildren()) do
if v:IsA("Part") then
v.BrickColor = part.BrickColor
end
db = false
end
end)

k

⬡
Report Abuse
DominusAstra is not online. DominusAstra
Joined: 23 Jun 2014
Total Posts: 12468
27 Jan 2015 01:27 PM
OH

WOW

THANKS DEVIOUS

i see what i did wow facepalm
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