Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Configuration with incorrect arguments?

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)

``

1 comment

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.

1 answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.