of     1   

YTRaulByte
#183614666Sunday, February 14, 2016 9:22 PM GMT

Here is my script: script.Parent.ChildAdded:connect(function() repeat wait() --Using this to locate the values. until script.Parent.StatValue ~= nil and script.Parent.PlayerName ~= nil and script.Parent.StatName ~= nil local player = game.Players:FindFirstChild(script.Parent.PlayerName.Value) local leaderstat = player:FindFirstChild("leaderstats") local statname = leaderstat:FindFirstChild(script.Parent.StatName.Value) local NewStatValue = script.Parent.StatValue if statname ~= nil then statname.Value = NewStatValue.Value end end) I added a :Destroy() command after the if statement. But it returned nil.

    of     1