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 5 years ago
Edited 5 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:

local function PlayerAdded(Player)
    local NameplateInfo = Instance.new('Configuration') {
        Name = 'NameplateInfo',    
        Parent = Player,    
    }

    local NameInfo = Instance.new('StringValue') {   
        Name = 'PlayerName',    
        Parent = NameplateInfo,    
        Value = Player.Name,    
    }

    local ColorInfo = Instance.new('Color3Value') {    
        Name = 'Color',    
        Parent = NameplateInfo,    
        Value = Color3.new(1,1,1),    
    }

    local FontInfo = Instance.new('StringValue') {    
        Name = 'Font',    
        Parent = NameplateInfo,    
        Value = 'ArialBold',    
    }    
    Player.CharacterAdded:connect(CharacterAdded)    
    Player.Chatted:connect(function(Message) Chatted(Player,Message) end)    
    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 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

You need to link PlayerAdded to the script as well.

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.

Ad

Answer this question