Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make a door open when a Humanoid dies?

Asked by 9 years ago

So I want a door to open when this enemy dies, but how do I do it?

I know the way i want the door to open is this way:

script.Parent.Parent.Door.Transparency = 1 script.Parent.Parent.Door.CanCollide = false

But how do I make it work when a enemy dies?

1 answer

Log in to vote
0
Answered by
tumadrina 179
9 years ago

http://wiki.roblox.com/index.php?title=Died_(Event)

you can use the died event and the way I would do it is put a value under an enemy and a different value on the allies and use the died event(don't know if there is a different way to do this)

Ad

Answer this question