I have a custom character load script that changes the character's re-spawn time and a name tag script in ScriptServices so that they run as soon as the player joins but I can't get the name tag script to wait for the character to load. This is the script:
local NameTagGui=game:GetService("ServerStorage"):WaitForChild("NameTagGui")
game:GetService('Players').PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
wait()
if not game:GetService("Workspace"):FindFirstChild(player.Name.."") then
wait()
return
else
local humanoid=character:FindFirstChild("Humanoid")
local head=character:FindFirstChild("Head")
humanoid.DisplayDistanceType="None"
local Clone=NameTagGui:Clone()
Clone.Parent=head
Clone.NameTag.Text=(player.Name)
end
end)
end)

3 comments
Thank you it worked. I didn't think it was that simple. I made it wait for the Workspace too by doing game:GetService("Workspace").
Nvm it works fine in studio but doesn't always work in game.
I simply fit the script into my character load script so that it would insert the name tag when the character loads. But this would have worked for anything else so thanks. I'll mark your answer as the solution.