of     1   

chrisrune314
#847688Monday, April 28, 2008 11:52 PM GMT

is it possible to make a brick that kills ONLY humanoids and nothing else? I have searched all over, and all I have found is LAVA, and that blows up or kills my car. PLEASE HELP!!
LinkIsaiah
#847879Tuesday, April 29, 2008 12:08 AM GMT

Put this in your brick, try this (Not 100% sure it works tell me if it doesnt): function OnTouched(hit) human = hit.Parent.Humanoid if hit ~= nil then human:remove() end end script.Parent.Touched:connect(OnTouched)
Algoritmi
#847972Tuesday, April 29, 2008 12:15 AM GMT

change the name called Humanoid of the thing you want not to die, to Alien or whatever
Algoritmi
#848002Tuesday, April 29, 2008 12:18 AM GMT

though this makes me wonder, why does your car have a humanoid of its own????
chris1989
#848099Tuesday, April 29, 2008 12:25 AM GMT

function OnTouched(hit) h = hit.Parent:findFirstChild("Humanoid") if hit ~= nil then h.Health = 0 end end script.Parent.Touched:connect(OnTouched) thats more specific will only kill the humanoid not remove it
chrisrune314
#848154Tuesday, April 29, 2008 12:29 AM GMT

THX! I did what LinkIsahh (srry if I misspelled ur name i did it from memory) BUT I CHANGED PART OF IT!! WOW!! I suck at scripting, but I figured it out. I changed it from the Human:REmove to Human.Health = 0 and it worked! THX!!!
TyphoonII
#850219Tuesday, April 29, 2008 3:30 PM GMT

yoiano, the car doesn't have its own humanoid. I found out on solo mode that when your tool is on to drive the car or plane that it becomes a child of the player under the Workspace. That's why planes disappear with the player if it crashes and kills the player.
chrisrune314
#859018Wednesday, April 30, 2008 11:30 PM GMT

wait, so this is sort of linked with my other post, can I make a brick that fines my "child", e.g. the car, and have it anchor the car but not me.
LinkIsaiah
#859054Wednesday, April 30, 2008 11:35 PM GMT

I think your looking for a hit.name == "Wheel" then hit.Anchored = true? For your car? I will try to do something
chrisrune314
#859489Thursday, May 01, 2008 12:35 AM GMT

??? I dont understan scripting that much, but im O.K.... PLZ HELP

    of     1