Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

The click shop Doesnt give me the tool but steals the money why?

Asked by 3 years ago
Edited 3 years ago

This question has been solved by the original poster.
script.Parent.ClickDetector.MouseClick:connect(function(player)
    local price = 9 -- The price of your item.
local db = true


    if player.leaderstats.Cash.Value >= price then
        player.leaderstats.Cash.Value = player.leaderstats.Cash.Value - price
        db = false
            local WhatToClone = game:GetService('ServerStorage'):FindFirstChild('WoodPickaxe')
            local Clone1 = WhatToClone:Clone()
            local Clone2 = WhatToClone:Clone()
            Clone1.Parent = Player.Backpack
            Clone2.Parent = Player.StarterGear
        db = true
    end
end)

well if i take the price out it gives me the item and saves the tool on death because it cloned it into startergear

1
make sure that the Player is lower case MarwanVRG4 10 — 3y
0
yeah did that byt still doesnt work i figured ouut how to do it with startergear meaning you will get it when you die thedukke1 9 — 3y

Answer this question