So the script is suppost to give you a nametag when you join the game and when you respawn. I have tried many times to bug fix it but it won't work. It used to work in game but now doesn't (Yes it's fe on)

Things you need to know: The nametags are in the lighting and they're a bill boardgui Filtering Enabled is on

Local script:


local storage = game:GetService('ReplicatedStorage')
local event = storage:WaitForChild('PlayerEvent')
local playerse = game:GetService('Players')
local Storage = game:GetService('ReplicatedStorage')
local Event = Storage:WaitForChild('PlayerEvent')
local Light = game:GetService('Lighting')
local Tag = Light:WaitForChild('Name')
local Tag2 = Light:WaitForChild('Name2')
local TagFrame = Tag:WaitForChild('Frame')
local NameT = TagFrame:WaitForChild('Nametag')

game.Players.PlayerAdded:connect(function(plr)
    plr.CharacterAdded:connect(function(char)
		if not character or not character.Parent then
			cha r= plr.CharacterAdded:wait()
			NameT.Text=plr.Name
        		local name = Tag:Clone()
			name.Parent=name.Frame
        		name.Parent = char.Head
		end
	end)
end)