12/11/2023 0 Comments How to get touched in vr![]() array of players currently touching this part It’s still possible to do this with Touched/TouchEnded in an event-based way: local part = workspace.Part Rats, I should’ve read the OP more closely! Table.remove(WaitingPlayers, Index) - Remove Player from WaitingPlayers Local Index = table.find(WaitingPlayers, Player) Table.insert(WaitingPlayers, Player) - Add Player to WaitingPlayers ![]() ![]() If table.find(WaitingPlayers, Player) then return end - Player already in this table If not Player then return end - Player officially don't exist Player = Players:GetPlayerFromCharacter(Character) Local Player = Players:GetPlayerFromCharacter(Character) I was thinking of Region3, however I want to use a circle area, and not a square based area. However I want it to stay 1 / 8 until my player actually leaves the area. This is due the TouchEnded firing (as a part of the body is obviously moving) ![]() The problem I am facing is if you touch the part, it will go “Players: 1 / 8” but if you move, while still inside the part, it will drop to 0 /8, then back to 1 /8. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |