I'm trying to make it so when a player joins the game, it clones a IntValue from the Lighting to the Player. This is the script I'm using below but it only works once on one player and fails to work on the next, what is wrong with it? Thanks.
function onPlayerEntered(newPlayer)
local iv = game.Lighting.playerstats
iv.Parent = newPlayer
iv.Clone()
end
game.Players.PlayerAdded:connect(onPlayerEntered)

2 comments
Spelt 'connect' at the bottom wrong, but when corrected it worked. Cheers.
Wups, sorry!