In order to check and update what stats a player has I made Script 2. When tested in a separate model where a Folder was copied repeatedly into another part in the model it worked fine. But when copied into the Player (not Character model) of a new Player who joins it seems to not work at all with no output. Any help?
Script 1: Script that clones script 2 and sets it's parent:
local original2 = game.ReplicatedStorage.test local copy2 = original2:Clone() copy2.Parent = player.leaderstats
Script 2: Script to detect when a new Descendant is added:
local sP = script.Parent sP.Parent.DescendantAdded:connect(function(descendant) print(descendant) end)
I'm assuming you had a PlayerAdded event in your first script? And It shouldn't.