I am making a FE team GUI and its supposed to check if a player is in a group. However the Server Script won't make the frames visible. I don't know if its to do with FE or to do with the type of script.
Server Script:
game.Players.PlayerAdded:connect(function(player)
if player:IsInGroup(4343848) then
if player:GetRankInGroup(4343848) >= 2 then
local frame = script.Parent.Parent.Frame
frame.Staff.Visible = true
else
local frame = script.Parent.Parent.Frame
frame.Staff.Visible = false
end
end
end)
Could anyone help me with this? ~oshawat00

5 comments
Try putting this in there so you can see if it is actually detecting you are over rank 2 in the group. After "if player:GetRankInGroup(4343848) >= 2 then" add "print("Success"). Then after "else" put print("Not in group or not above rank 2."). That way, we can eliminate the possibility that you may not be higher than rank 2 in the group. As the script will say that in output.
I have added that but it still dont work and neither did it print the code.
Is the script disabled
No
Wait maybe?