Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Configuration with incorrect arguments?

Asked by 6 years ago
Edited 6 years ago

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:

01local 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 = Color3.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)

``

0
If you want, that is an outdated RP Name script as a whole. I know because I developed one just like it, and I wouldn't be surprised if that is my own name script to begin with. I can develop this as a whole from scratch for you. I know this isn't a request, if you wish me to fix it I'll do just that. I'm just saying there's better methods in 2019. Dev_Unreal 136 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

You need to link PlayerAdded to the script as well.

1game.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.

Ad

Answer this question