-- Mouse Clicked function
script.Parent.MouseButton1Click:connect(function()
if script.Parent.Parent.Parent.Parent.Frame.Money.MoneyVal.Value >= (script.Parent.Parent.Amount.Value.Value * script.Parent.Parent.Stock.StockVal.Value) then
script.Parent.Parent.Stock.StockVal.Value = script.Parent.Parent.Stock.StockVal.Value + script.Parent.Parent.Amount.Text
else
warn("You have either tried to buy negative or higher than you can afford of shares")
end
end)
so this little code segment here is supposed to give me a stock if I put in an amount that I can afford, though when I put in a large number it still gives me the stock, why is this?
