I tried your script.
players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
local TagToGive = nametag:Clone()
nametag.NameLabel.Text = script.Parent.Parent.Parent.Parent.Name
nametag.Parent = char:FindFirstChild("Head")
end)
end)
“players” got marked as an error.
NewDeveloperE:
players
Furkan5E
(Furkan5E)
April 22, 2021, 8:22pm
#22
Yeah the character limit is very annoying
whoopsies i forgot to add the service,
local players = game:GetService("Players")
players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
local TagToGive = nametag:Clone()
TagToGive.NameLabel.Text = player.Name
TagToGive.Parent = char:FindFirstChild("Head")
end)
end)
@TerminatebruhDOGE try using this script.
2 Likes
I believe you forgot to add “local nametag = game.ServerStorage.BillboardGui”
I added it anyways, but the script still does not work.
What you probably meant:
local players = game:GetService("Players")
local nametag = game.ServerStorage.BillboardGui
players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
local TagToGive = nametag:Clone()
TagToGive.NameLabel.Text = player.Name
TagToGive.Parent = char:FindFirstChild("Head")
end)
end)
Though the script still does not work.
1 Like
I have got this new error on my output
Am not sure if this has to do anything with the script…
Um I’m not the one with the scripting error-
That is either a virus or the problems with roblox toolbox
Perhaps, yes that may be to do with something else.
I’ve tried all day honestly. I don’t know what is wrong with my script.
maybe try placing a few watchpoints and see where it gets to?
1 Like
The billboard GUI already gets parented to the players head by a separate script I made. I’ve removed the parent to head line of code from @LoafingHour ’s script. I still got nothing.
No solutions yet, I’d appreciate anyone’s help!
Fire the event on CharacterAdded
use:
local nametag = game.ServerStorage.BillboardGui:Clone()
players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
nametag.NameLabel.Text = player.Name
end)
end)
Like I said, try placing watchpoints in some areas
Am sorry, can you elaborate what you mean by “watchpoints”?
Unfortunately, the script did not work.
Can you send me the entirety of all the scripts that control the nametag please?
the red thing is a watch point
I searched it up, I believe they’re called breakpoints. Same thing I guess.
1 Like
@Cats767_99 , The script highlighted in blue parents the “NameLabel” to the player’s head.
The script highlighted in light white under the “NameLabel” is the script that should rename the “Namelabel” to the player’s name.