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

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

Asked by
Shematics 117
5 years ago

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

Log in to vote
0
Answered by
Leamir 3138 Moderation Voter Community Moderator
5 years ago
Edited 5 years ago

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

0
Thank you! Shematics 117 — 5y
0
Please, Accept my answer if I helped you =D Leamir 3138 — 5y
Ad

Answer this question