I’m using this code:
game.Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
Character.Parent = game.Workspace.CharacterFolder
end)
end)
And the nametag shows as a result. How do I fix this?
I’m using this code:
game.Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
Character.Parent = game.Workspace.CharacterFolder
end)
end)
If you don’t want the name to be shown, go to StarterPlayer and set NameDisplayDistence to 0.
Could you provide more information, such as what the desired result is?
I want the nametag to function normally, and only show for everyone else. Right now it’s showing for the player too.
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
task.wait()
Character.Parent = workspace.Folder
local Humanoid = Character:WaitForChild("Humanoid")
Humanoid.NameDisplayDistance = 0
end)
end)
This would be the solution if I wanted it to be invisible for everyone. I only want it to be invisible for the player’s client, as it normally is.
This sounds like it would be a good bug report.
Ah yes that makes more sense and functions perfectly!
This should be an option to enable/disable in my opinion.
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
task.wait()
Character.Parent = workspace.Folder
end)
end)
Try this then.
Strange how this worked, it’s just about the same script.
Yeah, the task.wait() just delays for a single frame to allow for the character model to load before attempting to parent it to the folder.
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(Player)
Player.CharacterAppearanceLoaded:Connect(function(Character)
Character.Parent = workspace.Folder
end)
end)
This would also work.