|
| 31 Jul 2012 04:19 PM |
Im trying too do this script for my obby
function touch(hit) if hit.Parent:findFirstChild("Humanoid") then hit.Parent:findFirstChild("Humanoid").Health = (0) and if hit.Parent:findFirstChild("Head,Torso,Left Arm, Right Arm") then hit.Parent:findFirstChild("Head, Torso,Left Arm,Right Arm").BrickColor.new = ("Red,Yellow,White,Purple,Orange,Pink,Blue") wait() end end script.Parent.Touched:connect(touch)
I know theres alot of mistakes, I want it too be a rainbow kill brick (meaning it kills you when your body parts turns rainbow and stuff0 |
|
|
| Report Abuse |
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 31 Jul 2012 04:21 PM |
What? You want it to kill you if your body parts are rainbow >.>
Each part can only be one color... |
|
|
| Report Abuse |
|
|
| 31 Jul 2012 04:25 PM |
Oh.
Just make it a kill brick and when you die you turn the color the brick is.
Example
(You die in a red brick, your whole body parts turn red.)
(You die in a blue brick, your whole body parts turn blue.) Is that possible? |
|
|
| Report Abuse |
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 31 Jul 2012 04:28 PM |
Edit this:
script.Parent.Touched:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then hit.Parent.Torso.BrickColor = BrickColor.new("Really red")--Capitalize maybe? hit.Parent.Humanoid.Health = 0 end end)
Edit the connection line. |
|
|
| Report Abuse |
|