local cost = 50
script.Parent.Triggered:Connect(function(plr)
if plr.leaderstats.Points.Value >= cost and not plr.StarterGear:FindFirstChild("Bow") then
local bow = game.ReplicatedStorage.ShopItems.Bow:Clone()
bow.Parent = plr.StarterGear
plr.leaderstats.Points.Value -= cost
end
end)
my points are subtracted by 50 and that is how i know that it went through the cloning and it didn't show any bugs in output. please help me!!! this was a server script btw