local m=script.Parent local D=script.Parent.Parent.Car.Value local j=script.Parent.Start local G=script.Parent.Start1 j.Parent=D.DriveSeat m.MouseButton1Click:connect(function()if script.Parent.Text=="\069\110\103\105\110\101\058 \079\102\102"then j:Play()wait(2)script.Parent.Parent.IsOn.Value=true G:Play()wait(.2)j:Stop()m.Text="\069\110\103\105\110\101\058 \079\110"else script.Parent.Parent.IsOn.Value=false m.Text="\069\110\103\105\110\101\058 \079\102\102"end end)
-- Variables (best not to touch these!)
local button = script.Parent
local car = script.Parent.Parent.Car.Value
local sound = script.Parent.Start
local sound1 = script.Parent.Start1
sound.Parent = car.DriveSeat -- What brick the start sound is playing from.
button.MouseButton1Click:connect(function() -- Event when the button is clicked
	if script.Parent.Text == "Engine: Off" then -- If the text says it's off then..
		sound:Play()
		wait(2) -- For realism. Okay?
		script.Parent.Parent.IsOn.Value = true -- The car is is on, or in other words, start up the car.
		sound1:Play()
		wait(0.2)
		sound:Stop()
		button.Text = "Engine: On" -- You don't really need this, but I would keep it.
	else -- If it's on then when you click the button,
		script.Parent.Parent.IsOn.Value = false -- The car is turned off.
		button.Text = "Engine: Off"
	end -- Don't touch this.
end) -- And don't touch this either.
