local nametag = script:WaitForChild("Rank")
local groupId = 2752852
local MP = game:GetService("MarketplaceService")
game:GetService("Players").PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
local head = char:WaitForChild("Head")
local guiClone = nametag:Clone()
guiClone.Parent = head
guiClone.Tag.Text = plr.Name
guiClone.Rank.Text = plr:GetRoleInGroup(groupId)
if not MP:UserOwnsGamePassAsync(plr.UserId, 14334251) and plr.Name ~= "NeonSignalYT" then
guiClone:WaitForChild("Tag").Rainbow.Disabled = true ( LINE 14 )
guiClone:FindFirstChild("Tag").TextStrokeTransparency = 0.5
guiClone:FindFirstChild("Tag").TextColor3 = Color3.new(1, 1, 1)
else
guiClone:WaitForChild("Tag").Rainbow.Disabled = false
guiClone:FindFirstChild("Tag").TextStrokeTransparency = 1
guiClone:FindFirstChild("Tag").TextColor3 = Color3.new(255, 255, 255)
end
end)
end)
Error is on line 14 which is where I disable the rainbow.