How to add group rank+ addition to light switch

I need help adding a group rank+ only to press the light switch.
Here is the script:

image

Here is what I came up with… but nonetheless, it did not work.

I don’t think GroupService:PlayerIsInGroup() is a method (function), nor GroupService:GetRankInGroup(). Use Player:IsInGroup() and Player:GetRankInGroup() instead.
Also, according to the Roblox Creator Documentionation, “…Developers wishing to verify if a player is in a group should use the Player Player:IsInGroup() function rather than GroupService:GetGroupsAsync().”

1 Like