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

How to create a group checker that kicks them if they arnt in a group? [closed]

Asked by 9 years ago

Im tryin to be classy here so dont tell me to use free models. ;P

0
.-. xXEpicnessKingxX 10 — 9y
0
Telling us to do this is practically asking for a fm but in script form and it's not classy to do it here since this is for avid scripters .-. User#5978 25 — 9y
0
This is ScriptingHelpers, not ScriptMakers (does not exist btw). Do not post requests for scripts on this site, otherwise they may or will be downvoted and/or locked. M39a9am3R 3210 — 9y

Closed as Not Constructive by docrobloxman52, User#5978, and M39a9am3R

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by
joalars2 107
9 years ago
groupID = 12345678

game.Players.PlayerAdded:connect(function(plr)
    if not plr:IsInGroup(groupID) then
        plr:Kick("Sorry, you are not in the required group needed to join.")
    end
end)
0
Might work. joalars2 107 — 9y
Ad