Hello i have a folder with 2 int values, upon each player joining it is cloned to there game.Players.PlayerName but the problem is this script doesn't run at all how would one fix this
this is the code in my script below
local parent = script.Parent
local exp = parent.Exp
local level = parent.Level
local function LevelUpLogic(value)
print(value)
end
exp.Changed:Connect(LevelUpLogic)
here is the cloning script
local players = game.Players
local function CloneStats(playerName)
local Plystats = game.ReplicatedStorage.PlayerStats:Clone()
Plystats.Parent = playerName
end
local player = game.Players.PlayerAdded:Connect(CloneStats)
I have tried a few different methods to fix this such as changing how it is cloned or cloning it separate but nothing has worked so far

4 comments
Where is the script located?
Before its cloned Replicated storage
could you show the cloning script?
i edited the main post