Workspace.Vertires.NameTag:10: attempt to index nil with 'Color' - Server - NameTag:10

Hello so i was just coding and i ran into this problem i tried everything and i just cant fix it

Script:

local char = script.Parent
local player = game:GetService("Players"):GetPlayerFromCharacter(script.Parent)
local replicated = game:GetService("ReplicatedStorage")
local NameGui = replicated.NameGUI
local CF = replicated.RarityNameSettings

local nameClone = NameGui:Clone()

while wait(1) do
	local Color = CF:FindFirstChild(player.leaderstats.Equipped.Value).Color
nameClone.name.TextColor3 = Color
nameClone.name.Text = player.leaderstats.Equipped.Value
nameClone.Adornee = char.Head
nameClone.Parent = char.Head
end

local human = char:WaitForChild("Humanoid")

human.DisplayDistanceType = "None"

Nevermind i fixed this (30 letters blah blah blah) if anybody is gonna respond ill still count as solution to other people if they run to this