Inserting Value

Hello, I am trying to insert a value into the player when they join. For some reason, it simply isn’t working.

The script:

game.Players.PlayerAdded:Connect(function(plr)
	local value = Instance.new("StringValue")
	value.Parent = plr
end)
1 Like

Where is the script parented to and is it a LocalScript?

1 Like

It’s in serverscriptservice and its a normal server script

1 Like

It seems to work for me, are you sure the value doesn’t appear?

1 Like

I am 100% sure the value does not appear.

1 Like

Well then idk what to do, it works fine for me. (using the exact same script)

image

1 Like

I restarted studio, and for some reason now it’s working. Thanks for the help anyway.

1 Like