I made a a name tag but something is wrong. (?)
Asked by
5 years ago Edited 5 years ago
So I just made a basic NameTag gui but the name of the player won't show. It just show name(I named the text "Name") but it should show The text I have put in instead of the player name.
The errors are Expected ':' not '.' calling member function FindFirstChild
and ServerScriptService.NameTagScript:12: attempt to index string with 'Text' but I don't know how to fix the errors
Script in ServerScriptService
01 | local ServerStorage = game:GetService( "ServerStorage" ) |
02 | local nametag = ServerStorage.NameTag |
04 | game.Players.PlayerAdded:Connect( function (player) |
05 | player.CharacterAdded:Connect( function (char) |
06 | local head = char.Head |
07 | local newtext = nametag:Clone() |
08 | local Name = newtext.Name |
11 | newtext.Adornee = head |
12 | Name.Text = player.Name |