I have tried shifting things around but it does still not work.
Thanks for people helping me in advance to anybody that does.
-- Function for adding players
function playerAdded(player)
player.TeamColor = BrickColor.new(1)
local leaderstats = Instance.new("Model")
leaderstats.Name = 'leaderstats'
local points = Instance.new("IntValue")
points.Name = "Ch-Ching"
points.Parent = leaderstats
leaderstats.Parent = player
player.CharacterAdded:connect(function(character)
newcharacter(player, character)
end)
if player.Character and player.Character.Parent then
newcharacter(player, player.Character)
end
end
-- Event for handling that function
game.Players.PlayerAdded:connect(playerAdded)
for _, player in pairs(game.Players:GetPlayers()) do
playerAdded(player)
