I made a script that detects a value changing inside leaderstats, but when i run the game, it cannot find the folder and says infinite yield possible (Details: I’m modifying an old game, the script is a server script)
game.Players.PlayerAdded:Connect(function(player)
local ls = player:WaitForChild("leaderstats")
ls.KOs:GetPropertyChangedSignal("Value"):Connect(function()
game.ReplicatedStorage.Claim_Server:Fire(player)
end)
end)
pls help