Hello can someone maybe help with this,
I have a minecart but as u know you can turn it off or on, But i want it as if you turn the cart on you cant turn it off anymore.
Does someone know how this works?
function chng() script.Parent.Parent.CarOn.Value = not script.Parent.Parent.CarOn.Value if script.Parent.Parent.CarOn.Value == false then script.Parent.BrickColor = BrickColor.new(21) else script.Parent.BrickColor = BrickColor.new(28) end end
script.Parent.Click.MouseClick:connect(chng)
This is the code for the minecart button that will let it move

1 comment
Thank u! it works! =D