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

How can I get (IsInGroup) to work in a localscript?

Asked by
Na_n 0
5 years ago
  game.Players.PlayerAdded:Connect(function(newPlayer)  
  if newPlayer:IsInGroup(ID) then (etc etc)

How can I get this to work in a local script. I'm trying to make it so if a player is in a group it'll change their team when they click a button (which I've already sorted through remote events) but if they aren't a gui frame with an error message pops up. I'm yet to know how to do the group section in a local script and if it even is possible. Any help at all would be greatly appreciated.

0
You would use a remote event to ask the server to check for you. User#5423 17 — 5y
0
^ starmaq 1290 — 5y
0
using remove events milkdelicious 1 — 5y

Answer this question