Non-Group members are able to pass the group-members only door

Hi there!

The problem is that even players that are non-group members are still able to get through the door, but I am not sure why.

Note: My problem has been solved! Thanks for the help.

Any ideas what I could change/add so it keeps players that are not in the group from being able to enter?

Thanks!

1 Like

Why Its Say “In Iparis”? Instand of “In Paris”
Check it Maybe Its Becuase of this

1 Like

There would no difference between ipairs and pairs loop in this case.

3 Likes

You are not following up with your bricks part1 and part2 in the script. Also you can use this Player | Documentation - Roblox Creator Hub instead of GetGroupsAsync

1 Like

I am (sadly) really a total beginner, and this was made by a lot of help from a friend. How would you recommend I’d do this?

1 Like

Ik realiseer me nu dat we beiden ook Nederlands zijn!

1 Like

IsInGroup, GetRankInGroup and GetRoleInGroup are cached on the server, GroupService is the way to go for instant checks as it does not cache.

3 Likes