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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Help!

Previous Thread :: Next Thread 
whathekickboxer21 is not online. whathekickboxer21
Joined: 01 Apr 2010
Total Posts: 3306
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 is not online. 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
whathekickboxer21 is not online. whathekickboxer21
Joined: 01 Apr 2010
Total Posts: 3306
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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