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

Server Script won't work by making frames visible if they are in a group?

Asked by 5 years ago

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

1
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. EtherealTrin 45 — 5y
0
I have added that but it still dont work and neither did it print the code. oshawat00 62 — 5y
0
Is the script disabled EtherealTrin 45 — 5y
0
No oshawat00 62 — 5y
0
Wait maybe? oshawat00 62 — 5y

Answer this question