My store gui does not work when I click to buy the item. Here is the script:
player = script.Parent.Parent.Parent.Parent.Parent
kills = player.leaderstats.Knockouts
Item = game.ReplicatedStorage.SpeedCoil
function buy()
if kills.Value >= 8 then
kills.Value = kills.Value - 0
Item:clone().Parent = player.Backpack
wait(2)
else
script.Parent.Text = "Not Enough Funds"
wait(3)
script.Parent.Text = "Speed Coil"
end
end
script.Parent.MouseButton1Down:connect(buy)

3 comments
Do you have a output?
No
Wait, see the problem. It's MouseButton1Click, MouseButton1Down means you must hold the button down for a prolonged period of time before it may activate.