local P=script.Parent.Parent local Y=script.Parent.Parent.Parent.Car.Value local r=script.Parent.Start local n=script.Parent.Stall n.Parent=Y.DriveSeat r.Parent=Y.DriveSeat P.MouseButton1Click:connect(function()if script.Parent.Parent.Text=="\069\110\103\105\110\101\058 \079\102\102"then r:Play()wait(1.1)script.Parent.Parent.Parent.IsOn.Value=true P.Text="\069\110\103\105\110\101\058 \079\110"else n:play()script.Parent.Parent.Parent.IsOn.Value=false P.Text="\069\110\103\105\110\101\058 \079\102\102"end end)

local button = script.Parent.Parent
local car = script.Parent.Parent.Parent.Car.Value
local sound = script.Parent.Start
local st = script.Parent.Stall
st.Parent = car.DriveSeat
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.Parent.Text == "Engine: Off" then -- If the text says it's off then..
		sound:Play() -- Startup sound plays..
		wait(1.1) -- I don't know what to put for this
		script.Parent.Parent.Parent.IsOn.Value = true -- The car is is on, or in other words, start up the car.
		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,
		st:play()
		script.Parent.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.
