Hello, could anyone help me? This script only updates every new server. I heard that with GroupService it will update everytime the player joined but I don't know how to use GroupService. I've looked on the wiki but still don't understand.
This is the script:
local plrServ = game:GetService('Players')
script.Parent.Touched:connect(function(hit)
local plr = plrServ:GetPlayerFromCharacter(hit.Parent)
if plr and plr:GetRankInGroup(3200799) < 30 then
plr:LoadCharacter()
end
end)
script.Parent.Touched:connect(function(hit)
local plr = plrServ:GetPlayerFromCharacter(hit.Parent)
if plr and plr:GetRankInGroup(3200799) == 31 then
plr:LoadCharacter()
end
end)
Example: Player3's rank is suspended. He gets his old rank back. He joins the server (an old server where he had his suspended rank too) but gets respawned every time because the script didn't update.
