Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How can i make that the player dies if he touch two specific part simultaneously?

Hi, I wanna make a two door that close and when the player get stuck between those two door he will dies, i have a little idea of the script i'll have to make but i need some help

Thanks for your awnser :)

1 answer

✓ Accepted answer

Hello, Shematics!

You can place 2 BoolValues inside the player and make it true when player is touching a part, if both are true, Kill player!

Useful Links:

API:Class/BasePart/Touched --Use this to detect touch start....

API:Class/BasePart/TouchEnded --Use this to detect touch end...

API:Class/BoolValue --Use to get the touching value from other script

Hope this helps!

Good Luck with your games

2 comments

0

Thank you!

0

Please, Accept my answer if I helped you =D

This discussion is preserved as it was. New answers, comments, and votes are closed.