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: Help pls?

Previous Thread :: Next Thread 
dingding2002 is online. dingding2002
Joined: 30 Jun 2012
Total Posts: 720
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 is not online. 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
dingding2002 is online. dingding2002
Joined: 30 Jun 2012
Total Posts: 720
10 Sep 2016 08:02 AM
That dont work sorry,another person can help?
Report Abuse
45CamDaMan is not online. 45CamDaMan
Joined: 01 Aug 2014
Total Posts: 210
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
45CamDaMan is not online. 45CamDaMan
Joined: 01 Aug 2014
Total Posts: 210
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 is not online. 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
dingding2002 is online. dingding2002
Joined: 30 Jun 2012
Total Posts: 720
10 Sep 2016 08:51 AM
Dont work,it change color but it dont kill :/
Report Abuse
ownedyou1 is not online. 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
dingding2002 is online. dingding2002
Joined: 30 Jun 2012
Total Posts: 720
10 Sep 2016 09:21 AM
Meh that dont work
Report Abuse
iJacobness is not online. iJacobness
Joined: 20 Jan 2014
Total Posts: 4944
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
dingding2002 is online. dingding2002
Joined: 30 Jun 2012
Total Posts: 720
10 Sep 2016 09:36 AM
Dont work... But the question is...Is possible to do that?
Report Abuse
Repsej112 is not online. 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
dingding2002 is online. dingding2002
Joined: 30 Jun 2012
Total Posts: 720
10 Sep 2016 10:18 AM
Thanks! Finaly! :D
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