can you help with this script, has no errors, just doesn't work. Thanks..
local stock = game.Players.LocalPlayer:WaitForChild("Stocks").ONE
local cash = game.Players.LocalPlayer:WaitForChild("leaderstats").Cash
local test = game.Workspace.teststock
local OPrice = game.Workspace.ONEVal.ONEPrice
local player = game.Players.LocalPlayer
local a = player.PlayerGui.CashNStuff.Frame.Investments.ImageLabel.TextLabel
wait(4)
print(a.Text)
print(OPrice.Value)
print(cash.Value)
print(stock.Value)
script.Parent.MouseButton1Click:connect(function()
wait(0.75)
if cash.Value >= OPrice.Value then
stock.Value = stock.Value + 1 and cash.Value == cash.Value - OPrice.value
a.Text = test.Value
else print("Not enough cash")
end
end)

1 comment
Make sure the value's are actually there and if not then create a new instance of them.