Hello! I recently made a system for certain group ranks to have a perk in my game, and I tried making a UI that enables whenever someone joins the game and is a certain group rank, however, it won’t enable it when they join. I’m not very good with scripting so I came here for help!
Script (_do is the script that won’t work):
game.Players.LocalPlayer:Connect(function(plr)
if plr:GetRankInGroup(7452696) == 10 or 11 or 12 or 255 then
script.Parent.Parent.NotificationUI.Enabled = true
end
end)
local plrRank = plr:GetRankInGroup(7452696)
if plrRank == 10 or plrRank == 11 or plrRank == 12 or plrRank == 255 then
script.Parent.Parent.NotificationUI.Enabled = true
end
local LocalPlayer = game:GetService("Players").LocalPlayer
local plrRank = plr:GetRankInGroup(7452696)
if plrRank == 10 or plrRank == 11 or plrRank == 12 or plrRank == 255 then
script.Parent.Parent.NotificationUI.Enabled = true
end
local players = game:GetService("Players")
players.PlayerAdded:wait()
local player = players.LocalPlayer
local playerRank = players:GetRankInGroup(7452696)
if (playerRank >= 10 and playerRank <= 12) or playerRank == 255 then
script.Parent.Parent.NotificationUI.Enabled = true
end