F.updateWindows=function(K,D)if script.Parent.Parent.Windows:findFirstChild(K)then(script.Parent.Parent.Windows:findFirstChild(K)).Value=D end end F.updateSong=function(K)carSeat.Parent.Body.MP.Sound:Stop()wait()carSeat.Parent.Body.MP.Sound.SoundId="\114\098\120\097\115\115\101\116\105\100\058\047\047"..K wait()carSeat.Parent.Body.MP.Sound:Play()end F.updateVolume=function(K)carSeat.Parent.Body.MP.Sound.Volume=carSeat.Parent.Body.MP.Sound.Volume+K end F.updateValue=function(K,D)if K then K.Value=D end end
--F.updateSound = function(Sound, Pitch, Volume)
--	if Sound then
--		if Pitch then
--			Sound.Pitch = Pitch
--		end
--		if Volume then
--			Sound.Volume = Volume
--		end
--	end
--end

F.updateWindows = function(Window, Toggle)
	if script.Parent.Parent.Windows:findFirstChild(Window) then
		script.Parent.Parent.Windows:findFirstChild(Window).Value = Toggle
	end
end

F.updateSong = function(Song)
	carSeat.Parent.Body.MP.Sound:Stop()
	wait()
	carSeat.Parent.Body.MP.Sound.SoundId = "rbxassetid://" .. Song
	wait()
	carSeat.Parent.Body.MP.Sound:Play()
end

F.updateVolume = function(Vol)
	carSeat.Parent.Body.MP.Sound.Volume = carSeat.Parent.Body.MP.Sound.Volume + Vol
end

F.updateValue = function(Val, Value)
	if Val then
		Val.Value = Value
	end
end
