I’m using an old RP Name Script that utilized RbxUtility, which is now deprecated. I changed it to use Instance.new but I can’t seem to get the script to run at all now and it’s having problems in this area:
01 | local function PlayerAdded(Player) |
02 | local NameplateInfo = Instance.new( 'Configuration' ) { |
03 | Name = 'NameplateInfo' , |
04 | Parent = Player, |
05 | } |
06 |
07 | local NameInfo = Instance.new( 'StringValue' ) { |
08 | Name = 'PlayerName' , |
09 | Parent = NameplateInfo, |
10 | Value = Player.Name, |
11 | } |
12 |
13 | local ColorInfo = Instance.new( 'Color3Value' ) { |
14 | Name = 'Color' , |
15 | Parent = NameplateInfo, |
16 | Value = Color 3. new( 1 , 1 , 1 ), |
17 | } |
18 |
19 | local FontInfo = Instance.new( 'StringValue' ) { |
20 | Name = 'Font' , |
21 | Parent = NameplateInfo, |
22 | Value = 'ArialBold' , |
23 | } |
24 | Player.CharacterAdded:connect(CharacterAdded) |
25 | Player.Chatted:connect( function (Message) Chatted(Player,Message) end ) |
26 | LoadNameplate(Player) |
``
You need to link PlayerAdded to the script as well.
1 | game.Players.PlayerAdded:Connect(PlayerAdded) |
Which would be why it is not running at all, as that is just a block, not a event, and that block does not appear to be called.