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

How to make a sign that shows players that are standing on a part?

Asked by 4 years ago

Hello everyone. I'm currently working on a game inspired by Flicker and Murder Island 2 and I was wondering how to make something like this.

Thanks.

1 answer

Log in to vote
0
Answered by 4 years ago

You could always loop with BasePart:GetTouchingParts(), which returns a table of all parts currently touching the part the method was called on. From there, iterate through the array and find out which parts belong to players. If they do and the player isn’t already on the board (check this to prevent glitches with multiple body parts touching), then add their name.

Ad

Answer this question