No errors, no prints, it just doesn't seem to run, LocalScript inside of a TextButton
local sdv = script.Parent.StarterDropperValue local sdl = script.Parent.Parent.StarterDropperLabel local mv = script.Parent.Parent.Parent.MoneyFrame.MoneyValue local ml = script.Parent.Parent.Parent.MoneyFrame.MoneyLabel local price = 10 script.Parent.MouseButton1Click:Connect(function() if mv.Value >= price then mv.Value = mv.Value - price ml.Text = "$" .. mv.Value sdv.Value = sdv.Value + 1 price = price * 1.1 script.Parent.Text = "Buy: $" .. price sdl.Text = sdl.Text + 1 else script.Parent.Text = "Error" wait(0.5) script.Parent.Text = "Buy: $" .. price end end)
local sdv = script.Parent.StarterDropperValue local sdl = script.Parent.Parent.StarterDropperLabel local mv = script.Parent.Parent.Parent.MoneyFrame.MoneyValue local ml = script.Parent.Parent.Parent.MoneyFrame.MoneyLabel local price = 10 local something = script.Parent.Parent.StarterDropperLabel.Value ml.Text = something script.Parent.MouseButton1Click:Connect(function() if mv.Value >= price then ml.Text = something mv.Value = mv.Value - price ml.Text = "$" .. mv.Value sdv.Value = sdv.Value + 1 price = price * 1.1 script.Parent.Text = "Buy: $" .. price something.Value = something.Value + 1 else script.Parent.Text = "Error" wait(0.5) script.Parent.Text = "Buy: $" .. price end end)
Somehow fixed, idk how but I'll take it lol.
local sdv = script.Parent.Parent.StarterDropperButton.StarterDropperValue local sdl = script.Parent.Parent.StarterDropperLabel local mv = script.Parent.Parent.Parent.MoneyFrame.MoneyValue local ml = script.Parent.Parent.Parent.MoneyFrame.MoneyLabel local price = 10 script.Parent.MouseButton1Click:Connect(function() if mv.Value >= price then mv.Value = mv.Value - price ml.Text = "$" .. mv.Value sdv.Value = sdv.Value + 1 price = price * 1.1 script.Parent.Text = "Buy: $" .. price sdl.Text = sdl.Text + 1 else script.Parent.Text = "Error" wait(0.5) script.Parent.Text = "Buy: $" .. price end end)