game.Players.PlayerAdded:connect(function(plr) if plr then plr.PlayerGui.Cash.TextLabel.Text = "100$" end end)
The problem here is that the items inside of plr
have not loaded yet because the player was just created. Use WaitForChild
to wait for them to load:
game.Players.PlayerAdded:connect(function(plr) plr:WaitForChild("PlayerGui"):WaitForChild("Cash"):WaitForChild("TextLabel").Text="$100" end)