So, I have a scripts which is meant to check if the player owns a certain gamepass, then give them a wristband, and a script which is meant to change the band's text depending on their rank.
Checker
local id = 340236465
game.Players.PlayerAdded:connect(function(player)
local hasPass = game:GetService("GamePassService"):PlayerHasPass(player, id)
if hasPass then
player:WaitForChild("Backpack"):WaitForChild("Wristband").Disabled = false
print("I ben workinz")
end
end)
Text
local player = game.Players.PlayerAdded
local group = 2567972
player:connect(function(p)
player:WaitForChild("Backpack"):WaitForChild("Wristband") then
if p:IsInGroup(group) and p:GetRankInGroup(group) >= 04 and p:GetRankInGroup(group) <= 15 then
script.Parent.LABEL.Text = "STAFF"
elseif p:IsInGroup(group) and p:GetRankInGroup(group) >= 04 then
script.Parent.LABEL.Text = "PRIORITY"
elseif p:IsInGroup(group) and p:GetRankInGroup(group) >= 15 and p:GetRankInGroup(group) <= 253 then
script.Parent.LABEL.Text = "HIGH RANK"
elseif p:IsInGroup(group) and p:GetRankInGroup(group) == 255 then
script.Parent.LABEL.Text = "DIRECTOR"
elseif p:IsInGroup(group) and p:GetRankInGroup(group) == 254 then
script.Parent.LABEL.Text = "ASST. DIRECTOR"
end
end)
