Ive been trying to make someone have a price when they get a certain amount of leaderstat's Value. Here is what I came up with
local Player = game.Players.LocalPlayer local stats = Player:FindFirstChild("leaderstats"):FindFirstChild("Money") game.Players.PlayerAdded:connect(function() if stats.Value == 2010 then game.ReplicatedStorage["AK-47"] ["AK-47"].Parent = Player.Backpack end end)
It's a script in Workspace...