UPDATE
local stock = game.Players.LocalPlayer:WaitForChild("Stocks").ONE
local cash = game.Players.LocalPlayer:WaitForChild("leaderstats").Cash
local OPrice = game.Workspace.ONEVal.ONEPrice
local a = game.StarterGui.CashNStuff.Frame.Investments.ImageLabel.TextLabel
local a2= workspace.ONEVal.ONEstockownedamnt
print(a2.Value)
print(a.Text)
print(OPrice.Value)
print(cash.Value)
print(stock.Value)
script.Parent.MouseButton1Click:connect(function()
if cash.Value >= OPrice.Value then
stock.Value = stock.Value + 1 and cash.Value == cash.Value - OPrice.value and a2.Value == stock.Value
a.Text = a2.Value
else print("Not enough cash")
end
end)

1 comment
it doesn't get errors it just doesn't work...