1.Whats Your Problem?
So i have this simple script:
local Data = script.Parent.Parent.CurrentSelection
local Search = Data.ToolName.Value
local Price = Data.Price.Value
local Tool = game.Lighting.SHOP:FindFirstChild(Search) --Here!
local Player = script.Parent.Parent.Parent.Parent.Parent.Parent
script.Parent.MouseButton1Click:Connect(function()
if Player.leaderstats.Coin.Value >= Price then
Player.leaderstats.Coin.Value = Player.leaderstats.Coin.Value - Price
local Give = Tool:Clone()
local Give2 = Tool:Clone()
Give.Parent = Player.StarterGear
Give2.Parent = Player.Backpack
end
end)
But it doesnt work at all, and no error on output
2.What You Try To Achive?
I want to make it work so the script can Clone the Tool then insert it to the player backpack and startergear
Thx for Reading!

1 comment
You're doing this locally;P buddy you're not actually going to be charging their Coins, it'll remain the same in the Server's perspective; they'll be able to give infinite coins to themselves and trick your LocalScripts for infinite purchases.