My code thus far:
script.Parent.MouseButton1Click:connect(function() local RS = game:GetService("ReplicatedStorage") local item = RS:WaitForChild("Firebrand") local price = 25 local player = game.Players.LocalPlayer local stats = player:WaitForChild("leaderstats")
if stats.Souls.Value>=price then
stats.Souls.Value = stats.Souls.Value - price
local cloned = item:Clone()
cloned.Parent = player.Backpack
cloned.Parent = player.StarterGear
end
end)
I am looking forward to somebody's response.
Thank you, Sqookly

2 comments
WaitForCHild u use on leaderstats but not on StarterGear ??? if u made a own folder StarterGear maybe its not made yet and the script has to wait on it, or use FindFirstChild like local SG = player:FindFirstChild("StrarterGear") and do if SG then cloned.Parent = SG end
Why are you parenting it to the StarterPack AFTER the Backpack? You do realize that everything in StarterGear gets cloned to the Backpack, right?