|
| 10 Sep 2016 12:07 AM |
| is possible to do...a part change color,red to green,and green to red,ect. But when you touch it when it will be green,that will be ok,and when we touche it when it will be red,we will die? thanks for help! :) |
|
|
| Report Abuse |
|
|
Cyerwyn
|
  |
| Joined: 09 Mar 2013 |
| Total Posts: 3442 |
|
|
| 10 Sep 2016 12:11 AM |
part = Instance.new("Part", workspace)
while true do part.BrickColor = BrickColor.new("Neon green") wait(1) part.BrickColor = BrickColor.new("Really red") wait(1)
end
game.part.Touched:connect(function(hit) if part.BrickColor == "Really red" then
hit.Parent.Humanoid.Health = 0
end end) |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2016 08:02 AM |
| That dont work sorry,another person can help? |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2016 08:26 AM |
while true do part.BrickColor = BrickColor.new("Neon green") wait(1) part.BrickColor = BrickColor.new("Really red") wait(1)
end
game.part.Touched:connect(function(hit) if part.BrickColor == ("Really red") then
hit.Parent.Humanoid.Health = 0
end end) |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2016 08:28 AM |
while true do script.Parent.BrickColor = BrickColor.new("Neon green") wait(1) script.Parent.BrickColor = BrickColor.new("Really red") wait(1)
end
script.Parent.Touched:connect(function(hit) if part.BrickColor == ("Really red") then hit.Parent.Humanoid.Health = 0 end end)
-- this will go into the part |
|
|
| Report Abuse |
|
|
Repsej112
|
  |
| Joined: 22 Jan 2013 |
| Total Posts: 205 |
|
|
| 10 Sep 2016 08:45 AM |
while true do script.Parent.BrickColor = BrickColor.new("Neon green") wait(1) script.Parent.BrickColor = BrickColor.new("Really red") wait(1)
end
script.Parent.Touched:connect(function(hit) if part.BrickColor == ("Really red") then local plr = game.Players:GetPlayerFromCharacter(hit.Parent) if plr then plr.Character:FindFirstChild("Humanoid").Health = 0 end end end) |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2016 08:51 AM |
| Dont work,it change color but it dont kill :/ |
|
|
| Report Abuse |
|
|
ownedyou1
|
  |
| Joined: 03 Jul 2008 |
| Total Posts: 528 |
|
|
| 10 Sep 2016 09:11 AM |
LMAO fail scripters, try this
script.Parent.Touched:connect(function(hit) if part.BrickColor == ("Really red") then local plr = game.Players:GetPlayerFromCharacter(hit.Parent) if plr then plr.Character:FindFirstChild("Humanoid").Health = 0 else end else end end)
while true do script.Parent.BrickColor = BrickColor.new("Neon green") wait(1) script.Parent.BrickColor = BrickColor.new("Really red") wait(1)
end
|
|
|
| Report Abuse |
|
|
| |
|
|
| 10 Sep 2016 09:24 AM |
script.Parent.Touched:connect(function(hit) if script.Parent.BrickColor == ("Really red") then local plr = game.Players:GetPlayerFromCharacter(hit.Parent) if plr then plr.Character:FindFirstChild("Humanoid").Health = 0 end end end)
while true do script.Parent.BrickColor = BrickColor.new("Neon green") wait(1) script.Parent.BrickColor = BrickColor.new("Really red") wait(1)
end
|
|
|
| Report Abuse |
|
|
|
| 10 Sep 2016 09:36 AM |
| Dont work... But the question is...Is possible to do that? |
|
|
| Report Abuse |
|
|
Repsej112
|
  |
| Joined: 22 Jan 2013 |
| Total Posts: 205 |
|
|
| 10 Sep 2016 10:09 AM |
--This works. Now its checking a variable and not a color.
local part = script.Parent local kill
part.Touched:connect(function(hit) if kill then local plr = game.Players:GetPlayerFromCharacter(hit.Parent) if plr then plr.Character.Humanoid.Health = 0 end end end)
while true do part.BrickColor = BrickColor.new("Lime green") kill = nil wait(1) part.BrickColor = BrickColor.new("Really red") kill = true wait(1) end
|
|
|
| Report Abuse |
|
|
| |
|