--HUB.Default.Lock.MouseButton1Click:connect(function()
--	if carSeat.Seatlock.Value == false then
--		handler:FireServer('seatlock',true,0)
--	else
--		handler:FireServer('seatlock',false,12)
--	end
--end)


radio.Buttons.Play.MouseButton1Click:connect(function()
	handler:FireServer('updateSong', radio.Buttons.Input.Text)
end)

radio.Buttons.Stop.MouseButton1Click:connect(function() 
	handler:FireServer('pauseSong')
end)
game:GetService("RunService").RenderStepped:connect(function()
	if cam == "lockplr" then
		local XLook=math.max(math.min(((mouse.X-(mouse.ViewSizeX/2))/300)^3,1),-1)
		local YLook=math.max(math.min(((mouse.Y-(mouse.ViewSizeY/2))/300)^3,1),-1)
		local LookOffset
		if player.Character.Humanoid.RigType == Enum.HumanoidRigType.R15 then
			LookOffset=player.Character.Head.CFrame:toWorldSpace(CFrame.new(0.05,.2,-.1)*CFrame.Angles(-YLook,-XLook,0))
		else
			LookOffset=player.Character.Head.CFrame:toWorldSpace(CFrame.new(0.05,0,-.3)*CFrame.Angles(-YLook,-XLook,0))
		end
		Camera.CameraType="Scriptable"
		Camera.CameraSubject=player.Character.Humanoid
		Camera.CoordinateFrame=LookOffset
		player.CameraMaxZoomDistance=0
	else
		player.CameraMaxZoomDistance=400
	end
end)

while wait() do
	HUB.Misc.SS.ImageTransparency = carSeat.SST.Value and 0 or 0.7
	if carSeat.Tic.Value then
		HUB.Misc.SS.ImageColor3 = Color3.new(0,1,0)
	else
		HUB.Misc.SS.ImageColor3 = Color3.new(0,0,0)
	end
	HUB.Misc.CC.ImageColor3 = carSeat.CC.Value and Color3.new(0,1,0) or Color3.new(0,0,0)
end
